Dear Admins I installed solaris 10-u6 based zfs on under two mirrored disks(rpool) in my first sunfire v880 sparc machine. my questions are: 1-can i remove one of my mirrored disks from this first machine and use it as installed operating system in another machine and making this machine operational? (I want install solaris on it but this new machine doesnt have cdrom&cant boot from network). 2-after that,can i insert new H.D.D in missed places for recovery mirrored state(rpool) in each machine? Both machines have the same hardware,two H.D.D,and all H.D.D are the same charactristics and capacity. any guide appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20090125/2a84380b/attachment.html>
On 25 January, 2009 - iman habibi sent me these 2,0K bytes:> Dear Admins > I installed solaris 10-u6 based zfs on under two mirrored disks(rpool) in my > first sunfire v880 sparc machine. > my questions are: > 1-can i remove one of my mirrored disks from this first machine and use it > as installed operating system in another machine and making this machine > operational? > (I want install solaris on it but this new machine doesnt have cdrom&cant > boot from network). > 2-after that,can i insert new H.D.D in missed places for recovery mirrored > state(rpool) in each machine? > Both machines have the same hardware,two H.D.D,and all H.D.D are the same > charactristics and capacity.Newer ZFS rpool thingies have the hostid stored in them, so it will refuse to boot off that (because it might be in use from someone else off shared storage or so).. You need to boot something else on the new machine, then ''zpool import -f rpool'', export it and reboot.. One way I guess, is to install another system with ufs root as well, boot off that on the new one, stick the "removed mirror" from the first system into the new system and ''zpool import -f rpool'', export, reboot onto the zfs disk.. After that, you can attach mirrors with ''zpool attach''.. might need to run installboot on the second disk as well.. /Tomas -- Tomas ?gren, stric at acc.umu.se, http://www.acc.umu.se/~stric/ |- Student at Computing Science, University of Ume? `- Sysadmin at {cs,acc}.umu.se
Richard Elling
2009-Jan-26 00:24 UTC
[zfs-discuss] Using one mirrored disks in new machine
Tomas ?gren wrote:> On 25 January, 2009 - iman habibi sent me these 2,0K bytes: > > >> Dear Admins >> I installed solaris 10-u6 based zfs on under two mirrored disks(rpool) in my >> first sunfire v880 sparc machine. >> my questions are: >> 1-can i remove one of my mirrored disks from this first machine and use it >> as installed operating system in another machine and making this machine >> operational? >> (I want install solaris on it but this new machine doesnt have cdrom&cant >> boot from network). >> 2-after that,can i insert new H.D.D in missed places for recovery mirrored >> state(rpool) in each machine? >> Both machines have the same hardware,two H.D.D,and all H.D.D are the same >> charactristics and capacity. >>I can''t see a reason this would explicitly not work, but I''ve not tried it on such hardware. Recently, I completed a brain transplant on an OpenSolaris box (new mobo, different graphics, different chipset, different processor) and it just booted right up with a reconfigure reboot... no problems at all... quite impressive, I must say! :-)> Newer ZFS rpool thingies have the hostid stored in them, so it will > refuse to boot off that (because it might be in use from someone else > off shared storage or so).. You need to boot something else on the new > machine, then ''zpool import -f rpool'', export it and reboot.. >This should not be necessary as there is a check to see if the importing pool is also the boot pool. That said, I cannot speak about this in Solaris 10 as I have not looked at that code. OpenSolaris should be ok, though.> One way I guess, is to install another system with ufs root as well, > boot off that on the new one, stick the "removed mirror" from the first > system into the new system and ''zpool import -f rpool'', export, reboot > onto the zfs disk.. > > After that, you can attach mirrors with ''zpool attach''.. might need to > run installboot on the second disk as well.. >installboot may or may not be necessary, depending on how the mirrored boot was originally installed. If by JumpStart with the mirror option, then installboot should already be there. If you did it by hand, then the instructions for mirroring root pools in the ZFS Administration Guide would need to be followed, which include manually running installboot. -- richard