Jiawen Chen
2011-Jul-01 08:58 UTC
[zfs-discuss] Trouble mirroring root pool onto larger disk
Hi, I have Solaris 11 Express with a root pool installed on a 500 GB disk. I''d like to migrate it to a 2 TB disk. I''ve followed the instructions on the ZFS troubleshooting guide (http://www.solarisinternals.com/wiki/index.php/ZFS_Troubleshooting_Guide#Replacing.2FRelabeling_the_Root_Pool_Disk) and the Oracle ZFS Administration Guide (http://download.oracle.com/docs/cd/E19253-01/819-5461/ghzvx/index.html) pretty carefully. However, things still don''t work: after re-silvering, I switch my BIOS to boot from the 2 TB disk and at boot, *some* kind of error message appears for < 1 second before the machine reboots itself. Is there any way I can view this message? I.e., is this message written to the log anywhere? As far as I can tell, I''ve set up all the partitions and slices correctly (VTOC below). The only error message I get is when I do: # zpool attach rpool c9t0d0s0 c13d1s0 (c9t0d0s0 is the 500 GB original disk, c13d1s0 is the 2 TB new disk) I get: invalid vdev specification use ''-f'' to override the following errors: _dev_dsk_c13d1s0 overlaps with _dev_dsk_c13d1s2 But that''s a well known bug and I use "-f" to force it since the backup slice shouldn''t matter. If anyone has any ideas, I really appreciate it. -- This message posted from opensolaris.org
Jiawen Chen
2011-Jul-01 09:00 UTC
[zfs-discuss] Trouble mirroring root pool onto larger disk
Here''s my disk layout ============================================================ 500 GB disk fdisk Total disk size is 60801 cylinders Cylinder size is 16065 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ============ ===== === ====== == 1 Active Solaris2 1 60800 60800 100 VTOC: partition> p Current partition table (original): Total disk cylinders available: 60798 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wm 1 - 60797 465.73GB (60797/0/0) 976703805 1 unassigned wm 0 0 (0/0/0) 0 2 backup wu 0 - 60797 465.74GB (60798/0/0) 976719870 3 unassigned wm 0 0 (0/0/0) 0 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 unassigned wm 0 0 (0/0/0) 0 7 unassigned wm 0 0 (0/0/0) 0 8 boot wu 0 - 0 7.84MB (1/0/0) 16065 9 unassigned wm 0 0 (0/0/0) 0 ============================================================ 2 TB disk: fdisk: Total disk size is 60799 cylinders Cylinder size is 64260 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ============ ===== === ====== == 1 Active Solaris2 1 60798 60798 100 VTOC: partition> p Current partition table (original): Total disk cylinders available: 60796 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wm 1 - 60795 1.82TB (60795/0/0) 3906686700 1 unassigned wm 0 0 (0/0/0) 0 2 backup wu 0 - 60795 1.82TB (60796/0/0) 3906750960 3 unassigned wm 0 0 (0/0/0) 0 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 unassigned wm 0 0 (0/0/0) 0 7 unassigned wm 0 0 (0/0/0) 0 8 boot wu 0 - 0 31.38MB (1/0/0) 64260 9 unassigned wm 0 0 (0/0/0) 0 ============================================================-- This message posted from opensolaris.org
Cindy Swearingen
2011-Jul-01 15:28 UTC
[zfs-discuss] Trouble mirroring root pool onto larger disk
Hi Jiawen, Yes, the boot failure message would be very helpful. The first thing to rule out is: I think you need to be running a 64-bit kernel to boot from a 2 TB disk. Thanks, Cindy On 07/01/11 02:58, Jiawen Chen wrote:> Hi, > > I have Solaris 11 Express with a root pool installed on a 500 GB disk. I''d like to migrate it to a 2 TB disk. I''ve followed the instructions on the ZFS troubleshooting guide (http://www.solarisinternals.com/wiki/index.php/ZFS_Troubleshooting_Guide#Replacing.2FRelabeling_the_Root_Pool_Disk) and the Oracle ZFS Administration Guide (http://download.oracle.com/docs/cd/E19253-01/819-5461/ghzvx/index.html) pretty carefully. However, things still don''t work: after re-silvering, I switch my BIOS to boot from the 2 TB disk and at boot, *some* kind of error message appears for < 1 second before the machine reboots itself. Is there any way I can view this message? I.e., is this message written to the log anywhere? > > As far as I can tell, I''ve set up all the partitions and slices correctly (VTOC below). The only error message I get is when I do: > > # zpool attach rpool c9t0d0s0 c13d1s0 > > (c9t0d0s0 is the 500 GB original disk, c13d1s0 is the 2 TB new disk) > > I get: > > invalid vdev specification > use ''-f'' to override the following errors: > _dev_dsk_c13d1s0 overlaps with _dev_dsk_c13d1s2 > > But that''s a well known bug and I use "-f" to force it since the backup slice shouldn''t matter. If anyone has any ideas, I really appreciate it.
Jim Klimov
2011-Jul-01 16:15 UTC
[zfs-discuss] Trouble mirroring root pool onto larger disk
Do you get to the GRUB menu while booting from the larger drive (then you can try verbose and/or mdb boots to Solaris and catch its panic errors), or does the machine reboot before even getting to GRUB? Couple of "silly questions": 1) Did you "installgrub" onto the second drive? 2) Are you certain your BIOS supports booting from a 2Tb device and MBR partition? Or with that size it should be a GPT partition, probably, which should emulate an empty(?) MBR table... So try to see if that text involves something about a missing boot device or an empty hard-disk, etc. Enabling your BIOS to pause on boot errors (known by the funny message "Keyboard not found, press F1 to continue booting") can help to read the error. Otherwise you can try to quickly press the PAUSE key to pause the BIOS output and SPACE to go on booting. Alternate both to try and catch teh error string...