Used spaceI have LVM built like this
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sr0 11:0 1 1024M 0 rom
vda 252:0 0 10G 0 disk
└─vda1 252:1 0 10G 0 part /
vdb 252:16 0 10G 0 disk
└─pro103-home--files (dm-2) 253:2 0 10G 0 lvm /home/pro103by
vdc 252:32 0 50G 0 disk
└─pro103by--sql-mysql (dm-1) 253:1 0 90G 0 lvm /data
vdd 252:48 0 30G 0 disk
└─dbbackup-data (dm-0) 253:0 0 30G 0 lvm /dbbackup
vde 252:64 0 30G 0 disk
└─pro103by--sql-mysql (dm-1) 253:1 0 90G 0 lvm /data
vdf 252:80 0 10G 0 disk
└─pro103by--sql-mysql (dm-1) 253:1 0 90G 0 lvm /data
vdg 252:96 0 150G 0 disk
└─vdg1 252:97 0 150G 0 part
Drives included in pro103by-sql volume group
lvs -o +devices /dev/pro103by-sql/mysql
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices
mysql pro103by-sql -wi-ao---- 89.99g /dev/vdc(0)
mysql pro103by-sql -wi-ao---- 89.99g /dev/vde(0)
mysql pro103by-sql -wi-ao---- 89.99g /dev/vdf(0)
Used space
pvs -o+pv_used
PV VG Fmt Attr PSize PFree Used
/dev/vdb pro103 lvm2 a--u 10.00g 4.00m 9.99g
/dev/vdc pro103by-sql lvm2 a--u 50.00g 0 50.00g
/dev/vdd dbbackup lvm2 a--u 30.00g 0 30.00g
/dev/vde pro103by-sql lvm2 a--u 30.00g 0 30.00g
/dev/vdf pro103by-sql lvm2 a--u 10.00g 0 10.00g
/dev/vdg1 pro103by-sql lvm2 a--u 150.00g 150.00g 0
I need to move data from all threee drives - /dev/vdc /dev/vde /dev/vdf to one much bigger I know how to move data from one drive to another wit pvmove but not sure if this would work in this case.
cphas several options to assist in doing that--take a look at it's man page withman cp. (Or usemvinstead ofcp.)pvmove. It looks like OP just wants confirmation. The answer is always the same: do backups.