ZFS: Difference between revisions
From DWIKI
mNo edit summary |
mNo edit summary |
||
Line 21: | Line 21: | ||
= HOWTO = | = HOWTO = | ||
Line 35: | Line 36: | ||
zpool status | zpool status | ||
Find uid of disk to replace | Find uid of disk to replace | ||
take it offline | |||
zpool offline poolname ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M5RLZC6V | |||
zpool offline poolname | |||
Get the disk guid: | Get the disk guid: | ||
zdb | zdb | ||
guid: 15233236897831806877 | |||
Get list of disk by id: | Get list of disk by id: | ||
Line 48: | Line 54: | ||
ls -al /dev/disk/by-id | ls -al /dev/disk/by-id | ||
Save the id, shutdown, replace disk, boot: | |||
Save the id, shutdown, replace disk, boot: | |||
Find the new disk: | Find the new disk: | ||
ls -al /dev/disk/by-id | ls -al /dev/disk/by-id | ||
Run replace command. The id is the guid of the old disk, name is of the new disk | Run replace command. The id is the guid of the old disk, name is of the new disk |
Revision as of 12:02, 1 January 2021
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 in zfs
Some links
Get information first:
Name of disk
zpool status
Find uid of disk to replace
take it offline
zpool offline poolname ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M5RLZC6V
Get the disk guid:
zdb
guid: 15233236897831806877
Get list of disk by id:
ls -al /dev/disk/by-id
Save the id, shutdown, replace disk, boot:
Find the new disk:
ls -al /dev/disk/by-id
Run replace command. The id is the guid 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