Hi folks I have a system currently running ufs with four disks / is a mirror of two disks and /usr is a mirror of two disks. I was wondering if such a config is still possible with zfs boot? The disks are only 18gigs, that''s why I would like to spread solaris over four disks - or two mirrored best regards Luca -- This message posted from opensolaris.org
Cindy.Swearingen at Sun.COM
2009-Feb-06 18:10 UTC
[zfs-discuss] ZFS root pool over more than one disks?
Hi Sandro, A ZFS root pool can only be created on a single-disk or mirrored disks. Consider the following choices for the root pool: 1 disk 2 or 3 mirrored disks 2-way mirror of 2 disks 2 mirrored disks with 2 spares In ZFS land, /usr is not a separate file system nor does it need a separate disk. All file systems have access to the space that has been allocated to the root pool. More root pool information can be found in the ZFS Admin Guide: http://docs.sun.com/app/docs/doc/819-5461/ggrko?a=view Cindy Sandro wrote:> Hi folks > > I have a system currently running ufs with four disks > > / is a mirror of two disks and /usr is a mirror of two disks. > > I was wondering if such a config is still possible with zfs boot? > The disks are only 18gigs, that''s why I would like to spread solaris over four disks - or two mirrored > > > best regards > Luca
Hey Cindy Thanks for your help. How would I configure a 2-way mirror pool for a root pool? Basically I''d do it this way. zpool create pool mirror disk0 disk2 mirror disk1 disk3 or with an already configured root pool mirror zpool add rpool mirror disk1 disk3 But when I try to add this it seems to fail with: cannot add to ''rpool'': root pool can not have multiple vdevs or separate logs -- This message posted from opensolaris.org
Volker A. Brandt
2009-Feb-11 08:50 UTC
[zfs-discuss] ZFS root pool over more than one disks?
> zpool add rpool mirror disk1 disk3 > > But when I try to add this it seems to fail with: > cannot add to ''rpool'': root pool can not have multiple vdevs or separate logsWhat you want is "attach" instead of "add": zpool attach [-f] pool device new_device Attaches new_device to an existing zpool device. The existing device cannot be part of a raidz configuration. If device is not currently part of a mirrored configura- tion, device automatically transforms into a two-way mirror of device and new_device. If device is part of a two-way mirror, attaching new_device creates a three-way mirror, and so on. In either case, new_device begins to resilver immediately. -f Forces use of new_device, even if its appears to be in use. Not all devices can be overridden in this manner. So in your case: zpool attach rpool disk3 Ths would attach disk3 as a mirror for disk1, assuming your root pool consists of dis1 only. If indeed you want two mirrored disk pairs in your root pool, this is currently not supported, since a root pool can only have one vdev; hence the error message. Regards -- Volker -- ------------------------------------------------------------------------ Volker A. Brandt Consulting and Support for Sun Solaris Brandt & Brandt Computer GmbH WWW: http://www.bb-c.de/ Am Wiesenpfad 6, 53340 Meckenheim Email: vab at bb-c.de Handelsregister: Amtsgericht Bonn, HRB 10513 Schuhgr??e: 45 Gesch?ftsf?hrer: Rainer J. H. Brandt und Volker A. Brandt
Thanks Volker. I am aware of that. I was just asking because Cindy said there could be a 2-way mirror config for a root pool. Guess I''ll either get bigger disks or live with these smaller ones.. Volker A. Brandt wrote:>> zpool add rpool mirror disk1 disk3 >> >> But when I try to add this it seems to fail with: >> cannot add to ''rpool'': root pool can not have multiple vdevs or separate logs >> > > What you want is "attach" instead of "add": > > > zpool attach [-f] pool device new_device > > Attaches new_device to an existing zpool device. The > existing device cannot be part of a raidz configuration. > If device is not currently part of a mirrored configura- > tion, device automatically transforms into a two-way > mirror of device and new_device. If device is part of a > two-way mirror, attaching new_device creates a three-way > mirror, and so on. In either case, new_device begins to > resilver immediately. > > -f Forces use of new_device, even if its appears to > be in use. Not all devices can be overridden in > this manner. > > So in your case: > > zpool attach rpool disk3 > > > Ths would attach disk3 as a mirror for disk1, assuming your > root pool consists of dis1 only. > > If indeed you want two mirrored disk pairs in your root pool, this > is currently not supported, since a root pool can only have one > vdev; hence the error message. > > > Regards -- Volker >-- <http://www.sun.com/mysql> * Sandro Roth * *Sun Microsystems (Schweiz) AG* Javastrasse 2 / Hegnau Volketswil 8604 CH Phone +41 44 908 9333 / x79333 Mobile +41 79 650 62 58 Fax +41 1 908 99 14 Email Sandro.Roth at Sun.COM -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20090211/48a7e837/attachment-0005.html>
Volker A. Brandt
2009-Feb-11 10:59 UTC
[zfs-discuss] ZFS root pool over more than one disks?
> I was just asking because Cindy said there could be a 2-way mirror > config for a root pool. > > Guess I''ll either get bigger disks or live with these smaller ones.. > > > What you want is "attach" instead of "add":Ah, OK. So the problem hinges more on the question what a "two-way" mirror is. :-) But I''m afraid that your conclusion (do nothing or go to bigger disks) is absolutely correct. Regards -- Volker -- ------------------------------------------------------------------------ Volker A. Brandt Consulting and Support for Sun Solaris Brandt & Brandt Computer GmbH WWW: http://www.bb-c.de/ Am Wiesenpfad 6, 53340 Meckenheim Email: vab at bb-c.de Handelsregister: Amtsgericht Bonn, HRB 10513 Schuhgr??e: 45 Gesch?ftsf?hrer: Rainer J. H. Brandt und Volker A. Brandt
David Dyer-Bennet
2009-Feb-11 15:29 UTC
[zfs-discuss] ZFS root pool over more than one disks?
On Wed, February 11, 2009 02:28, Sandro wrote:> How would I configure a 2-way mirror pool for a root pool? > Basically I''d do it this way. > > zpool create pool mirror disk0 disk2 mirror disk1 disk3 > or with an already configured root pool mirror > zpool add rpool mirror disk1 disk3 > > But when I try to add this it seems to fail with: > cannot add to ''rpool'': root pool can not have multiple vdevs or separate > logsI found the online instructions, official and otherwise, somewhat confusing, but I eventually worked out how to make it work. I''m afraid others may now find my instructions on the topic somewhat confusing, but for what it''s worth they''re at <http://dd-b.net/ddbcms/2009/01/opensolaris-zfs-root-pool-mirroring/>. -- David Dyer-Bennet, dd-b at dd-b.net; http://dd-b.net/ Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/ Photos: http://dd-b.net/photography/gallery/ Dragaera: http://dragaera.info
On 02/11/09 01:28, Sandro wrote:> Hey Cindy > > Thanks for your help. > > How would I configure a 2-way mirror pool for a root pool? > Basically I''d do it this way. > > zpool create pool mirror disk0 disk2 mirror disk1 disk3 >This command does not create a valid root pool. Root pools cannot have more than one top-level vdevs. I.e., you can''t concatenate two mirrored vdevs.> or with an already configured root pool mirror > zpool add rpool mirror disk1 disk3 >Here, you need "attach", not ''add''. And even then, you need to add the boot blocks as a result of this bug: * CR 6668666 - If you attach a disk to create a mirrored root pool after an initial installation, you will need to apply the boot blocks to the secondary disks. For example: sparc# installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/c0t1d0s0 x86# installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c0t1d0s0 Lori -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20090211/33945c68/attachment-0005.html>