FDISK Mistake how revert ? production system

Latest response

Hello there,

Customer has existing VG/LV with local disk, the operation was simply to extend LV with new disks....BUT...in the hurry...we launch a fdisk create new partition on an existing device... we quickly delete this partition to revert but the system seams to be in unknow state

to RESUME : Access to the data is OK, but we are scare about rebooting...how solving the misconfiguration in LVM ?

lsblk show this :

sda 8:0 0 54.6T 0 disk
├─vgmsdp-lvmsdpcat 253:3 0 1T 0 lvm /msdp/cat
├─vgmsdp-lvmsdpvol0 253:4 0 34T 0 lvm /msdp/vol0
└─vgmsdp-lvmsdpvol2 253:6 0 34T 0 lvm /msdp/vol2
sdb 8:16 0 54.6T 0 disk
sdd 8:48 0 279.4G 0 disk
├─sdd1 8:49 0 500M 0 part /boot/efi
├─sdd2 8:50 0 500M 0 part /boot
├─sdd3 8:51 0 64G 0 part
│ └─rhel-swap 253:1 0 64G 0 lvm [SWAP]
└─sdd4 8:52 0 214.4G 0 part
├─vgsys-root 253:0 0 194.4G 0 lvm /
└─vgsys-tmp 253:2 0 20G 0 lvm /tmp
sde 8:64 0 54.6T 0 disk
├─vgmsdp-lvmsdpvol1 253:5 0 34T 0 lvm /msdp/vol1
└─vgmsdp-lvmsdpvol2 253:6 0 34T 0 lvm /msdp/vol2

PVSCAN show an error

WARNING: Device for PV UuAZX4-QbY8-DoYa-7d1W-U9HC-fypW-SY0hVo not found or rejected by a filter.
WARNING: Couldn't find all devices for LV vgmsdp/lvmsdpvol1 while checking used and assumed devices.
WARNING: Couldn't find all devices for LV vgmsdp/lvmsdpvol2 while checking used and assumed devices.
PV /dev/sda VG vgmsdp lvm2 [54.58 TiB / 6.16 TiB free]
PV [unknown] VG vgmsdp lvm2 [54.58 TiB / 0 free]
PV /dev/sdd4 VG vgsys lvm2 [214.38 GiB / 0 free]
PV /dev/sdd3 VG rhel lvm2 [64.00 GiB / 0 free]
Total: 4 [109.43 TiB] / in use: 4 [109.43 TiB] / in no VG: 0 [0 ]

VGDISPLAY show this error

vgdisplay
WARNING: Device for PV UuAZX4-QbY8-DoYa-7d1W-U9HC-fypW-SY0hVo not found or rejected by a filter.
WARNING: Couldn't find all devices for LV vgmsdp/lvmsdpvol1 while checking used and assumed devices.
WARNING: Couldn't find all devices for LV vgmsdp/lvmsdpvol2 while checking used and assumed devices.
--- Volume group ---
VG Name vgmsdp
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 4
Open LV 4
Max PV 0
Cur PV 2
Act PV 1
VG Size 109.16 TiB
PE Size 4.00 MiB
Total PE 28615668
Alloc PE / Size 27000832 / 103.00 TiB
Free PE / Size 1614836 / 6.16 TiB
VG UUID nTmp9L-PoMJ-0v2v-hRvi-1oK0-L0PX-2x2MUn

--- Volume group ---
VG Name vgsys
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 214.38 GiB
PE Size 4.00 MiB
Total PE 54882
Alloc PE / Size 54882 / 214.38 GiB
Free PE / Size 0 / 0
VG UUID 4ejvfI-lh2F-krzO-AcWL-QfWA-TnNA-240YgD

--- Volume group ---
VG Name rhel
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size 64.00 GiB
PE Size 4.00 MiB
Total PE 16384
Alloc PE / Size 16384 / 64.00 GiB
Free PE / Size 0 / 0
VG UUID USPX3p-lUh7-4E1b-cMaj-InUD-pHlA-A1N9T7

and LVDISPLAY too

vdisplayt[K
WARNING: Device for PV UuAZX4-QbY8-DoYa-7d1W-U9HC-fypW-SY0hVo not found or rejected by a filter.
WARNING: Couldn't find all devices for LV vgmsdp/lvmsdpvol1 while checking used and assumed devices.
WARNING: Couldn't find all devices for LV vgmsdp/lvmsdpvol2 while checking used and assumed devices.
--- Logical volume ---
LV Path /dev/vgmsdp/lvmsdpcat
LV Name lvmsdpcat
VG Name vgmsdp
LV UUID SadBII-viG1-GiQr-4wHk-fqk9-93kl-Hi8h4q
LV Write Access read/write
LV Creation host, time msdp98, 2018-10-05 14:12:10 +0200
LV Status available
# open 1
LV Size 1.00 TiB
Current LE 262144
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:3

--- Logical volume ---
LV Path /dev/vgmsdp/lvmsdpvol0
LV Name lvmsdpvol0
VG Name vgmsdp
LV UUID Pm6eGF-JQZX-PwDR-wOd5-cDPW-WvmV-Rcgeb8
LV Write Access read/write
LV Creation host, time msdp98, 2018-10-05 14:13:41 +0200
LV Status available
# open 1
LV Size 34.00 TiB
Current LE 8912896
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:4

--- Logical volume ---
LV Path /dev/vgmsdp/lvmsdpvol1
LV Name lvmsdpvol1
VG Name vgmsdp
LV UUID iA040X-ociv-IAHn-vL1P-FqYJ-nutE-jqb0no
LV Write Access read/write
LV Creation host, time msdp98, 2018-10-05 14:22:08 +0200
LV Status available
# open 1
LV Size 34.00 TiB
Current LE 8912896
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:5

--- Logical volume ---
LV Path /dev/vgmsdp/lvmsdpvol2
LV Name lvmsdpvol2
VG Name vgmsdp
LV UUID 3mvIU0-5qHZ-iwQj-xqc8-dfwT-1qGh-wvxG65
LV Write Access read/write
LV Creation host, time msdp98, 2018-10-05 14:22:17 +0200
LV Status available
# open 1
LV Size 34.00 TiB
Current LE 8912896
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:6

--- Logical volume ---
LV Path /dev/vgsys/tmp
LV Name tmp
VG Name vgsys
LV UUID L3V3td-vb1p-pOql-e1zY-B1cJ-CFoO-KOCEur
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2018-10-03 17:20:07 +0200
LV Status available
# open 1
LV Size 20.00 GiB
Current LE 5120
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:2

--- Logical volume ---
LV Path /dev/vgsys/root
LV Name root
VG Name vgsys
LV UUID dTwJXa-S1sT-fY26-aLoM-hVK4-aWv2-1sMyGL
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2018-10-03 17:20:07 +0200
LV Status available
# open 1
LV Size 194.38 GiB
Current LE 49762
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:0

--- Logical volume ---
LV Path /dev/rhel/swap
LV Name swap
VG Name rhel
LV UUID HCfiGE-3UPL-4Vjc-2Zq0-9oxH-e6Nm-Dtf7yw
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2018-10-03 17:20:05 +0200
LV Status available
# open 2
LV Size 64.00 GiB
Current LE 16384
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:1

]0;root@msdp98:/msdp[root@msdp98 msdp]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vgsys-root 195G 33G 162G 17% /
devtmpfs 95G 0 95G 0% /dev
tmpfs 95G 164K 95G 1% /dev/shm
tmpfs 95G 9.7M 95G 1% /run
tmpfs 95G 0 95G 0% /sys/fs/cgroup
/dev/sdd2 492M 158M 334M 33% /boot
/dev/sdd1 500M 9.5M 491M 2% /boot/efi
/dev/mapper/vgmsdp-lvmsdpvol1 34T 21T 14T 60% /msdp/vol1
/dev/mapper/vgsys-tmp 20G 33M 20G 1% /tmp
/dev/mapper/vgmsdp-lvmsdpvol2 34T 26T 8.4T 76% /msdp/vol2
/dev/mapper/vgmsdp-lvmsdpcat 1.0T 2.6G 1021G 1% /msdp/cat
/dev/mapper/vgmsdp-lvmsdpvol0 34T 25T 9.6T 72% /msdp/vol0
tmpfs 19G 12K 19G 1% /run/user/0
]0;root@msdp98:/msdp[root@msdp98 msdp]#

to RESUME : Access to the data is OK, but we are scare about rebooting...how solving the misconfiguration in LVM ?

Responses