public:managing_zfs_on_debian
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:managing_zfs_on_debian [2024/04/12 19:50] – thomas | public:managing_zfs_on_debian [2024/05/03 21:29] (current) – [Transferring a snapshot to a pool on another server] thomas | ||
|---|---|---|---|
| Line 42: | Line 42: | ||
| If a filesystem is already detected on the disks, use the '' | If a filesystem is already detected on the disks, use the '' | ||
| + | :!: To easily identify devices later on, instead of adding them as ''/ | ||
| + | |||
| + | < | ||
| + | lsblk -o name, | ||
| + | </ | ||
| ===== Checking available pools ===== | ===== Checking available pools ===== | ||
| Line 48: | Line 53: | ||
| </ | </ | ||
| + | ===== Viewing full pool status (to display errors) ===== | ||
| + | |||
| + | < | ||
| + | zpool status -v | ||
| + | </ | ||
| + | |||
| + | ===== Destroying a dataset ===== | ||
| + | |||
| + | < | ||
| + | zfs destroy tank/ | ||
| + | </ | ||
| + | |||
| + | ===== Destroying a zpool ===== | ||
| + | |||
| + | < | ||
| + | zpool destroy tank | ||
| + | </ | ||
| + | ===== Listing snapshots ===== | ||
| + | |||
| + | < | ||
| + | zfs list -t snapshot | ||
| + | </ | ||
| + | |||
| + | ===== Creating a snapshot ===== | ||
| + | |||
| + | < | ||
| + | zfs snapshot tank/ | ||
| + | </ | ||
| + | |||
| + | ===== Transferring a snapshot to a pool on another server ===== | ||
| + | |||
| + | Ideally, do this in a '' | ||
| + | |||
| + | You can transfer a snapshot via SSH: | ||
| + | < | ||
| + | zfs send tank/ | ||
| + | </ | ||
| + | |||
| + | Or via '' | ||
| + | < | ||
| + | # On the sending server: | ||
| + | zfs send storage-master/ | ||
| + | # On the receiving server: | ||
| + | nc -l -p 7777 | zfs recv -F tank/ | ||
| + | </ | ||
| + | |||
| + | :!: Apparently, when using '' | ||
| + | |||
| + | If you have '' | ||
| + | < | ||
| + | # On the sending server: | ||
| + | zfs send storage-master/ | ||
| + | # On the receiving server: | ||
| + | nc -l -p 7777 | pv | zfs recv -F tank/ | ||
| + | </ | ||
| + | |||
| + | If the source dataset is encrypted, you might want to send it in its encrypted form using the '' | ||
| + | |||
| + | < | ||
| + | zfs send --raw storage-master/ | ||
| + | </ | ||
| + | |||
| + | If you want to send the difference between two snapshots, you can do so as follows: | ||
| + | |||
| + | < | ||
| + | zfs send -i tank/ | ||
| + | </ | ||
| + | |||
| + | This also works with the '' | ||
| + | ====== References ====== | ||
| + | |||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | {{tag> | ||
public/managing_zfs_on_debian.1712951455.txt.gz · Last modified: by thomas
