Broken upgrade

Since there is no such thing as a missing storage.cfg, check the path from the following results and execute it.

Code:
cd /
find `pwd` -maxdepth 10 | grep storage.cfg
 
I am not sure if you are in a position to run vgcfgrestore.
If we can get the duplicated disk and data back, we may consider running it.

I can't say more than this because any further steps might result in data loss.

Overwrites /etc/lvm/backup/NVME so cannot be responsible
 
Last edited:
  • Like
Reactions: Mehrdad.x
I am not sure if you are in a position to run vgcfgrestore.
If we can get the duplicated disk and data back, we may consider running it.

I can't say more than this because any further steps might result in data loss.

Overwrites /etc/lvm/backup/NVME so cannot be responsible

do you think linux livecd could be useful ?
 
LVM is there, but some information is corrupted.



I think it is the same if you check with LiveCD.

However, I would rather do it and check than not.

If you know more about it, I think you can find a way to recover from it.

If you don't mind losing your data, I can give you the procedure, but I don't want to guide you through it because it would be a sad result of just losing it.
 
  • Like
Reactions: Mehrdad.x
LVM is there, but some information is corrupted.



I think it is the same if you check with LiveCD.

However, I would rather do it and check than not.

If you know more about it, I think you can find a way to recover from it.

If you don't mind losing your data, I can give you the procedure, but I don't want to guide you through it because it would be a sad result of just losing it.
what is this :

1754753229255.png
 
I think pv is visible and I don't think it has anything to do with being invisible in pvscan, but I don't know what the intent is.

It would only affect the vg.
 
  • Like
Reactions: Mehrdad.x
If it comes up as skip, it could be because of that display.

Code:
pvscan --devices /dev/nvme0n1p3 -vvv
 
  • Like
Reactions: Mehrdad.x
If it comes up as skip, it could be because of that display.

Code:
pvscan --devices /dev/nvme0n1p3 -vvv
too long result

Code:
Version: 2.03.31(2) (2025-02-27)
  Parsing: pvscan --devices /dev/nvme0n1p3 -vvv
  Recognised command pvscan_display (id 134 / enum 114).
  global/use_lvmpolld not found in config: defaulting to 1
  Regex filter initialised.
  LVM type filter initialised.
  deviceid filter initialised.
  devices/sysfs_scan not found in config: defaulting to 1
  Sysfs filter initialised.
  devices/scan_lvs not found in config: defaulting to 0
  Usable device filter initialised (scan_lvs 0).
  devices/multipath_component_detection not found in config: defaulting to 1
  mpath filter initialised.
  Partitioned filter initialised.
  signature filter initialised.
  devices/md_component_detection not found in config: defaulting to 1
  MD filter initialised.
  devices/fw_raid_component_detection not found in config: defaulting to 0
  Composite filter initialised.
  devices/ignore_suspended_devices not found in config: defaulting to 0
  devices/ignore_lvm_mirrors not found in config: defaulting to 1
  Persistent filter initialised.
  devices/scan_lvs not found in config: defaulting to 0
  devices/allow_mixed_block_sizes not found in config: defaulting to 0
  devices/hints not found in config: defaulting to "all"
  activation/activation_mode not found in config: defaulting to "degraded"
  metadata/record_lvs_history not found in config: defaulting to 0
  devices/search_for_devnames not found in config: defaulting to "all"
  activation/reserved_stack not found in config: defaulting to 64
  activation/reserved_memory not found in config: defaulting to 8192
  activation/process_priority not found in config: defaulting to -18
  DEGRADED MODE. Incomplete RAID LVs will be processed.
  activation/monitoring not found in config: defaulting to 1
  Processing command: pvscan --devices /dev/nvme0n1p3 -vvv
  Command pid: 8628
  System ID:
  O_DIRECT will be used
  global/locking_type not found in config: defaulting to 1
  global/wait_for_locks not found in config: defaulting to 1
  File locking settings: readonly:0 sysinit:0 ignorelockingfailure:0 global/metadata_read_only:0 global/wait_for_locks:1.
  global/prioritise_write_locks not found in config: defaulting to 1
  global/locking_dir not found in config: defaulting to "/run/lock/lvm"
  devices/md_component_detection not found in config: defaulting to 1
  devices/md_component_checks not found in config: defaulting to "auto"
  Using md_component_checks auto use_full_md_check 0
  devices/multipath_wwids_file not found in config: defaulting to "/etc/multipath/wwids"
  multipath wwids file not found
  global/use_lvmlockd not found in config: defaulting to 0
  report/output_format not found in config: defaulting to "basic"
  log/report_command_log not found in config: defaulting to 0
  Processing each PV
  Locking /run/lock/lvm/P_global RB
  _do_flock /run/lock/lvm/P_global:aux WB
  _undo_flock /run/lock/lvm/P_global:aux
  _do_flock /run/lock/lvm/P_global RB
  lvmcache label scan begin
  Finding devices to scan
  dm version   [ opencount flush ]   [2048] (*1)
  Getting driver version
  dm version   [ opencount flush ]   [2048] (*1)
  dm names UUID     [ noopencount noflush ]   [16384] (*1)
  Creating DM cache for devno and uuid.
  Creating list of system devices.
  Found dev 252:0 /dev/block/252:0 - new.
  Found dev 252:1 /dev/block/252:1 - new.
  Found dev 252:2 /dev/block/252:2 - new.
  Found dev 252:3 /dev/block/252:3 - new.
  Found dev 252:4 /dev/block/252:4 - new.
  Found dev 259:0 /dev/block/259:0 - new.
  Found dev 259:1 /dev/block/259:1 - new.
  Found dev 259:2 /dev/block/259:2 - new.
  Found dev 259:3 /dev/block/259:3 - new.
  Found dev 7:0 /dev/block/7:0 - new.
  Found dev 7:1 /dev/block/7:1 - new.
  Found dev 7:2 /dev/block/7:2 - new.
  Found dev 7:3 /dev/block/7:3 - new.
  Found dev 7:4 /dev/block/7:4 - new.
  Found dev 7:5 /dev/block/7:5 - new.
  Found dev 7:6 /dev/block/7:6 - new.
  Found dev 7:7 /dev/block/7:7 - new.
  Found dev 8:0 /dev/block/8:0 - new.
  Found dev 8:1 /dev/block/8:1 - new.
  Found dev 8:2 /dev/block/8:2 - new.
  Found dev 8:3 /dev/block/8:3 - new.
  Skipping "/dev/bsg/" (no block devices).
  Skipping "/dev/bus/" (no block devices).
  Skipping "/dev/char/" (no block devices).
  Found dev 7:0 /dev/disk/by-diskseq/1 - new alias.
  Found dev 259:0 /dev/disk/by-diskseq/10 - new alias.
  Found dev 259:1 /dev/disk/by-diskseq/10-part1 - new alias.
  Found dev 259:2 /dev/disk/by-diskseq/10-part2 - new alias.
  Found dev 259:3 /dev/disk/by-diskseq/10-part3 - new alias.
  Found dev 252:0 /dev/disk/by-diskseq/11 - new alias.
  Found dev 252:1 /dev/disk/by-diskseq/12 - new alias.
  Found dev 7:1 /dev/disk/by-diskseq/2 - new alias.
  Found dev 7:2 /dev/disk/by-diskseq/3 - new alias.
  Found dev 7:3 /dev/disk/by-diskseq/4 - new alias.
  Found dev 7:4 /dev/disk/by-diskseq/5 - new alias.
  Found dev 7:5 /dev/disk/by-diskseq/6 - new alias.
  Found dev 7:6 /dev/disk/by-diskseq/7 - new alias.
  Found dev 7:7 /dev/disk/by-diskseq/8 - new alias.
  Found dev 8:0 /dev/disk/by-diskseq/9 - new alias.
  Found dev 8:1 /dev/disk/by-diskseq/9-part1 - new alias.
  Found dev 8:2 /dev/disk/by-diskseq/9-part2 - new alias.
  Found dev 8:3 /dev/disk/by-diskseq/9-part3 - new alias.
  Found dev 8:0 /dev/disk/by-id/ata-CT120BX500SSD1_2009E3ED54D7 - new alias.
  Found dev 8:1 /dev/disk/by-id/ata-CT120BX500SSD1_2009E3ED54D7-part1 - new alias.
  Found dev 8:2 /dev/disk/by-id/ata-CT120BX500SSD1_2009E3ED54D7-part2 - new alias.
  Found dev 8:3 /dev/disk/by-id/ata-CT120BX500SSD1_2009E3ED54D7-part3 - new alias.
  Found dev 252:1 /dev/disk/by-id/dm-name-pve-root - new alias.
  Found dev 252:0 /dev/disk/by-id/dm-name-pve-swap - new alias.
  Found dev 252:0 /dev/disk/by-id/dm-uuid-LVM-LnisEcKvSt3oTSQUE97IQwPSiOU5CVLqFKXK16nkwkQKKRMnO7pc47Nwngpl8wAV - new alias.
  Found dev 252:1 /dev/disk/by-id/dm-uuid-LVM-LnisEcKvSt3oTSQUE97IQwPSiOU5CVLqP7ytaoIDZiQThOZnydp3FC9UXV2CICRo - new alias.
  Found dev 8:3 /dev/disk/by-id/lvm-pv-uuid-ZgL1W7-A1Rw-f104-dXP1-zEx0-kkQS-Mz1MKr - new alias.
  Found dev 259:0 /dev/disk/by-id/nvme-BC901_NVMe_SK_hynix_256GB__4SC5N486612205L19 - new alias.
  Found dev 259:1 /dev/disk/by-id/nvme-BC901_NVMe_SK_hynix_256GB__4SC5N486612205L19-part1 - new alias.
  Found dev 259:2 /dev/disk/by-id/nvme-BC901_NVMe_SK_hynix_256GB__4SC5N486612205L19-part2 - new alias.
  Found dev 259:3 /dev/disk/by-id/nvme-BC901_NVMe_SK_hynix_256GB__4SC5N486612205L19-part3 - new alias.
  Found dev 259:0 /dev/disk/by-id/nvme-BC901_NVMe_SK_hynix_256GB____4SC5N486612205L19 - new alias.
  Found dev 259:1 /dev/disk/by-id/nvme-BC901_NVMe_SK_hynix_256GB____4SC5N486612205L19-part1 - new alias.
  Found dev 259:2 /dev/disk/by-id/nvme-BC901_NVMe_SK_hynix_256GB____4SC5N486612205L19-part2 - new alias.
  Found dev 259:3 /dev/disk/by-id/nvme-BC901_NVMe_SK_hynix_256GB____4SC5N486612205L19-part3 - new alias.
  Found dev 259:0 /dev/disk/by-id/nvme-BC901_NVMe_SK_hynix_256GB____4SC5N486612205L19_1 - new alias.
  Found dev 259:1 /dev/disk/by-id/nvme-BC901_NVMe_SK_hynix_256GB____4SC5N486612205L19_1-part1 - new alias.
  Found dev 259:2 /dev/disk/by-id/nvme-BC901_NVMe_SK_hynix_256GB____4SC5N486612205L19_1-part2 - new alias.
  Found dev 259:3 /dev/disk/by-id/nvme-BC901_NVMe_SK_hynix_256GB____4SC5N486612205L19_1-part3 - new alias.
  Found dev 259:0 /dev/disk/by-id/nvme-eui.0000000000000000ace42e00357bc21e - new alias.
  Found dev 259:1 /dev/disk/by-id/nvme-eui.0000000000000000ace42e00357bc21e-part1 - new alias.
  Found dev 259:2 /dev/disk/by-id/nvme-eui.0000000000000000ace42e00357bc21e-part2 - new alias.
  Found dev 259:3 /dev/disk/by-id/nvme-eui.0000000000000000ace42e00357bc21e-part3 - new alias.
  Found dev 259:2 /dev/disk/by-partuuid/2ab76e00-a853-4680-98bc-53c069bd24b0 - new alias.
  Found dev 8:1 /dev/disk/by-partuuid/5597961c-af01-4920-aad7-05cbe29c00d4 - new alias.
  Found dev 8:3 /dev/disk/by-partuuid/6c960ec8-4115-4282-b077-47c9db8230cf - new alias.
  Found dev 8:2 /dev/disk/by-partuuid/aeefb4d9-52cb-4f81-8d19-3e09d68ae66e - new alias.
  Found dev 259:1 /dev/disk/by-partuuid/df8483d8-7100-4051-8bd7-cb372d8f9189 - new alias.
  Found dev 259:3 /dev/disk/by-partuuid/ed358fcd-487b-45c1-9053-f017d4d39089 - new alias.
  Found dev 8:0 /dev/disk/by-path/pci-0000:00:17.0-ata-2 - new alias.
  Found dev 8:1 /dev/disk/by-path/pci-0000:00:17.0-ata-2-part1 - new alias.
  Found dev 8:2 /dev/disk/by-path/pci-0000:00:17.0-ata-2-part2 - new alias.
  Found dev 8:3 /dev/disk/by-path/pci-0000:00:17.0-ata-2-part3 - new alias.
  Found dev 8:0 /dev/disk/by-path/pci-0000:00:17.0-ata-2.0 - new alias.
  Found dev 8:1 /dev/disk/by-path/pci-0000:00:17.0-ata-2.0-part/by-partnum/1 - new alias.
  Found dev 8:2 /dev/disk/by-path/pci-0000:00:17.0-ata-2.0-part/by-partnum/2 - new alias.
  Found dev 8:3 /dev/disk/by-path/pci-0000:00:17.0-ata-2.0-part/by-partnum/3 - new alias.
  Found dev 8:1 /dev/disk/by-path/pci-0000:00:17.0-ata-2.0-part/by-partuuid/5597961c-af01-4920-aad7-05cbe29c00d4 - new alias.
  Found dev 8:3 /dev/disk/by-path/pci-0000:00:17.0-ata-2.0-part/by-partuuid/6c960ec8-4115-4282-b077-47c9db8230cf - new alias.
  Found dev 8:2 /dev/disk/by-path/pci-0000:00:17.0-ata-2.0-part/by-partuuid/aeefb4d9-52cb-4f81-8d19-3e09d68ae66e - new alias.
  Found dev 8:2 /dev/disk/by-path/pci-0000:00:17.0-ata-2.0-part/by-uuid/1098-D8B5 - new alias.
  Found dev 8:1 /dev/disk/by-path/pci-0000:00:17.0-ata-2.0-part1 - new alias.
  Found dev 8:2 /dev/disk/by-path/pci-0000:00:17.0-ata-2.0-part2 - new alias.
  Found dev 8:3 /dev/disk/by-path/pci-0000:00:17.0-ata-2.0-part3 - new alias.
  Found dev 259:0 /dev/disk/by-path/pci-0000:01:00.0-nvme-1 - new alias.
  Found dev 259:1 /dev/disk/by-path/pci-0000:01:00.0-nvme-1-part/by-partnum/1 - new alias.
  Found dev 259:2 /dev/disk/by-path/pci-0000:01:00.0-nvme-1-part/by-partnum/2 - new alias.
  Found dev 259:3 /dev/disk/by-path/pci-0000:01:00.0-nvme-1-part/by-partnum/3 - new alias.
  Found dev 259:2 /dev/disk/by-path/pci-0000:01:00.0-nvme-1-part/by-partuuid/2ab76e00-a853-4680-98bc-53c069bd24b0 - new alias.
  Found dev 259:1 /dev/disk/by-path/pci-0000:01:00.0-nvme-1-part/by-partuuid/df8483d8-7100-4051-8bd7-cb372d8f9189 - new alias.
  Found dev 259:3 /dev/disk/by-path/pci-0000:01:00.0-nvme-1-part/by-partuuid/ed358fcd-487b-45c1-9053-f017d4d39089 - new alias.
  Found dev 259:1 /dev/disk/by-path/pci-0000:01:00.0-nvme-1-part1 - new alias.
  Found dev 259:2 /dev/disk/by-path/pci-0000:01:00.0-nvme-1-part2 - new alias.
  Found dev 259:3 /dev/disk/by-path/pci-0000:01:00.0-nvme-1-part3 - new alias.
  Found dev 8:2 /dev/disk/by-uuid/1098-D8B5 - new alias.
  Found dev 252:1 /dev/disk/by-uuid/9e103561-2f15-462b-93af-bc001875b4e0 - new alias.
  Found dev 252:0 /dev/disk/by-uuid/cbd1325a-b43f-4dc5-a0aa-9a95e29200fa - new alias.
  Found dev 252:0 /dev/dm-0 - new alias.
  Found dev 252:1 /dev/dm-1 - new alias.
  Found dev 252:2 /dev/dm-2 - new alias.
  Found dev 252:3 /dev/dm-3 - new alias.
  Found dev 252:4 /dev/dm-4 - new alias.
  Skipping "/dev/dma_heap/" (no block devices).
  Skipping "/dev/dri/" (no block devices).
  Skipping "/dev/fd" (symbolic link to directory).
  Skipping "/dev/hugepages" (different filesystem in directory).
  Skipping "/dev/input/" (no block devices).
  Found dev 7:0 /dev/loop0 - new alias.
  Found dev 7:1 /dev/loop1 - new alias.
  Found dev 7:2 /dev/loop2 - new alias.
  Found dev 7:3 /dev/loop3 - new alias.
  Found dev 7:4 /dev/loop4 - new alias.
  Found dev 7:5 /dev/loop5 - new alias.
  Found dev 7:6 /dev/loop6 - new alias.
  Found dev 7:7 /dev/loop7 - new alias.
  Found dev 252:4 /dev/mapper/pve-data - new alias.
  Found dev 252:3 /dev/mapper/pve-data_tdata - new alias.
  Found dev 252:2 /dev/mapper/pve-data_tmeta - new alias.
  Found dev 252:1 /dev/mapper/pve-root - new alias.
  Found dev 252:0 /dev/mapper/pve-swap - new alias.
  Skipping "/dev/mqueue" (different filesystem in directory).
  Found dev 259:0 /dev/nvme0n1 - new alias.
  Found dev 259:1 /dev/nvme0n1p1 - new alias.
  Found dev 259:2 /dev/nvme0n1p2 - new alias.
  Found dev 259:3 /dev/nvme0n1p3 - new alias.
  Skipping "/dev/pts" (different filesystem in directory).
  Found dev 252:4 /dev/pve/data - new alias.
  Found dev 252:1 /dev/pve/root - new alias.
  Found dev 252:0 /dev/pve/swap - new alias.
  Found dev 8:0 /dev/sda - new alias.
  Found dev 8:1 /dev/sda1 - new alias.
  Found dev 8:2 /dev/sda2 - new alias.
  Found dev 8:3 /dev/sda3 - new alias.
  Skipping "/dev/shm" (different filesystem in directory).
  Skipping "/dev/snd/" (no block devices).
  Skipping "/dev/usb/" (no block devices).
  Filtering devices to scan (nodata)
  /dev/pve/swap: Skipping (deviceid)
  /dev/pve/root: Skipping (deviceid)
  /dev/mapper/pve-data_tmeta: Skipping (deviceid)
  /dev/mapper/pve-data_tdata: Skipping (deviceid)
  /dev/pve/data: Skipping (deviceid)
  /dev/loop0: Skipping (deviceid)
  /dev/loop1: Skipping (deviceid)
  /dev/loop2: Skipping (deviceid)
  /dev/loop3: Skipping (deviceid)
  /dev/loop4: Skipping (deviceid)
  /dev/loop5: Skipping (deviceid)
  /dev/loop6: Skipping (deviceid)
  /dev/loop7: Skipping (deviceid)
  /dev/sda: Skipping (deviceid)
  /dev/sda1: Skipping (deviceid)
  /dev/sda2: Skipping (deviceid)
  /dev/sda3: Skipping (deviceid)
  /dev/nvme0n1: Skipping (deviceid)
  /dev/nvme0n1p1: Skipping (deviceid)
  /dev/nvme0n1p2: Skipping (deviceid)
  /dev/nvme0n1p3: size is 498018959 sectors
  Closed /dev/nvme0n1p3
  filter caching good /dev/nvme0n1p3.
  Filtering devices to scan done (nodata)
  Checking fd limit for num_devs 1 want 33 soft 1024 hard 524288
  Scanning 1 devices for VG info
  open /dev/nvme0n1p3 ro di 0 fd 5
  Scanning submitted 1 reads
  Processing data from device /dev/nvme0n1p3 259:3 di 0.
  /dev/nvme0n1p3: using cached size 498018959 sectors
  /dev/nvme0n1p3: using cached size 498018959 sectors
  filter caching good /dev/nvme0n1p3.
  /dev/nvme0n1p3: No lvm label detected
  Scanned devices: read errors 0 process errors 0 failed 0
  lvmcache label scan done
  Processing PVs in VG #orphans_lvm2
  Reading orphan VG #orphans_lvm2.
  No matching physical volumes found
  Unlocking /run/lock/lvm/P_global
  _undo_flock /run/lock/lvm/P_global
  global/notify_dbus not found in config: defaulting to 1
  Destroy lvmcache content
  Completed: pvscan --devices /dev/nvme0n1p3 -vvv
  Destroy lvmcache content
  Freeing VG #orphans_lvm2 at 0x5ac0a458c3d0.
  Destroying DM devno cache.
  Destroying DM uuid cache.
  Syncing device names
 
I don't think it's related to the reasons that are not visible.
I don't understand.