Tomasz Kłoczko
2006-Sep-01 19:58 UTC
[zfs-discuss] create ZFS pool(s)/volume(s) during jumpstart instalation
Anyone have idea how to create ZFS pool and volumes during jumstart instalation ? (I''m using JumpStart Enterprise Toolkit) kloczek
Lori Alt
2006-Sep-01 20:05 UTC
[zfs-discuss] create ZFS pool(s)/volume(s) during jumpstart instalation
Tomasz K?oczko wrote:> Anyone have idea how to create ZFS pool and volumes during jumstart > instalation ? (I''m using JumpStart Enterprise Toolkit)Right now, your only option is to use the zpool and zfs commands from within a finish script. Support for direct creation of zfs pools and datasets using jumpstart profile keywords is coming with zfs boot support. Lori Alt> > kloczek > > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Tomasz Kłoczko
2006-Sep-02 15:46 UTC
[zfs-discuss] create ZFS pool(s)/volume(s) during jumpstart instalation
Dnia 01-09-2006, pi? o godzinie 14:05 -0600, Lori Alt napisa?(a):> Tomasz K?oczko wrote: > > Anyone have idea how to create ZFS pool and volumes during jumstart > > instalation ? (I''m using JumpStart Enterprise Toolkit) > > Right now, your only option is to use the zpool and zfs > commands from within a finish script.Problem is with one thing: on jumpstart installation all installed volumes are mounted in /a directory hierarchy and zfs mountpoints are not stored in vfstab. It is possible to install system but whole install procedure must be done in two steps: 1) on prepare resources for installed system zfs volumes must be created with additional /a mountpoint prefixes, 2) after finish install packages and apply patches all zfs volumes must be remounted to production paths (without /a prefix). As you wrote second step can be performed on finish script but I don''t know how/where to hook first. In my case I want have /var and /exports on common zfs pool. kloczek PS. anyone know is it possible specify in host template perform automatically reboot after finish install ? (I can''t find this)
Robert Milkowski
2006-Sep-03 15:12 UTC
[zfs-discuss] Re: create ZFS pool(s)/volume(s) during jumpstart
1. in case of /var it would be probably better right now to actually set legacy mounting and put it in a vfstab if you really want /var on ZFS. Here (on the list) was posted before a procedure on how to convert / to ZFS. If it''s a production server I would strongly wait till ZFS root bits are integrated. On the other hand I think it''s good to just install system on UFS and then perhaps make a large pool from the rest of the disks and put a zone on top of it. Then put an application into a zone. That way you have ZFS. 2. to get system rebooted after jumpstarted just put in a finish script sync;reboot I''m not sure but there''s some kind of variable you can setup to get it reboot itself. This message posted from opensolaris.org
Simon-Bernard Drolet
2006-Sep-17 16:14 UTC
[zfs-discuss] Re: create ZFS pool(s)/volume(s) during jumpstart
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