Вырубаем один диск на горячую ada0p2:
# zpool status -v pool: zroot state: DEGRADED status: One or more devices has been removed 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: none requested config:
Перезагрузимся, ничего не поменяется, при выключении уже можно вставить новый диск
# shutdown -r now
# zpool status -v pool: zroot state: DEGRADED status: One or more devices has been removed 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: none requested config:
# ls -l /dev/ad* crw-r----- 1 root operator 0x3f Dec 11 14:55 /dev/ada0 crw-r----- 1 root operator 0x41 Dec 11 14:55 /dev/ada0p1 crw-r----- 1 root operator 0x52 Dec 11 14:55 /dev/ada0p2 crw-r----- 1 root operator 0x40 Dec 11 14:55 /dev/ada1 crw-r----- 1 root operator 0x53 Dec 11 14:55 /dev/ada1p1 crw-r----- 1 root operator 0x54 Dec 11 14:55 /dev/ada1p2 crw-r----- 1 root operator 0x57 Dec 11 14:55 /dev/ada2 crw-r----- 1 root operator 0x5a Dec 11 14:55 /dev/ada2p1 crw-r----- 1 root operator 0x5b Dec 11 14:55 /dev/ada2p2
Вставили новый диск например на горячую без разметки, определился:
# ls -l /dev/ad* crw-r----- 1 root operator 0x3f Dec 11 14:55 /dev/ada0 crw-r----- 1 root operator 0x41 Dec 11 14:55 /dev/ada0p1 crw-r----- 1 root operator 0x52 Dec 11 14:55 /dev/ada0p2 crw-r----- 1 root operator 0x40 Dec 11 14:55 /dev/ada1 crw-r----- 1 root operator 0x53 Dec 11 14:55 /dev/ada1p1 crw-r----- 1 root operator 0x54 Dec 11 14:55 /dev/ada1p2 crw-r----- 1 root operator 0x57 Dec 11 14:55 /dev/ada2 crw-r----- 1 root operator 0x5a Dec 11 14:55 /dev/ada2p1 crw-r----- 1 root operator 0x5b Dec 11 14:55 /dev/ada2p2 crw-r----- 1 root operator 0x63 Dec 11 15:17 /dev/ada3
Уберем старый диск в оффлайн:
# zpool offline zroot 6419677237496703848
# zpool status -v pool: zroot 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: none requested config: