Hi, I am new to ZFS and recently managed to get a ZFS root to work. These were the steps I have done: 1. Installed b81 (fresh install) 2. Unmounted /second_root on c0d0s4 3. Removed /etc/vfstab entry of /second_root 4. Executed ./zfs-actual-root-install.sh c0d0s4 5. Rebooted (init 6) After selecting ZFS boot entry in GRUB Solaris went up. Great. Next I looked how the slices were configured. And I saw that the layout hasn?t changed despite slice 4 is now ZFS root. What would I have to do, to get a layout where zpool /tank occupies the whole disk as presentated by Lori Alt? Roman This message posted from opensolaris.org
Just another thought. After setting up a ZFS root on slice c0d0s4, it should be just possible after starting into it, to add the remaining slices into the created ZFS pool. Is this possible? Roman This message posted from opensolaris.org
Hi, Roman You can use ''zpool attach'' to attach mirror into it. But cannot ''zpool add'' new slice into it. rootpool can be a single disk device, or a device slice, or in a mirrored configuration. If you use a whole disk for a rootpool, you must use a slice notation (e.g. c0d0s0) so that it is labeled with an SMI label. Roman Morokutti wrote:> Just another thought. After setting up a ZFS root on > slice c0d0s4, it should be just possible after starting > into it, to add the remaining slices into the created > ZFS pool. Is this possible? > > Roman > > > This message posted from opensolaris.org > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >
On Feb 4, 2008 4:37 PM, Robin Guo <Robin.Guo at sun.com> wrote:> If you use a whole disk for a rootpool, you must use a slice notation > (e.g. c0d0s0) so that it is labeled with an SMI label.Will ZFS recognize that it has the whole disk at this point (and thus leave cache enabled on it) or not? Many of the machines I administer provide some service that uses the single (currently SVM mirrored) root partition, so having cache enabled could be helpful. ISTR some talk of ZFS disabling disk cache if it doesn''t have the whole disk to itself. Thanks! Will
Hi, Roman, The disable disk cache option is a choice by manual setting, on some particular envionment. ZIL default setting to ''on''. Regardless regular pool or rootpool. There''s CR #6648965 might also related to this. It talked about slog/l2cache/spare should able to be supported in a rootpool. Will Murnane wrote: On Feb 4, 2008 4:37 PM, Robin Guo wrote: If you use a whole disk for a rootpool, you must use a slice notation (e.g. c0d0s0) so that it is labeled with an SMI label. leave cache enabled on it) or not? Many of the machines I administer provide some service that uses the single (currently SVM mirrored) root partition, so having cache enabled could be helpful. ISTR some talk of ZFS disabling disk cache if it doesn''t have the whole disk to itself. Thanks! Will -- Regards, Robin Guo, Xue-Bin Guo Solaris Kernel and Data Service QE, Sun China Engineering and Reserch Institute Phone: +86 10 82618200 +82296 Email: robin.guo@sun.com Blog: http://blogs.sun.com/robinguo _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Hi, Roman If you need to ocupy a disk on rootpool, you need has at least 2 disks in the system on such case. use c[m]t[n]d[p]s0 as the second device, suppose you''ve SMI labeled it and let s0 take the entire space of that disk. Good luck! Roman Morokutti wrote:> Hi, > > I am new to ZFS and recently managed to get a ZFS root to work. > These were the steps I have done: > > 1. Installed b81 (fresh install) > 2. Unmounted /second_root on c0d0s4 > 3. Removed /etc/vfstab entry of /second_root > 4. Executed ./zfs-actual-root-install.sh c0d0s4 > 5. Rebooted (init 6) > > After selecting ZFS boot entry in GRUB Solaris went up. Great. > Next I looked how the slices were configured. And I saw that the > layout hasn?t changed despite slice 4 is now ZFS root. What would > I have to do, to get a layout where zpool /tank occupies the whole > disk as presentated by Lori Alt? > > Roman > > > This message posted from opensolaris.org > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >-- Regards, Robin Guo, Xue-Bin Guo Solaris Kernel and Data Service QE, Sun China Engineering and Reserch Institute Phone: +86 10 82618200 +82296 Email: robin.guo at sun.com Blog: http://blogs.sun.com/robinguo