I added a disk to the rpool of my zfs root: # zpool attach rpool c1t0d0s0 c1t1d0s0 # installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c1t1d0s0 I waited for the resilver to complete, then i shut the system down. then i physically removed c1t0d0 and put c1t1d0 in it''s place. I tried to boot the system, but it panics: SunOS Release 5.10 Version Generic_141415-10 64-bit Copyright 1983-2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. NOTICE: spa_import_rootpool: error 6 Cannot mount root on /pci at 0,0/pci1022,7450 at a/pci17c2,10 at 4/sd at 0,0:a /pci at 0,0/pci1022,7450 at a/pci17c2,10 at 4/sd at 1,0:a fstype zfs panic[cpu0]/thread=fffffffffbc283a0: vfs_mountroot: cannot mount root fffffffffbc4ab50 genunix:vfs_mountroot+323 () fffffffffbc4ab90 genunix:main+af () fffffffffbc4aba0 unix:_start+95 () skipping system dump - no dump device configured ?ebooting... I''ve googled plenty, but don''t see what''s going on. Can anyone tell me how to make this work ? -- Jeremy Kister http://jeremy.kister.net./
On Sat, 2009-09-19 at 22:03 -0400, Jeremy Kister wrote:> I added a disk to the rpool of my zfs root: > # zpool attach rpool c1t0d0s0 c1t1d0s0 > # installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c1t1d0s0 > > I waited for the resilver to complete, then i shut the system down. > > then i physically removed c1t0d0 and put c1t1d0 in it''s place. > > I tried to boot the system, but it panics:Afaik you can''t remove the first disk. You''ve created a mirror of two disks from either which you may boot the system. BUT the second disk must remain where it is. You can set the bios to boot from it if the first disk fails, but you may not *swap* them. -- Dick Hoogendijk -- PGP/GnuPG key: 01D2433D + http://nagual.nl/ | SunOS 10u7 5/09 | OpenSolaris 2010.02 b123 + All that''s really worth doing is what we do for others (Lewis Carrol)
On 09/20/09 03:20 AM, dick hoogendijk wrote:> On Sat, 2009-09-19 at 22:03 -0400, Jeremy Kister wrote: >> I added a disk to the rpool of my zfs root: >> # zpool attach rpool c1t0d0s0 c1t1d0s0 >> # installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c1t1d0s0 >> >> I waited for the resilver to complete, then i shut the system down. >> >> then i physically removed c1t0d0 and put c1t1d0 in it''s place. >> >> I tried to boot the system, but it panics: > > Afaik you can''t remove the first disk. You''ve created a mirror of two > disks from either which you may boot the system. BUT the second disk > must remain where it is. You can set the bios to boot from it if the > first disk fails, but you may not *swap* them.That''s my experience also. If you are trying to make a bootable disk to keep on the shelf, there''s an excellent example here: http://forums.sun.com/thread.jspa?threadID=5345546 IMO this should go on the wiki. I think it''s a great example of the power of ZFS. I can''t imagine doing anything like this with so easily with any legacy file system... Cheers -- Frank