下午服务器好像是 OOM 然后连不上,我重启了下,结果就出问题了,之前我把几块 7TB 的硬盘合并成了 29TB 的虚拟硬盘,重启连上后我想要挂载结果失败了。。这是我的命令
mount /dev/lvm_data/vg_data /data
mount: /data: wrong fs type, bad option, bad superblock on /dev/mapper/lvm_data-vg_data, missing codepage or helper program, or other error.
fdisk 显示的磁盘情况如下。
fdisk -l
Disk /dev/loop0: 63.95 MiB, 67051520 bytes, 130960 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/loop1: 87.04 MiB, 91267072 bytes, 178256 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/loop2: 38.83 MiB, 40714240 bytes, 79520 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/loop3: 63.97 MiB, 67080192 bytes, 131016 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/nvme0n1: 894.25 GiB, 960197124096 bytes, 1875385008 sectors
Disk model: Micron_7450_MTFDKCC960TFR
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 262144 bytes
I/O size (minimum/optimal): 262144 bytes / 262144 bytes
Disklabel type: gpt
Disk identifier: 4F66946E-85FF-465C-B1B3-E6EF8B5337F0
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 1048575 1046528 511M EFI System
/dev/nvme0n1p2 1048576 3145727 2097152 1G Linux filesystem
/dev/nvme0n1p3 3145728 1874327551 1871181824 892.2G Linux filesystem
/dev/nvme0n1p4 1874327552 1875376127 1048576 512M Linux filesystem
/dev/nvme0n1p5 1875380912 1875384974 4063 2M Linux filesystem
Partition 5 does not start on physical sector boundary.
Disk /dev/nvme1n1: 894.25 GiB, 960197124096 bytes, 1875385008 sectors
Disk model: Micron_7450_MTFDKCC960TFR
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 262144 bytes
I/O size (minimum/optimal): 262144 bytes / 262144 bytes
Disk /dev/nvme2n1: 6.99 TiB, 7681501126656 bytes, 15002931888 sectors
Disk model: Micron_7450_MTFDKCC7T6TFR
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/nvme4n1: 6.99 TiB, 7681501126656 bytes, 15002931888 sectors
Disk model: Micron_7450_MTFDKCC7T6TFR
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/nvme5n1: 6.99 TiB, 7681501126656 bytes, 15002931888 sectors
Disk model: Micron_7450_MTFDKCC7T6TFR
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/nvme3n1: 6.99 TiB, 7681501126656 bytes, 15002931888 sectors
Disk model: Micron_7450_MTFDKCC7T6TFR
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mapper/lvm_data-vg_data: 28.82 TiB, 31686188335104 bytes, 61887086592 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 262144 bytes
I/O size (minimum/optimal): 262144 bytes / 262144 bytes
Disklabel type: gpt
Disk identifier: E6D1C8C9-B362-41BC-8580-F1523F6661BD
Device Start End Sectors Size Type
/dev/mapper/lvm_data-vg_data-part1 34 61887086558 61887086525 28.8T Linux filesystem
Partition 1 does not start on physical sector boundary.
要如何不丢失数据挂载上去。。求助。。急。
1
letmedie 96 天前
看起来是文件系统错误,先试试 fsck 看看能不能修复。但是硬盘空间上似乎有点奇怪,先试试 fsck 吧。
|
2
billccn 95 天前 via Android
你为什么这个 LVM 里面还分着区?
你需要把/dev/mapper/lvm_data-vg_data-part1 挂载 |