I had a drive fail in a 3-drive ZFS array a few days back. The zpool was degraded, so I ordered another drive. I shut down the system (since it's not hot-swappable) and replaced the bad drive.
There were two Samsung 1.5TBs, and a Seagate 1.5TB. Of course the POS Seagate failed, as I've had about 8 of them fail on me in the last five years. Not sure what I was thinking when I built the array, but oh well.
At any rate, the autonaming feature has effectively pissed me off. The remaining drives have shifted, and the new drive has a ridiculous long number for a name. I've disabled auto-generated UPT and UUID for new disks through the following loaders:
kern.geom.label.gptid.enable="0"
kern.geom.label.ufsid.enable="0"
I rebooted, hoping the drives would get back in their proper naming order, but of course, they didn't. It was so easy for them to rename themselves, but I can't seem to figure out how to name them back logically.
Here is the output from "zpool status -v" (vol1 is another drive being used for CIFS):
This, from "sysctl kern.disks"
"camcontrol devlist" (which still shows the old Seagate drive, that I replaced with a Samsung matching the other two drives):
"glabel status"
...and finally, a "gpart show":
Can anyone help?
There were two Samsung 1.5TBs, and a Seagate 1.5TB. Of course the POS Seagate failed, as I've had about 8 of them fail on me in the last five years. Not sure what I was thinking when I built the array, but oh well.
At any rate, the autonaming feature has effectively pissed me off. The remaining drives have shifted, and the new drive has a ridiculous long number for a name. I've disabled auto-generated UPT and UUID for new disks through the following loaders:
kern.geom.label.gptid.enable="0"
kern.geom.label.ufsid.enable="0"
I rebooted, hoping the drives would get back in their proper naming order, but of course, they didn't. It was so easy for them to rename themselves, but I can't seem to figure out how to name them back logically.
Here is the output from "zpool status -v" (vol1 is another drive being used for CIFS):
Code:
[root@freenas] /dev# zpool status -v
pool: vol0
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'.
see: http://www.sun.com/msg/ZFS-8000-4J
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
vol0 DEGRADED 0 0 0
raidz1 DEGRADED 0 0 0
16887281796856902055 FAULTED 0 0 0 was /dev/ada0p2
ada0p2 ONLINE 0 0 0
ada1p2 ONLINE 0 0 0
errors: No known data errors
pool: vol1
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
vol1 ONLINE 0 0 0
ada2p2 ONLINE 0 0 0
errors: No known data errors
This, from "sysctl kern.disks"
Code:
[root@freenas] /dev# sysctl kern.disks
kern.disks: ada2 ada1 ada0 da0
"camcontrol devlist" (which still shows the old Seagate drive, that I replaced with a Samsung matching the other two drives):
Code:
[root@freenas] /dev# camcontrol devlist
<SAMSUNG HD154UI 1AG01118> at scbus1 target 0 lun 0 (ada0,pass0)
<SAMSUNG HD154UI 1AG01118> at scbus2 target 0 lun 0 (ada1,pass1)
<ST31500341AS CC1H> at scbus3 target 0 lun 0 (ada2,pass2)
<Kingston DataTraveler 2.0 1.00> at scbus6 target 0 lun 0 (da0,pass3)
"glabel status"
Code:
[root@freenas] /dev# glabel status
Name Status Components
ufs/FreeNASs3 N/A da0s3
ufs/FreeNASs4 N/A da0s4
ufs/FreeNASs1a N/A da0s1a
...and finally, a "gpart show":
Code:
[root@freenas] /dev# gpart show
=> 63 7823214 da0 MBR (3.7G)
63 1930257 1 freebsd [active] (943M)
1930320 63 - free - (32K)
1930383 1930257 2 freebsd (943M)
3860640 3024 3 freebsd (1.5M)
3863664 41328 4 freebsd (20M)
3904992 3918285 - free - (1.9G)
=> 0 1930257 da0s1 BSD (943M)
0 16 - free - (8.0K)
16 1930241 1 !0 (943M)
=> 34 2930277101 ada0 GPT (1.4T)
34 94 - free - (47K)
128 4194304 1 freebsd-swap (2.0G)
4194432 2926082703 2 freebsd-zfs (1.4T)
=> 34 2930277101 ada1 GPT (1.4T)
34 94 - free - (47K)
128 4194304 1 freebsd-swap (2.0G)
4194432 2926082703 2 freebsd-zfs (1.4T)
=> 34 2930277101 ada2 GPT (1.4T)
34 94 - free - (47K)
128 4194304 1 freebsd-swap (2.0G)
4194432 2926082703 2 freebsd-zfs (1.4T)
Can anyone help?