Hi all,
Upfront confession...I am NOT a linux person by any stretch of the imagination.
We had our SSD die over the weekend, but the secondary/mirror drive seems to be fine.
Following some helpful instructions on the forum, we have replaced the dead drive, loaded CentOS and have AntMan up and running. There is a new and healthy antlet (named antlet) on the new drive with the active OS.
The second drive is attached, and I can see that there is an existing antlet (which we managed to rename to antlet-old to avoid confusion). The antlet-old shows up in AntMan as 72% full, so I'm taking that as a good sign that there is data to be recovered somewhere.
The ZPOOL mirror status shows the degraded status, but I can't figure out how to tell the antlet-old to put its data into antlet on the new drive to rebuild the mirror, and bring everything back to life.
Results of a couple commands to the ZPOOL listed below.
Any help would be greatly appreciated!
root@carantsle1:~ # zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
antlets 456G 47.6G 408G - - 0% 10% 1.00x ONLINE -
antlets-old 448G 327G 121G - - 0% 72% 1.00x DEGRADED -
root@carantsle1:~ # zpool status
pool: antlets
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
antlets ONLINE 0 0 0
sda4 ONLINE 0 0 0
errors: No known data errors
pool: antlets-old
state: DEGRADED
status: One or more devices could not be used because the label is missing or
invalid. Sufficient replicas exist for the pool to continue
functioning in a degraded state.
action: Replace the device using 'zpool replace'.
scan: none requested
config:
NAME STATE READ WRITE CKSUM
antlets-old DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
5244363799507771969 FAULTED 0 0 0 was /dev/sda4
sdb2 ONLINE 0 0 0
errors: No known data errors
***The faulted UID is NOT the UID of the antlet on the hard drive that is still functional from the original setup. See results of lsblk -f below.
root@carantsle1:~ # lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
sda zfs_member antlets 2226498227691933255
├─sda1 vfat antlets B315-52F5 /boot/efi
├─sda2 xfs antlets ba0f9242-a78d-41eb-80c2-a30bda59c3e0 /boot
├─sda3 xfs antlets 5bdaeba9-0b47-4920-bdc2-f48fb5036cf2 /
└─sda4 zfs_member antlets 2226498227691933255
sdb
├─sdb1 swap d5a07a24-a407-43c0-b7ab-9b9b2ad0e6ed
└─sdb2 zfs_member antlets 475084199677983392
***sdb is drive holding data we are after. UID ending in 3392 is what we want to retain and use.