报错:
root@zyyt-NF5280M5:~# mount /dev/sdb3 /data_mnt/
mount: /data_mnt: 未知的文件系统类型“LVM2_member”.
mount: unknow filesystem type "LVM2_member"
root@zyyt-NF5280M5:/etc/apt# pvs
WARNING: PV /dev/sdb3 in VG ubuntu-vg is using an old PV header, modify the VG to update.
PV VG Fmt Attr PSize PFree
/dev/sdb3 ubuntu-vg lvm2 a-- <9.10t 296.00m
root@zyyt-NF5280M5:/etc/apt#
root@zyyt-NF5280M5:/etc/apt#
root@zyyt-NF5280M5:/etc/apt#
root@zyyt-NF5280M5:/etc/apt# vgs
WARNING: PV /dev/sdb3 in VG ubuntu-vg is using an old PV header, modify the VG to update.
VG #PV #LV #SN Attr VSize VFree
ubuntu-vg 1 2 0 wz--n- <9.10t 296.00m
root@zyyt-NF5280M5:/etc/apt#
root@zyyt-NF5280M5:/etc/apt#
root@zyyt-NF5280M5:/etc/apt# lvdisplay
WARNING: PV /dev/sdb3 in VG ubuntu-vg is using an old PV header, modify the VG to update.
--- Logical volume ---
LV Path /dev/ubuntu-vg/root
LV Name root
VG Name ubuntu-vg
LV UUID f6S1Gu-E9hW-j326-gyeT-WUHt-Q9dI-ebWp7X
LV Write Access read/write
LV Creation host, time ubuntu, 2021-08-25 00:34:41 +0800
LV Status NOT available
LV Size 8.95 TiB
Current LE 2347354
Segments 1
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Path /dev/ubuntu-vg/swap_1
LV Name swap_1
VG Name ubuntu-vg
LV UUID 0ndiFf-ZTcX-QWi7-OUUP-Z8eE-WjnD-vw5gAO
LV Write Access read/write
LV Creation host, time ubuntu, 2021-08-25 00:34:41 +0800
LV Status NOT available
LV Size <143.88 GiB
Current LE 36833
Segments 1
Allocation inherit
Read ahead sectors auto
root@zyyt-NF5280M5:/etc/apt# blkid /dev/
/dev/loop0 /dev/loop1 /dev/loop2 /dev/loop3 /dev/loop4 /dev/nvme0n1 /dev/sda /dev/sda1 /dev/sda2 /dev/sdb /dev/sdb1 /dev/sdb2 /dev/sdb3
root@zyyt-NF5280M5:/etc/apt# blkid /dev/ubuntu-vg/root
root@zyyt-NF5280M5:/etc/apt#
root@zyyt-NF5280M5:/etc/apt#
root@zyyt-NF5280M5:/etc/apt# mount /dev/ubuntu-vg/root /data/
dmt/ ubuntu-20.04.3-desktop_apt-cache/ ubuntu-20.04.3-desktop_apt-cache.20220324.tar.gz
root@zyyt-NF5280M5:/etc/apt# mount /dev/ubuntu-vg/root /data/
dmt/ ubuntu-20.04.3-desktop_apt-cache/ ubuntu-20.04.3-desktop_apt-cache.20220324.tar.gz
root@zyyt-NF5280M5:/etc/apt# mount /dev/ubuntu-vg/root /data_mnt/
mount: /data_mnt: 特殊设备 /dev/ubuntu-vg/root 不存在.
root@zyyt-NF5280M5:/etc/apt# vgchange -ay /dev/ubuntu-vg
WARNING: PV /dev/sdb3 in VG ubuntu-vg is using an old PV header, modify the VG to update.
2 logical volume(s) in volume group "ubuntu-vg" now active
root@zyyt-NF5280M5:/etc/apt# lvdisplay
WARNING: PV /dev/sdb3 in VG ubuntu-vg is using an old PV header, modify the VG to update.
--- Logical volume ---
LV Path /dev/ubuntu-vg/root
LV Name root
VG Name ubuntu-vg
LV UUID f6S1Gu-E9hW-j326-gyeT-WUHt-Q9dI-ebWp7X
LV Write Access read/write
LV Creation host, time ubuntu, 2021-08-25 00:34:41 +0800
LV Status available
# open 0
LV Size 8.95 TiB
Current LE 2347354
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Path /dev/ubuntu-vg/swap_1
LV Name swap_1
VG Name ubuntu-vg
LV UUID 0ndiFf-ZTcX-QWi7-OUUP-Z8eE-WjnD-vw5gAO
LV Write Access read/write
LV Creation host, time ubuntu, 2021-08-25 00:34:41 +0800
LV Status available
# open 0
LV Size <143.88 GiB
Current LE 36833
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
root@zyyt-NF5280M5:/etc/apt#
root@zyyt-NF5280M5:/etc/apt# mount /dev/ubuntu-vg/root /data_mnt/
root@zyyt-NF5280M5:/etc/apt#
root@zyyt-NF5280M5:/etc/apt# cd /data_mnt/
root@zyyt-NF5280M5:/data_mnt# ls
1.txt
root@zyyt-NF5280M5:/data_mnt#
引自: