i am attempting to follow the recipe in:
http://blogs.sun.com/sa/entry/hotplugging_sata_drives

the recipe copies the vtoc from the old drive to the new drive and then does an 
attach. when i get to the attach - the partition slices on the new drive 
overlap (the partition slices on the old drive overlap) - and i get an error 
message:
init...@dogpatch:~# zpool attach rpool c7t0d0s0 c7t1d0s0
invalid vdev specification
use '-f' to override the following errors:
/dev/dsk/c7t1d0s0 overlaps with /dev/dsk/c7t1d0s2

here is the vtoc of the original drive:
init...@dogpatch:~# prtvtoc /dev/rdsk/c7t0d0s2
* /dev/rdsk/c7t0d0s2 partition map
*
* Dimensions:
* 512 bytes/sector
* 63 sectors/track
* 255 tracks/cylinder
* 16065 sectors/cylinder
* 36471 cylinders
* 36469 accessible cylinders
*
* Flags:
* 1: unmountable
* 10: read-only
*
* Unallocated space:
* First Sector Last
* Sector Count Sector
* 0 16065 16064
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
0 2 00 16065 585858420 585874484
2 5 01 0 585874485 585874484
8 1 01 0 16065 16064
init...@dogpatch:~#

the original opensolaris install would have partitioned and formatted this 
drive - so that partitions 0 and 2 overlap. to solve the problem, i used format 
to zero out s2 on the new drive - and then the attach for s0 worked. however - 
it caused the next step to fail:

init...@dogpatch:~$ installgrub /boot/grub/stage1 /boot/grub/stage2 
/dev/rdsk/c7t1d0s0
cannot open/stat device /dev/rdsk/c7t1d0s2

should i have zeroed s0 on the new drive and attached s2? what should i have 
done differently?
-- 
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to