How to determine what files live on a physical volume from CLI

1k Views Asked by At

TL/DR; From the command line, how can I find out what files are on a given physical volume?

Context: I just added a new, larger harddrive to a logical volume and did a pvmove to migrate all the data from the older, smaller drive to the new one. I ran a smartclt -t long on the new drive first and it finished with zero errors. I'm still paranoid about the data being corrupted.

I'm in the middle of running MD5SUM against all the files in the updated logical volume to compare against the backup but I'd prefer to only do this for the files that reside on the newly added physical volume.

If not from the command line, is there a library I should explore? Got's no problem hacking stuff up in C if need be.

0

There are 0 best solutions below