I have a system using LVM2 with a single PV which contains 1 VG which in-turn contains 5 logical volumes (/
, /home
, /var
, /swap
, /data
).
When I create a snapshot of LV /
(lvcreate -L 15G -s -n root_snap_test01 /dev/vg01/lv_root
), upon reboot the device id (using something like stat /home
) will show that it's device id has been incremented for each snapshot of /
that is created. Further, if /
is restored (lvconvert --merge ...
) from a snapshot, /home
's device id will become /
's original device id.
Is there a way to specify the Block Device (and assuming resulting device id that is output as part of the stat command) for a given set of Logical Volumes?
Is this something that could be applied statically given a LV Name?