vg and lv not found in Centos 7
by james000 from LinuxQuestions.org on (#6DGHC)
I have Centos 7.3. It was shutdown and moved to another location, connected all cables including SAN disk. Now it is behaving strange. I can't see anything in vgs, lvs and /home is not able to find, neither I can mount it
Code:[root@broken-server ~]# pvscan
No matching physical volumes found
[root@broken-server ~]# vgscan
Reading volume groups from cache.
[root@broken-server ~]# lvscan
[root@broken-server ~]#
[root@broken-server ~]# vgs
[root@broken-server ~]# pvs
[root@broken-server ~]# lvs
[root@broken-server ~]#
[root@broken-server ~]# lvmdiskscan -v
Wiping cache of LVM-capable devices
/dev/centos/root [ 50.00 GiB]
/dev/sda1 [ 976.00 MiB]
/dev/centos/swap [ 16.00 GiB]
/dev/sdb2 [ 1023.07 GiB] LVM physical volume
2 disks
1 partition
0 LVM physical volume whole disks
1 LVM physical volume
[root@broken-server ~]# cat /etc/fstab | grep -v "#"
/dev/centos/root / xfs defaults,_netdev 0 0
UUID=0dd9a419-6752-473e-b49b-2138f6519827 /boot ext3 defaults 0 0
/dev/centos/home /home xfs defaults,_netdev 0 0
/dev/centos/swap swap swap defaults,_netdev 0 0
[root@broken-server ~]#
[root@broken-server ~]# mount /home
mount: special device /dev/centos/home does not exist
[root@broken-server ~]# ls -ltr /dev/centos/
total 0
lrwxrwxrwx. 1 root root 7 Aug 2 07:27 root -> ../dm-0
lrwxrwxrwx. 1 root root 7 Aug 2 07:27 swap -> ../dm-1
[root@broken-server ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 14.9G 0 disk
sda1 8:1 0 976M 0 part /boot
sdb 8:16 0 1T 0 disk
sdb2 8:18 0 1023.1G 0 part
centos-root 253:0 0 50G 0 lvm /
centos-swap 253:1 0 16G 0 lvm [SWAP]
[root@broken-server ~]#If I compare it with another working good server, then it shows everything here
Quote:
I am trying for whole day and can't fix it. Please advice.
Thanks
Code:[root@broken-server ~]# pvscan
No matching physical volumes found
[root@broken-server ~]# vgscan
Reading volume groups from cache.
[root@broken-server ~]# lvscan
[root@broken-server ~]#
[root@broken-server ~]# vgs
[root@broken-server ~]# pvs
[root@broken-server ~]# lvs
[root@broken-server ~]#
[root@broken-server ~]# lvmdiskscan -v
Wiping cache of LVM-capable devices
/dev/centos/root [ 50.00 GiB]
/dev/sda1 [ 976.00 MiB]
/dev/centos/swap [ 16.00 GiB]
/dev/sdb2 [ 1023.07 GiB] LVM physical volume
2 disks
1 partition
0 LVM physical volume whole disks
1 LVM physical volume
[root@broken-server ~]# cat /etc/fstab | grep -v "#"
/dev/centos/root / xfs defaults,_netdev 0 0
UUID=0dd9a419-6752-473e-b49b-2138f6519827 /boot ext3 defaults 0 0
/dev/centos/home /home xfs defaults,_netdev 0 0
/dev/centos/swap swap swap defaults,_netdev 0 0
[root@broken-server ~]#
[root@broken-server ~]# mount /home
mount: special device /dev/centos/home does not exist
[root@broken-server ~]# ls -ltr /dev/centos/
total 0
lrwxrwxrwx. 1 root root 7 Aug 2 07:27 root -> ../dm-0
lrwxrwxrwx. 1 root root 7 Aug 2 07:27 swap -> ../dm-1
[root@broken-server ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 14.9G 0 disk
sda1 8:1 0 976M 0 part /boot
sdb 8:16 0 1T 0 disk
sdb2 8:18 0 1023.1G 0 part
centos-root 253:0 0 50G 0 lvm /
centos-swap 253:1 0 16G 0 lvm [SWAP]
[root@broken-server ~]#If I compare it with another working good server, then it shows everything here
Quote:
[root@good-server ~]# vgs VG #PV #LV #SN Attr VSize VFree centos 1 3 0 wz--n- 1023.07g 0 [root@good-server ~]# lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert home centos -wi-ao---- 957.07g root centos -wi-ao---- 50.00g swap centos -wi-ao---- 16.00g [root@good-server ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 14.9G 0 disk sda1 8:1 0 976M 0 part /boot sdb 8:16 0 1T 0 disk sdb1 8:17 0 953M 0 part sdb2 8:18 0 1023.1G 0 part centos-root 253:0 0 50G 0 lvm / centos-swap 253:1 0 16G 0 lvm [SWAP] centos-home 253:2 0 957.1G 0 lvm /home [root@good-server ~]# |
Thanks