linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Can't remove the snap LV of root volume on multipath disk PV
@ 2019-07-01  6:31 Gang He
  2019-07-01 10:22 ` Zdenek Kabelac
  0 siblings, 1 reply; 3+ messages in thread
From: Gang He @ 2019-07-01  6:31 UTC (permalink / raw)
  To: linux-lvm

Hello List,

I am using lvm2-2.02.180 on SLES12SP4, I cannot remove the snap LV of root volume, which is based on multipath disk PV.
e.g. 
linux-kkay:/ # lvremove /dev/system/snap_root
  WARNING: Reading VG system from disk because lvmetad metadata is invalid.
Do you really want to remove active logical volume system/snap_root? [y/n]: y
  device-mapper: reload ioctl on  (254:3) failed: Invalid argument
  Failed to refresh root without snapshot.

But, I can remove the snap LV of data volume successfully, e.g.
linux-kkay:/ # lvremove /dev/system/data_snap
  WARNING: Reading VG system from disk because lvmetad metadata is invalid.
Do you really want to remove active logical volume system/data_snap? [y/n]: y
  Logical volume "data_snap" successfully removed

If I use the ordinary disk as PV (rather than multipath disk), I cannot encounter this problem (both snap LVs can be removed).

The disk layout is as below,
linux-kkay:/ # lsblk
NAME                       MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT
sda                          8:0    0   30G  0 disk
��sda1                       8:1    0   30G  0 part
��mpd_root                 254:0    0   30G  0 mpath
  ��mpd_root-part1         254:1    0   30G  0 part
    ��system-root-real     254:2    0   10G  0 lvm
    � ��system-root        254:3    0   10G  0 lvm   /
    � ��system-snap_root   254:5    0   10G  0 lvm
    ��system-snap_root-cow 254:4    0    5G  0 lvm
    � ��system-snap_root   254:5    0   10G  0 lvm
    ��system-swap          254:6    0    2G  0 lvm   [SWAP]
    ��system-data-real     254:8    0    4G  0 lvm
    � ��system-data        254:7    0    4G  0 lvm   /data
    � ��system-data_snap   254:10   0    4G  0 lvm
    ��system-data_snap-cow 254:9    0  840M  0 lvm
      ��system-data_snap   254:10   0    4G  0 lvm
sdb                          8:16   0   30G  0 disk
��sdb1                       8:17   0   30G  0 part
��mpd_root                 254:0    0   30G  0 mpath
  ��mpd_root-part1         254:1    0   30G  0 part
    ��system-root-real     254:2    0   10G  0 lvm
    � ��system-root        254:3    0   10G  0 lvm   /
    � ��system-snap_root   254:5    0   10G  0 lvm
    ��system-snap_root-cow 254:4    0    5G  0 lvm
    � ��system-snap_root   254:5    0   10G  0 lvm
    ��system-swap          254:6    0    2G  0 lvm   [SWAP]
    ��system-data-real     254:8    0    4G  0 lvm
    � ��system-data        254:7    0    4G  0 lvm   /data
    � ��system-data_snap   254:10   0    4G  0 lvm
    ��system-data_snap-cow 254:9    0  840M  0 lvm
      ��system-data_snap   254:10   0    4G  0 lvm

Thanks
Gang

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-03  6:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-01  6:31 [linux-lvm] Can't remove the snap LV of root volume on multipath disk PV Gang He
2019-07-01 10:22 ` Zdenek Kabelac
2019-07-03  6:33   ` Gang He

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).