Physical volume not getting listed in `pvs` command even after creating it with `pvcreate` command and seeing in lvm metadata file in `/etc/lvm/backup/<vgname>`
Issue
- Physical volume is not getting listed in the output of
pvscommand even after creating it withpvcreatecommand. It is also seen in the lvm metadata file in/etc/lvm/backup/backup_vg
backup_vg {
id = "AFspCj-O7ZI-5MLF-nJTi-1VKu-yWlr-DJpntC"
seqno = 1
status = ["RESIZEABLE", "READ", "WRITE"]
flags = []
extent_size = 8192 # 4 Megabytes
max_lv = 0
max_pv = 0
metadata_copies = 0
physical_volumes {
pv0 {
id = "TfRcQU-yiYh-ydTQ-YoA6-qvwA-w0cg-szviJ1"
device = "/dev/mapper/mpathep1" # Hint only
status = ["ALLOCATABLE"]
flags = []
dev_size = 6291472384 # 2.9297 Terabytes
pe_start = 2048
pe_count = 768001 # 2.92969 Terabytes
}
}
Output of lvm commands is
# cat sos_commands/devicemapper/pvs_-a_-v |grep backup_vg
# cat sos_commands/devicemapper/vgs_-v |grep backup_vg
We could see the mpathep1 partition in the output of ls -lR /dev/ command
lrwxrwxrwx 1 root root 11 Jun 23 11:26 dm-name-mpathe -> ../../dm-14
lrwxrwxrwx 1 root root 11 Jun 23 12:51 dm-name-mpathep1 -> ../../dm-15
There is no UUID seen for the dmsetup device
mpathdp1 253 13 L--w 1 1 0 part1-mpath-367760160a4f7220030d01b381234e311
mpathep1 253 15 L--w 0 1 0 <<<<<
mpatha 253 0 L--w 2 1 8 mpath-367760160a4f72200961c2a8f1234e211
Also, partitions are seen missing for the underlying devices of mpathe.
Environment
- Red Hat Enterprise Linux 6
- LVM
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
