pve 故障记录
通过网页pve console 执行
参考网页:
cat /etc/os-release
proxmox吧
https://foxi.buduanwang.vip/pve
https://www.reddit.com/r/Proxmox/comments/vy33ho/stuck_at_grub_rescue_after_an_update_and_reboot/?rdt=37867
https://pve.proxmox.com/wiki/Recover_From_Grub_Failure
https://zhangguanzhang.github.io/2022/02/18/proxmox-boot-disk-lvmid-not-found/#/%E5%A4%84%E7%90%86%E8%BF%87%E7%A8%8B
root@pve:~# fdisk
fdisk: bad usage
Try 'fdisk --help' for more information.
root@pve:~# fdisk -l
Disk /dev/sda: 119.24 GiB, 128035676160 bytes, 250069680 sectors
Disk model: Hoodisk SSD
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 27485715-FC91-45E6-AF36-C0859F6D2935
Device Start End Sectors Size Type
/dev/sda1 34 2047 2014 1007K BIOS boot
/dev/sda2 2048 2099199 2097152 1G EFI System
/dev/sda3 2099200 250069646 247970447 118.2G Linux LVM
Disk /dev/mapper/pve-swap: 4 GiB, 4294967296 bytes, 8388608 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/pve-root: 40.56 GiB, 43553652736 bytes, 85065728 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
GPT PMBR size mismatch (2193087 != 30031871) will be corrected by write.
Disk /dev/sdb: 14.32 GiB, 15376318464 bytes, 30031872 sectors
Disk model: SanDisk 3.2Gen1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 6D608513-0E56-4294-9E6B-99D007735571
Device Start End Sectors Size Type
/dev/sdb1 64 511 448 224K Microsoft basic data
/dev/sdb2 512 6271 5760 2.8M EFI System
/dev/sdb3 6272 2192439 2186168 1G Apple HFS/HFS+
/dev/sdb4 2192440 2193039 600 300K Microsoft basic data
Disk /dev/mapper/pve-vm--100--disk--0: 64 GiB, 68719476736 bytes, 134217728 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: gpt
Disk identifier: 492263E9-EC6A-4693-94EA-F895E1238CBA
Device Start End Sectors Size Type
/dev/mapper/pve-vm--100--disk--0-part1 2048 4095 2048 1M BIOS boot
/dev/mapper/pve-vm--100--disk--0-part2 4096 4198399 4194304 2G Linux filesystem
/dev/mapper/pve-vm--100--disk--0-part3 4198400 134215679 130017280 62G Linux filesystem
root@pve:~# ^C
root@pve:~#
11
root@pve:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 119.2G 0 disk
├─sda1 8:1 0 1007K 0 part
├─sda2 8:2 0 1G 0 part
└─sda3 8:3 0 118.2G 0 part
├─pve-swap 253:0 0 4G 0 lvm [SWAP]
├─pve-root 253:1 0 40.6G 0 lvm /
├─pve-data_tmeta 253:2 0 1G 0 lvm
│ └─pve-data-tpool 253:4 0 56.9G 0 lvm
│ ├─pve-data 253:5 0 56.9G 1 lvm
│ └─pve-vm--100--disk--0 253:6 0 64G 0 lvm
└─pve-data_tdata 253:3 0 56.9G 0 lvm
└─pve-data-tpool 253:4 0 56.9G 0 lvm
├─pve-data 253:5 0 56.9G 1 lvm
└─pve-vm--100--disk--0 253:6 0 64G 0 lvm
sdb 8:16 1 14.3G 0 disk
├─sdb1 8:17 1 224K 0 part
├─sdb2 8:18 1 2.8M 0 part
├─sdb3 8:19 1 1G 0 part
└─sdb4 8:20 1 300K 0 part
root@pve:~#
11
root@pve:~# pvs
PV VG Fmt Attr PSize PFree
/dev/sda3 pve lvm2 a-- <118.24g 14.75g
root@pve:~#
root@pve:~#
root@pve:~# vgs
VG #PV #LV #SN Attr VSize VFree
pve 1 4 0 wz--n- <118.24g 14.75g
root@pve:~#
root@pve:~#
root@pve:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-aotz-- <56.93g 9.03 1.76
root pve -wi-ao---- 40.56g
swap pve -wi-ao---- 4.00g
vm-100-disk-0 pve Vwi-a-tz-- 64.00g data 8.03
root@pve:~#
root@pve:~#
root@pve:~#
11
root@pve:~# cd /dev/mapper/
root@pve:/dev/mapper# ls
control pve-data pve-data_tdata pve-data_tmeta pve-data-tpool pve-root pve-swap pve-vm--100--disk--0
root@pve:/dev/mapper#
22
root@pve:/var/lib/vz/template/iso# ls
ubuntu-20.04.6-live-server-amd64.iso
root@pve:/var/lib/vz/template/iso#
root@pve:/var/lib/vz/template/iso# pwd
/var/lib/vz/template/iso
root@pve:/var/lib/vz/template/iso#
33
root@pve:/etc/pve# cat user.cfg
user:root@pam:1:0:::jack@163.com::
root@pve:/etc/pve# cat storage.cfg
dir: local
path /var/lib/vz
content iso,vztmpl,backup
lvmthin: local-lvm
thinpool data
vgname pve
content rootdir,images
root@pve:/etc/pve# cat /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/pve/root / ext4 errors=remount-ro 0 1
/dev/pve/swap none swap sw 0 0
proc /proc proc defaults 0 0
root@pve:/etc/pve#
44
root@pve:/dev/pve# ls
root swap vm-100-disk-0
root@pve:/dev/pve# pwd
/dev/pve
root@pve:/dev/pve#
45