* [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
* Re: [linux-lvm] Can't remove the snap LV of root volume on multipath disk PV
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
0 siblings, 1 reply; 3+ messages in thread
From: Zdenek Kabelac @ 2019-07-01 10:22 UTC (permalink / raw)
To: LVM general discussion and development, Gang He
Dne 01. 07. 19 v 8:31 Gang He napsal(a):
> 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).
>
Hi
Please open new BZ case and provide full -vvvv traces of failing command
and also possibly attache 'dmsetup table' 'dmsetup ls --tree' and
'dmsetup info -c' 'dmsetup status'
Regards
Zdenek
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] Can't remove the snap LV of root volume on multipath disk PV
2019-07-01 10:22 ` Zdenek Kabelac
@ 2019-07-03 6:33 ` Gang He
0 siblings, 0 replies; 3+ messages in thread
From: Gang He @ 2019-07-03 6:33 UTC (permalink / raw)
To: Zdenek Kabelac, LVM general discussion and development
Hi Zdenek,
Thank for your reply, the bug is opened at https://bugzilla.redhat.com/show_bug.cgi?id=1726524
I feel maybe RHEL lvm2 also has the similar problem.
The problem looks to related with multipath disk PV.
Thanks
Gang
-----Original Message-----
From: Zdenek Kabelac [mailto:zkabelac@redhat.com]
Sent: 2019��7��1�� 18:23
To: LVM general discussion and development <linux-lvm@redhat.com>; Gang He <GHe@suse.com>
Subject: Re: Can't remove the snap LV of root volume on multipath disk PV
Dne 01. 07. 19 v 8:31 Gang He napsal(a):
> 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).
>
Hi
Please open new BZ case and provide full -vvvv traces of failing command and also possibly attache 'dmsetup table' 'dmsetup ls --tree' and 'dmsetup info -c' 'dmsetup status'
Regards
Zdenek
^ 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).