moving only some directories / filesystems to ZFS datasets
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
At present, I'm playing around with a very small fileserver based around an Intel NUC, with the boot environment on a USB flash drive ("usbflash") and then using a large spinning disk ("HDD") for bulk storage. The HDD is entirely managed by ZFS, where the usbflash is a standard *buntu install with ext4 and a single large partition.
Is it possible/reasonable/smart to move /home, /var, and /tmp over to the ZFS partition? The write speed of the USB device is quite low and I'm also trying to minimize the writes to extend the usbflash lifespan. But at some level I'm also just messing around and trying to learn what does and doesn't work with ZFS ;-)
partition zfs
add a comment |Â
up vote
0
down vote
favorite
At present, I'm playing around with a very small fileserver based around an Intel NUC, with the boot environment on a USB flash drive ("usbflash") and then using a large spinning disk ("HDD") for bulk storage. The HDD is entirely managed by ZFS, where the usbflash is a standard *buntu install with ext4 and a single large partition.
Is it possible/reasonable/smart to move /home, /var, and /tmp over to the ZFS partition? The write speed of the USB device is quite low and I'm also trying to minimize the writes to extend the usbflash lifespan. But at some level I'm also just messing around and trying to learn what does and doesn't work with ZFS ;-)
partition zfs
/boot would be the main directory to not put on strange filesystems, others should be less of an issue, keeping in mind that if /var fails to mount you could be in trouble more so than with the others. You can always try mounting the directories, non need to remove data from the USB right away, if it doesn't boot then you could edit the fstab on the USB from another computer.
â fooot
Nov 20 '17 at 21:20
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
At present, I'm playing around with a very small fileserver based around an Intel NUC, with the boot environment on a USB flash drive ("usbflash") and then using a large spinning disk ("HDD") for bulk storage. The HDD is entirely managed by ZFS, where the usbflash is a standard *buntu install with ext4 and a single large partition.
Is it possible/reasonable/smart to move /home, /var, and /tmp over to the ZFS partition? The write speed of the USB device is quite low and I'm also trying to minimize the writes to extend the usbflash lifespan. But at some level I'm also just messing around and trying to learn what does and doesn't work with ZFS ;-)
partition zfs
At present, I'm playing around with a very small fileserver based around an Intel NUC, with the boot environment on a USB flash drive ("usbflash") and then using a large spinning disk ("HDD") for bulk storage. The HDD is entirely managed by ZFS, where the usbflash is a standard *buntu install with ext4 and a single large partition.
Is it possible/reasonable/smart to move /home, /var, and /tmp over to the ZFS partition? The write speed of the USB device is quite low and I'm also trying to minimize the writes to extend the usbflash lifespan. But at some level I'm also just messing around and trying to learn what does and doesn't work with ZFS ;-)
partition zfs
asked Nov 18 '17 at 21:43
ljwobker
17828
17828
/boot would be the main directory to not put on strange filesystems, others should be less of an issue, keeping in mind that if /var fails to mount you could be in trouble more so than with the others. You can always try mounting the directories, non need to remove data from the USB right away, if it doesn't boot then you could edit the fstab on the USB from another computer.
â fooot
Nov 20 '17 at 21:20
add a comment |Â
/boot would be the main directory to not put on strange filesystems, others should be less of an issue, keeping in mind that if /var fails to mount you could be in trouble more so than with the others. You can always try mounting the directories, non need to remove data from the USB right away, if it doesn't boot then you could edit the fstab on the USB from another computer.
â fooot
Nov 20 '17 at 21:20
/boot would be the main directory to not put on strange filesystems, others should be less of an issue, keeping in mind that if /var fails to mount you could be in trouble more so than with the others. You can always try mounting the directories, non need to remove data from the USB right away, if it doesn't boot then you could edit the fstab on the USB from another computer.
â fooot
Nov 20 '17 at 21:20
/boot would be the main directory to not put on strange filesystems, others should be less of an issue, keeping in mind that if /var fails to mount you could be in trouble more so than with the others. You can always try mounting the directories, non need to remove data from the USB right away, if it doesn't boot then you could edit the fstab on the USB from another computer.
â fooot
Nov 20 '17 at 21:20
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
Is it possible/reasonable/smart to move /home, /var, and /tmp over to the ZFS partition?
Yes, but you need to be careful about what you move. Specifically, unless the ZFS modules are part of the boot RAMdisk, you probably want to leave /var and /tmp where they are.
First, create a pool (the zpool create
command). Then, create file-systems (the zfs create
command) within the pool, setting them to mount to a temporary location (the -o mountpoint=XXX
option).
I would suggest that you move the data in single-user mode.
After the files have been moved, unmounts the source (USB) file-systems and the ZFS file-systems, and change the mount points of the ZFS file-systems (the zfs set
command with the mountpoint=XXX
option).
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Is it possible/reasonable/smart to move /home, /var, and /tmp over to the ZFS partition?
Yes, but you need to be careful about what you move. Specifically, unless the ZFS modules are part of the boot RAMdisk, you probably want to leave /var and /tmp where they are.
First, create a pool (the zpool create
command). Then, create file-systems (the zfs create
command) within the pool, setting them to mount to a temporary location (the -o mountpoint=XXX
option).
I would suggest that you move the data in single-user mode.
After the files have been moved, unmounts the source (USB) file-systems and the ZFS file-systems, and change the mount points of the ZFS file-systems (the zfs set
command with the mountpoint=XXX
option).
add a comment |Â
up vote
0
down vote
Is it possible/reasonable/smart to move /home, /var, and /tmp over to the ZFS partition?
Yes, but you need to be careful about what you move. Specifically, unless the ZFS modules are part of the boot RAMdisk, you probably want to leave /var and /tmp where they are.
First, create a pool (the zpool create
command). Then, create file-systems (the zfs create
command) within the pool, setting them to mount to a temporary location (the -o mountpoint=XXX
option).
I would suggest that you move the data in single-user mode.
After the files have been moved, unmounts the source (USB) file-systems and the ZFS file-systems, and change the mount points of the ZFS file-systems (the zfs set
command with the mountpoint=XXX
option).
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Is it possible/reasonable/smart to move /home, /var, and /tmp over to the ZFS partition?
Yes, but you need to be careful about what you move. Specifically, unless the ZFS modules are part of the boot RAMdisk, you probably want to leave /var and /tmp where they are.
First, create a pool (the zpool create
command). Then, create file-systems (the zfs create
command) within the pool, setting them to mount to a temporary location (the -o mountpoint=XXX
option).
I would suggest that you move the data in single-user mode.
After the files have been moved, unmounts the source (USB) file-systems and the ZFS file-systems, and change the mount points of the ZFS file-systems (the zfs set
command with the mountpoint=XXX
option).
Is it possible/reasonable/smart to move /home, /var, and /tmp over to the ZFS partition?
Yes, but you need to be careful about what you move. Specifically, unless the ZFS modules are part of the boot RAMdisk, you probably want to leave /var and /tmp where they are.
First, create a pool (the zpool create
command). Then, create file-systems (the zfs create
command) within the pool, setting them to mount to a temporary location (the -o mountpoint=XXX
option).
I would suggest that you move the data in single-user mode.
After the files have been moved, unmounts the source (USB) file-systems and the ZFS file-systems, and change the mount points of the ZFS file-systems (the zfs set
command with the mountpoint=XXX
option).
answered Dec 16 '17 at 18:52
Peter
1066
1066
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f405492%2fmoving-only-some-directories-filesystems-to-zfs-datasets%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
/boot would be the main directory to not put on strange filesystems, others should be less of an issue, keeping in mind that if /var fails to mount you could be in trouble more so than with the others. You can always try mounting the directories, non need to remove data from the USB right away, if it doesn't boot then you could edit the fstab on the USB from another computer.
â fooot
Nov 20 '17 at 21:20