This is my existing disk partition.
[root@xyz development: /root] lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
repolv repovg -wi-ao---- 1.95t
LogVol00 rootvg -wi-ao---- 6.00g
LogVol01 rootvg -wi-ao---- 10.00g
LogVol02 rootvg -wi-ao---- 10.00g
LogVol03 rootvg -wi-ao---- 15.00g
LogVol04 rootvg -wi-ao---- 8.00g
[root@xyz development: /root] lsblk -p
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
/dev/sda 8:0 0 100G 0 disk
├─/dev/sda1 8:1 0 500M 0 part /boot
└─/dev/sda2 8:2 0 92.7G 0 part
├─/dev/mapper/rootvg-LogVol00 253:0 0 6G 0 lvm /
├─/dev/mapper/rootvg-LogVol04 253:1 0 8G 0 lvm [SWAP]
├─/dev/mapper/rootvg-LogVol03 253:3 0 15G 0 lvm /var
├─/dev/mapper/rootvg-LogVol02 253:4 0 10G 0 lvm /tmp
└─/dev/mapper/rootvg-LogVol01 253:5 0 10G 0 lvm /opt
/dev/sdb 8:16 0 50G 0 disk
/dev/sdc 8:32 0 1.5T 0 disk
/dev/sdd 8:48 0 1.5T 0 disk
└─/dev/mapper/repovg-repolv 253:2 0 2T 0 lvm /var/www/html
/dev/sde 8:64 0 1.5T 0 disk
└─/dev/mapper/repovg-repolv 253:2 0 2T 0 lvm /var/www/html
/dev/sdf 8:80 0 1.5T 0 disk
└─/dev/mapper/repovg-repolv 253:2 0 2T 0 lvm /var/www/html
/dev/sdg 8:96 0 1.5T 0 disk
/dev/sdh 8:112 0 1.5T 0 disk
/dev/sr0 11:0 1 1024M 0 rom
[root@ development: /root] pvs | grep repovg
PV VG Fmt Attr PSize PFree
/dev/sdc repovg lvm2 a-- 1.46t 1.46t
/dev/sdd repovg lvm2 a-- 1.46t 500.00g
/dev/sde repovg lvm2 a-- 1.46t 1000.00g
/dev/sdf repovg lvm2 a-- 1.46t 1000.00g
/dev/sdg repovg lvm2 a-- 1.46t 1.46t
/dev/sdh repovg lvm2 a-- 1.46t 1.46t
- First of all I can't figure out how 2.0T came in below. If we see lsblk output /var/www/html spread across /dev/sdd, /dev/sde and /dev/sdf. Then as per math it should be 6.0T.
[root@xyz development: /root] df -h /var/www/html/ FileSystem Size Usage Free Usage% Mount Point /dev/mapper/repovg-repolv 2.0T 1.7T 263G 87% /var/www/html
- Secondly, Since new disk has been added I wanted to move /var/www/html data to other disks and to restructure/move mount point as below. Could you please guide all the sequence of commands.
FileSystem /dev/sdc : repovg-rhel6lv -> Mount to /var/www/html/RHEL6 /dev/sdd : repovg-rhel7lv -> Mount to /var/www/html/RHEL7 /dev/sde : repovg-rhel7awslv -> Mount to /var/www/html/RHEL7AWS /dev/sdf : repovg-rhel8lv -> Mount to /var/www/html/RHEL8 /dev/sdg : repovg-amzn24lv -> Mount to /var/www/html/AMZN24 /dev/sdh : repovg-amzn24lv -> Mount to /var/www/html/AMZN24
pvmove
?/var/www/html
is spread accross /dev/sdd (1Tb) and /dev/sde /dev/sdf (both 500 Gb)