Ask Your Question

Revision history [back]

In short, create an lvm disk, copy the / home directory in / dev / sda through rsync, and link the lvm information created in / etc / fdb to / home in the / etc / fstab directory.

 a. create lvm disk for /dev/sdb
 # fdisk /dev/sdb
   => p      ; check
   => n      ; add new disk
   => t      ; change to disk ext4 to lvm
   =>wq    : overwrite and quit

 b. make lvm for /dev/sdb
 # pvcreate /dev/sdb1
 # vgcreate rau /dev/sdb1
 # lvcreate -l 100%FREE -n pasi rua
 # mkfs.xfs /dev/rua/pasi                        ;  or  mkfs.xfs /dev/mapper/rua-pasi

 c. mount lvm
 # mount /dev/rua/pasi /mnt
 # rsync -avz /home/*  /mnt/
 # cp -Rf /home /home_backup

 d. modify /etc/fstab
 # vi /etc/fstab
 /dev/mapper/rua-pasi    /home           xfs     defaults 0 0

 e. reboot and check
 # reboot
 # lvscan
 [root@cugar simmon]# df
 /dev/mapper/rua-pasi     10471424   147900  10323524   2% /home

I took my case as an example, and the lvm configuration was created using / dev / mapper / rua-pasi. If it works normally, it will delete the backup folder.

I prefer to expand the partition after installation. In short, create an lvm disk, copy the / home directory in / dev / sda through rsync, and link the lvm information created in / etc / fdb to / home in the / etc / fstab directory.

 a. create lvm disk for /dev/sdb
 # fdisk /dev/sdb
   => p      ; check
   => n      ; add new disk
   => t      ; change to disk ext4 to lvm
   =>wq    : overwrite and quit

 b. make lvm for /dev/sdb
 # pvcreate /dev/sdb1
 # vgcreate rau /dev/sdb1
 # lvcreate -l 100%FREE -n pasi rua
 # mkfs.xfs /dev/rua/pasi                        ;  or  mkfs.xfs /dev/mapper/rua-pasi

 c. mount lvm
 # mount /dev/rua/pasi /mnt
 # rsync -avz /home/*  /mnt/
 # cp -Rf /home /home_backup

 d. modify /etc/fstab
 # vi /etc/fstab
 /dev/mapper/rua-pasi    /home           xfs     defaults 0 0

 e. reboot and check
 # reboot
 # lvscan
 [root@cugar simmon]# df
 /dev/mapper/rua-pasi     10471424   147900  10323524   2% /home

I took my case as an example, and the lvm configuration was created using / dev / mapper / rua-pasi. If it works normally, it will delete the backup folder.

In addition, you can set it up immediately during the installation process. You can install it by referring to the installation screen.

image description

I prefer to expand the partition after installation. In short, create an lvm disk, copy the / home directory in / dev / sda through rsync, and link the lvm information created in / etc / fdb to / home in the / etc / fstab directory.

 a. create lvm disk for /dev/sdb
 # fdisk /dev/sdb
   => p      ; check
   => n      ; add new disk
   => t      ; change to disk ext4 to lvm
   =>wq    : overwrite and quit

 b. make lvm for /dev/sdb
 # pvcreate /dev/sdb1
 # vgcreate rau /dev/sdb1
 # lvcreate -l 100%FREE -n pasi rua
 # mkfs.xfs /dev/rua/pasi                        ;  or  mkfs.xfs /dev/mapper/rua-pasi

 c. mount lvm
 # mount /dev/rua/pasi /mnt
 # rsync -avz /home/*  /mnt/
 # cp -Rf /home /home_backup

 d. modify /etc/fstab
 # vi /etc/fstab
 /dev/mapper/rua-pasi    /home           xfs     defaults 0 0

 e. reboot and check
 # reboot
 # lvscan
 [root@cugar simmon]# df
 /dev/mapper/rua-pasi     10471424   147900  10323524   2% /home

I took my case as an example, and the lvm configuration was created using / dev / mapper / rua-pasi. If it works normally, it will delete the backup folder.

In addition, you can set it up immediately during the installation process. You can install it by referring to the installation screen.screen.

run in virtualbox - F29 install progress

image description

I prefer to expand the partition after installation. In short, create an lvm disk, copy the / home directory in / dev / sda through rsync, and link the lvm information created in / etc / fdb to / home in the / etc / fstab directory.

 a. create lvm disk for /dev/sdb
 # fdisk /dev/sdb
   => p      ; check
   => n      ; add new disk
   => t      ; change to disk ext4 to lvm
   =>wq    : overwrite and quit

 b. make lvm for /dev/sdb
 # pvcreate /dev/sdb1
 # vgcreate rau /dev/sdb1
 # lvcreate -l 100%FREE -n pasi rua
 # mkfs.xfs /dev/rua/pasi                        ;  or  mkfs.xfs /dev/mapper/rua-pasi

 c. mount lvm
 # mount /dev/rua/pasi /mnt
 # rsync -avz /home/*  /mnt/
 # cp -Rf /home /home_backup

 d. modify /etc/fstab
 # vi /etc/fstab
 /dev/mapper/rua-pasi    /home           xfs     defaults 0 0

 e. reboot and check
 # reboot
 # lvscan
 [root@cugar simmon]# df
 /dev/mapper/rua-pasi     10471424   147900  10323524   2% /home

I took my case as an example, and the lvm configuration was created using / dev / mapper / rua-pasi. If it works normally, it will delete the backup folder.

In addition, you can set it up immediately during the installation process. You can install it by referring to the installation screen.

During the initial installation, the home setup will be properly installed using another storage device (/dev/sdb). run in virtualbox - F29 install progress

image description

I prefer to expand the partition after installation. In short, create an lvm disk, copy the / home directory in / dev / sda through rsync, and link the lvm information created in / etc / fdb to / home in the / etc / fstab directory.

 a. create lvm disk for /dev/sdb
 # fdisk /dev/sdb
   => p      ; check
   => n      ; add new disk
   => t      ; change to disk ext4 to lvm
   =>wq    : overwrite and quit

 b. make lvm for /dev/sdb
 # pvcreate /dev/sdb1
 # vgcreate rau /dev/sdb1
 # lvcreate -l 100%FREE -n pasi rua
 # mkfs.xfs /dev/rua/pasi                        ;  or  mkfs.xfs /dev/mapper/rua-pasi

 c. mount lvm
 # mount /dev/rua/pasi /mnt
 # rsync -avz /home/*  /mnt/
 # cp -Rf /home /home_backup

 d. modify /etc/fstab
 # vi /etc/fstab
 /dev/mapper/rua-pasi    /home           xfs     defaults 0 0

 e. reboot and check
 # reboot
 # lvscan
 [root@cugar simmon]# df
 /dev/mapper/rua-pasi     10471424   147900  10323524   2% /home

I took my case as an example, and the lvm configuration was created using / dev / mapper / rua-pasi. /dev/mapper/rua-pasi. If it works normally, it will delete the backup folder.

In addition, you can set it up immediately during the installation process. You can install it by referring to the installation screen.

During the initial installation, the home setup will be properly installed using another storage device (/dev/sdb). run in virtualbox - F29 install progress

image description

I prefer to expand the partition after installation. In short, create an lvm disk, copy the / home directory in / dev / sda /dev/sda through rsync, and link the lvm information created in / etc / fdb to / home /etc/fstab to /home in the / etc / fstab /etc/fstab directory.

 a. create lvm disk for /dev/sdb
 # fdisk /dev/sdb
   => p      ; check
   => n      ; add new disk
   => t      ; change to disk ext4 to lvm
   =>wq    : overwrite and quit

 b. make lvm for /dev/sdb
 # pvcreate /dev/sdb1
 # vgcreate rau /dev/sdb1
 # lvcreate -l 100%FREE -n pasi rua
 # mkfs.xfs /dev/rua/pasi                        ;  or  mkfs.xfs /dev/mapper/rua-pasi

 c. mount lvm
 # mount /dev/rua/pasi /mnt
 # rsync -avz /home/*  /mnt/
 # cp -Rf /home /home_backup

 d. modify /etc/fstab
 # vi /etc/fstab
 /dev/mapper/rua-pasi    /home           xfs     defaults 0 0

 e. reboot and check
 # reboot
 # lvscan
 [root@cugar simmon]# df
 /dev/mapper/rua-pasi     10471424   147900  10323524   2% /home

I took my case as an example, and the lvm configuration was created using /dev/mapper/rua-pasi. If it works normally, it will delete the backup folder.