Difference between revisions of "ZFS"

From DWIKI
m
m
Line 16: Line 16:
*[https://docs.joyent.com/private-cloud/troubleshooting/disk-replacement ZFS troubleshooting/disk replacement]  
*[https://docs.joyent.com/private-cloud/troubleshooting/disk-replacement ZFS troubleshooting/disk replacement]  


 
= HOWTO =
== Replace disk ==
zpool offline poolname 
Get list of disk by id:
ls -al /dev/disk/by-id
Find uid of disk to replace
zdb
zpool replace tank 13450850036953119346 /dev/disk/by-id/ata-ST4000VN000-1H4168_Z302FQVZ


= FAQ =
= FAQ =
Line 29: Line 47:


== check raid level ==
== check raid level ==
  zfs list -a
  zfs list -a

Revision as of 21:32, 28 December 2020

Links

 

HOWTO

Replace disk

zpool offline poolname 

Get list of disk by id:

ls -al /dev/disk/by-id


Find uid of disk to replace

zdb
zpool replace tank 13450850036953119346 /dev/disk/by-id/ata-ST4000VN000-1H4168_Z302FQVZ

FAQ

show status

zspool status

show drives/pools

zfs list
      

check raid level

zfs list -a