mirror of
https://github.com/openoms/bitcoin-tutorials.git
synced 2025-12-18 12:34:20 +01:00
zfs restore notes
This commit is contained in:
@@ -246,16 +246,20 @@
|
||||
## Import an existing ZFS pool
|
||||
* https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/index.html
|
||||
```
|
||||
zpool import
|
||||
zpool import -a
|
||||
poolname="fourdiskpool"
|
||||
zpool import ${poolname} -f
|
||||
|
||||
|
||||
# restore the key
|
||||
|
||||
# load key and mount
|
||||
sudo /sbin/zfs load-key -a
|
||||
sudo /sbin/zfs mount -la
|
||||
|
||||
# check
|
||||
df -h
|
||||
|
||||
# automount with cron
|
||||
# automount with cron on reboot
|
||||
cronjob="@reboot sudo /sbin/zfs load-key -a; sudo /sbin/zfs mount -la"
|
||||
(
|
||||
crontab -u admin -l
|
||||
|
||||
Reference in New Issue
Block a user