diff --git a/Zpool-wrong-device-name.md b/Zpool-wrong-device-name.md new file mode 100644 index 0000000..a995a5a --- /dev/null +++ b/Zpool-wrong-device-name.md @@ -0,0 +1,69 @@ +In a pool a I have a device with a not attended name : + +~~~ +root@gobt:~ # zpool status snob + pool: snob + state: ONLINE + scan: scrub repaired 0 in 0 days 08:32:12 with 0 errors on Mon Dec 14 06:47:16 2020 +config: + + NAME STATE READ WRITE CKSUM + snob ONLINE 0 0 0 + raidz2-0 ONLINE 0 0 0 + gpt/snob0 ONLINE 0 0 0 + gpt/snob1 ONLINE 0 0 0 + gpt/snob2 ONLINE 0 0 0 + gpt/snob3 ONLINE 0 0 0 + gpt/snob4 ONLINE 0 0 0 + diskid/DISK-ZAD4H4JTp1 ONLINE 0 0 0 + gpt/snob6 ONLINE 0 0 0 + gpt/snob7 ONLINE 0 0 0 + +errors: No known data errors +root@gobt:~ # +~~~ + +It should be gpy/snob5 : + +~~~ +root@gobt:~ # gpart show -l diskid/DISK-ZAD4H4JT +=> 6 1465130635 diskid/DISK-ZAD4H4JT GPT (5.5T) + 6 1465130635 1 snob5 (5.5T) + +root@gobt:~ # +~~~ + +~~~ +root@gobt:~ # zpool offline snob diskid/DISK-ZAD4H4JTp1 +root@gobt:~ # zpool status snob + pool: snob + state: DEGRADED +status: One or more devices has been taken offline by the administrator. + Sufficient replicas exist for the pool to continue functioning in a + degraded state. +action: Online the device using 'zpool online' or replace the device with + 'zpool replace'. + scan: scrub repaired 0 in 0 days 08:32:12 with 0 errors on Mon Dec 14 06:47:16 2020 +config: + + NAME STATE READ WRITE CKSUM + snob DEGRADED 0 0 0 + raidz2-0 DEGRADED 0 0 0 + gpt/snob0 ONLINE 0 0 0 + gpt/snob1 ONLINE 0 0 0 + gpt/snob2 ONLINE 0 0 0 + gpt/snob3 ONLINE 0 0 0 + gpt/snob4 ONLINE 0 0 0 + 16723566489920197929 OFFLINE 0 0 0 was /dev/diskid/DISK-ZAD4H4JTp1 + gpt/snob6 ONLINE 0 0 0 + gpt/snob7 ONLINE 0 0 0 + +errors: No known data errors +root@gobt:~ # +~~~ + +~~~ +root@gobt:~ # glabel label snob5 /dev/da0 +~~~ + +