> From: Edward Ned Harvey
> [mailto:opensolarisisdeadlongliveopensola...@nedharvey.com]
> 
> Disk 0 is the one where the OS is installed.  During installation, I
> opted to install the OS into a partition.  Now I'm trying to replicate
> the fdisk partition tables (and partition slice tables) onto the second
> disk...  And after that's done, I'll start mirroring the rpool slice to
> the new disk rpool slice.  But I haven't been able to get that far
> yet...

Got it.
firstdisk=c0t5000C5003424396Bd0
seconddisk=c0t5000C5002637311Fd0
sudo fdisk -W fdisk-partition-table-backup.txt /dev/rdsk/${firstdisk}p0
sudo fdisk -F fdisk-partition-table-backup.txt /dev/rdsk/${seconddisk}p0
sudo prtvtoc /dev/rdsk/${firstdisk}s2 > partition-slice-table-backup.txt
sudo fmthard -s partition-slice-table-backup.txt /dev/rdsk/${seconddisk}s2

sudo format -e
Select second disk, label, SMI (not EFI)

sudo zpool attach -f rpool ${firstdisk}s0 ${seconddisk}s0

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to