ZFS: Difference between revisions
From DWIKI
mNo edit summary |
mNo edit summary |
||
Line 18: | Line 18: | ||
| | ||
| |||
= HOWTO = | = HOWTO = | ||
== Replace disk == | == Replace disk == | ||
===Some links === | === Some links === | ||
*[https://itectec.com/ubuntu/ubuntu-replacing-a-dead-disk-in-a-zpool/ https://itectec.com/ubuntu/ubuntu-replacing-a-dead-disk-in-a-zpool/] | |||
| |||
zpool offline poolname diskname | zpool offline poolname diskname | ||
Line 33: | Line 35: | ||
ls -al /dev/disk/by-id | ls -al /dev/disk/by-id | ||
Find uid of disk to replace | Find uid of disk to replace | ||
zdb | zdb | ||
Save the id, shutdown, replace disk, boot: | |||
Find the new disk: | |||
ls -al /dev/disk/by-id | |||
The id is the ID of the old disk, name is of the new disk | |||
zpool replace tank 13450850036953119346 /dev/disk/by-id/ata-ST4000VN000-1H4168_Z302FQVZ | zpool replace tank 13450850036953119346 /dev/disk/by-id/ata-ST4000VN000-1H4168_Z302FQVZ |
Revision as of 22:19, 31 December 2020
Links
- ZFS on Linux
- https://wiki.gentoo.org/wiki/ZFS
- ZFS cheatsheet
- http://open-zfs.org
- http://wiki.freebsd.org/ZFSQuickStartGuide
- http://www.opensolaris.org/os/community/zfs/intro/
- http://en.wikipedia.org/wiki/ZFS
- http://www.edplese.com/samba-with-zfs.html
- ZFS calculator
- ZFS clustering
- {https://jrs-s.net/2015/02/03/will-zfs-and-non-ecc-ram-kill-your-data/ ZFS and ECC]
HOWTO
Replace disk
Some links
zpool offline poolname diskname
Get list of disk by id:
ls -al /dev/disk/by-id
Find uid of disk to replace
zdb
Save the id, shutdown, replace disk, boot: Find the new disk:
ls -al /dev/disk/by-id
The id is the ID of the old disk, name is of the new disk
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