System Management

The volume group vg_data has two logical volumes, lv_db and lv_logs, and both have extents on /dev/sdb1. An administrator must move only the extents belonging to lv_db onto /dev/sdc1, which has enough free extents, and leave lv_logs where it is. Which command does this?

Show the answer

Correct answerA. pvmove -n lv_db /dev/sdb1 /dev/sdc1

The -n option limits pvmove to the extents of the named logical volume, and the source PV comes before the destination PV. Omitting -n moves every allocated extent on /dev/sdb1, including those of lv_logs. Reversing the PVs would move data the wrong way.