Hello,

>From a couple of tests I've done (not totally finished yet!), you should look 
>at zpool -R /a option to create zfs pool under /a from a finish script. The 
>mountpoint attribute will be relative to /a.

I've done something like when in mini-root (llaunch a ksh from a finish to 
interactively try things):

zpool create -f -R /a myzfspool mirror c0t0d0s5 c0t2d0s5

Then I did a

zfs create myzfspool/opt
zfs set automountpoint=/opt myzfspool/opt

Then, I did

zpool export myzfspool

After, I wrote a script in /a/etc/rcS.d/S10zfs that is simply:
#!/usr/bin/ksh
#
case $1 in
  start)
        /sbin/zpool import -f myzfspool
        ;;

esac

I rebooted and I get this:

Filesystem            kbytes    used   avail capacity  Mounted on
/dev/md/dsk/d0        493527   75243  368932    17%    /
/devices                   0       0       0     0%    /devices
ctfs                       0       0       0     0%    /system/contract
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
swap                 1338496     368 1338128     1%    /etc/svc/volatile
objfs                      0       0       0     0%    /system/object
/dev/md/dsk/d60      4130982  125515 3964158     4%    /usr
fd                         0       0       0     0%    /dev/fd
/dev/md/dsk/d30      1017831    5440  951322     1%    /var
swap                 1338128       0 1338128     0%    /tmp
swap                 1338144      16 1338128     1%    /var/run
myzfspool          70189056      24 70188938     1%    /myzfspool
myzfspool/opt    70189056      24 70188938     1%    /opt


Hope this helps...

Simon.
 
 
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to