Hello,
I need some help mirroring my rpool.
I have a 60gb ssd running the rpool alone and want to mirror it for redundancy so I bought a 120gb ssd that I found for a good price. 60gb drives aren't as easy to find at a good price anymore it seems.
I (a bit naively) thought after reading http://docs.oracle.com/cd/E19253-01/819-5461/gkdep/index.html that it would be as easy to mirror as a storage pool using just zpool attach pool drive1 drive2, but I found out it is not.
:~# zpool status rpool
pool: rpool
state: ONLINE
scan: scrub repaired 0 in 10m47s with 0 errors on Sun Apr 2 00:06:47 2017
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c3d0s0 ONLINE 0 0 0
errors: No known data errors
:~# zpool attach rpool c3d0 c7d0
Error: c7d0s0 is part of an EFI(GPT) labeled device.
A required boot partition (BIOS Boot) was not found.
cannot attach c7d0 to c3d0: All disk labeling/system requirements are not satisfied.
c3d0 being the existing drive and c7d0 the new drive.
Trying to google the answer and looking in these forums I found some information (ZFS mirroring and http://www.unix.com/solaris/181919-create-boot-disk-mirror-solaris-10-x86.html\) on how to proceed but I just can not get it to work properly. I am probably doing something wrong with partitioning but need help figuring out what.
Here is what I have tried and where I get stuck.
:~# fdisk -B c7d0p0
:~# fdisk -W - c7d0p0
* /dev/rdsk/c7d0p0 default fdisk table
* Dimensions:
* 512 bytes/sector
* 56 sectors/track
* 224 tracks/cylinder
* 18689 cylinders
*
* systid:
* 1: DOSOS12
* 2: PCIXOS
* 4: DOSOS16
* 5: EXTDOS
* 6: DOSBIG
* 7: FDISK_IFS
* 8: FDISK_AIXBOOT
* 9: FDISK_AIXDATA
* 10: FDISK_0S2BOOT
* 11: FDISK_WINDOWS
* 12: FDISK_EXT_WIN
* 14: FDISK_FAT95
* 15: FDISK_EXTLBA
* 18: DIAGPART
* 65: FDISK_LINUX
* 82: FDISK_CPM
* 86: DOSDATA
* 98: OTHEROS
* 99: UNIXOS
* 100: FDISK_NOVELL2
* 101: FDISK_NOVELL3
* 119: FDISK_QNX4
* 120: FDISK_QNX42
* 121: FDISK_QNX43
* 130: SUNIXOS
* 131: FDISK_LINUXNAT
* 134: FDISK_NTFSVOL1
* 135: FDISK_NTFSVOL2
* 165: FDISK_BSD
* 167: FDISK_NEXTSTEP
* 183: FDISK_BSDIFS
* 184: FDISK_BSDISWAP
* 190: X86BOOT
* 191: SUNIXOS2
* 238: EFI_PMBR
* 239: EFI_FS
*
* Id Act Bhead Bsect Bcyl Ehead Esect Ecyl Rsect Numsect
191 128 199 8 0 254 63 1023 12544 234422272
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
:~# prtvtoc /dev/rdsk/c3d0s0 | fmthard -s - /dev/rdsk/c7d0s0
Partition 0 not aligned on cylinder boundary: " 0 2 00 16065 117162045 117178109"
If I run format and remove the EFI partition, create a new solaris2 partition and run zpool attach, the drive returns to EFI labels. Should it do that or am I missing something there too?
Any help resolving this is much appreciated.
:~# cat /etc/release
Oracle Solaris 11.3 X86