Contents
Can a new disk be partitioned in LVM?
Partition the new disk. It can be one big LVM partition or you can set aside one or more non-LVM partitions for other purposes. I sometimes create multiple LVM partitions (aka physical volumes, or PVs) so that I can remove one or more of them from the LVM configuration in the future, should the need arise.
How to move home directory to new partition?
We will start by creating a new directory /srv/home where we can mount /dev/sdb1 for the time being. Then move the content of /home into /srv/home (so they will be practically stored in /dev/sdb1) using rsync command or cp command.
How to move / var to separate partition in Debian?
Remount it as /var 11. Edit /etc/fstab file to include the new partition, with /var being the mount point, so that it will be automatically mounted at boot. 12. Repeat steps 1-11 for /home and /tmp. 13. Finally return to multitasking mode.
Can a / Var Directory be mounted on another partition?
Your /var directory has filled up and you are left with with no free disk space available. This is a typical scenario which can be easily fixed by mounting your /var directory on different partition. Let’s get started by attaching new storage, partitioning and creating a desired file system.
Is there a command to mount a LVM volume?
Execute vgchange command to activate volume. Type lvs command to get information about logical volumes. Create a mount point using the mkdir command. Mount an LVM volume using sudo mount /dev/mapper/DEVICE /path/to/mount.
How to mount a LVM at / home?
Copy your /home directory with tar, cp, rsync, or whatever tool you prefer. Edit /etc/fstab to mount the new LV at /home. Rename your current /home to some other name (say, /home-orig) and create a new empty /home directory to serve as a mount point. Reboot and hope it works. If it all looks good, delete the old /home-orig directory.