Hello,
I have a zfs-pool with a few filesystems on top of four HDDs with a geli layer. What is the "correct" way to shutdown the server to prevent data loss?
Do I have to perform
I would perform a clean shutdown like that. Is that correct?
Of course I read the man page zpool(8) but I am a little bit confused. What is the difference between
Can somebody give a few examples in what situation I have to perform those command?
thanks and greets
yyag
I have a zfs-pool with a few filesystems on top of four HDDs with a geli layer. What is the "correct" way to shutdown the server to prevent data loss?
Do I have to perform
zpool detach
and / or zfs export
commands manually before system shutdown or is that not necessary?I would perform a clean shutdown like that. Is that correct?
Code:
# zfs unmount -a
# zpool export <--// necessary? -->
# geli detach /dev...
# poweroff
Of course I read the man page zpool(8) but I am a little bit confused. What is the difference between
# zpool export
# zpool detach
# zpool replace
# zpool remove
# zpool offline
Can somebody give a few examples in what situation I have to perform those command?
thanks and greets
yyag