public:trouble:dm
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
public:trouble:dm [2015/06/06 19:18] – created wiki.manager | public:trouble:dm [2017/11/12 03:08] (current) – [Solution] Updated link wiki.tk | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Remaining DM devices ===== | ||
+ | ==== Error description ==== | ||
+ | LVM devices are often generated and removed by automatic processes. Examples are the creation of vhosts or the generation of snapshots while performing backups. During these processes LVM devices are sometimes removed while belonging DM devices still remain. The error becomes visible when LVM partitions cannot be created. This happens because DM devices of the same name still exist. | ||
+ | root@kvm55: | ||
+ | LV VG | ||
+ | images | ||
+ | lv_dbslave5501 | ||
+ | lv_dbserver5501 vg3_dbserver -wi-ao | ||
+ | lv_nas5501 | ||
+ | | ||
+ | root@kvm55: | ||
+ | vg-images | ||
+ | vg-lv_dbslave5501 | ||
+ | 350002ac21d632071 | ||
+ | vg3_dbserver-lv_dbserver5501 (252:3) | ||
+ | 350002ac21d622071 | ||
+ | vg3_nas-lv_nas5501 | ||
+ | vg3_nas-lv_nas5501_snapshot | ||
+ | In the depicted example above the command '' | ||
+ | root@kvm55: | ||
+ | / | ||
+ | Locical volume “lv_nas5501_snapshot“ already exists in volume group “ vg3_nas“ | ||
+ | ==== Failure cause ==== | ||
+ | The failure cause is completely unknown. Because automatic processes often lead to the error, it is hard to observe the error cause. | ||
+ | ==== Solution ==== | ||
+ | It is possible to remove the DM device directly. Before removal check, whether the DM device still has open connections: | ||
+ | root@kvm55: | ||
+ | Name: vg3_nas-lv_nas5501_snapshot | ||
+ | State: | ||
+ | Read Ahead: | ||
+ | Tables present: | ||
+ | Open count: | ||
+ | Event number: | ||
+ | Major, minor: | ||
+ | Number of targets: 1 | ||
+ | UUID: LVM-keMgdvei4HyiAJrdMgW8EEa8Q8vTze6cVsvVBap2GKZ5oqeO6KBNOUEZTBw8 | ||
+ | In the example above the device has no open connections (Open count: 0) and can be removed: | ||
+ | root@kvm55: | ||
+ | [[public: |