救急,服务器重启后虚拟硬盘挂载不了,上面有不少数据

68 天前
 samohyes

下午服务器好像是 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.

要如何不丢失数据挂载上去。。求助。。急。

1022 次点击
所在节点    问与答
3 条回复
letmedie
68 天前
看起来是文件系统错误,先试试 fsck 看看能不能修复。但是硬盘空间上似乎有点奇怪,先试试 fsck 吧。
billccn
68 天前
你为什么这个 LVM 里面还分着区?

你需要把/dev/mapper/lvm_data-vg_data-part1 挂载
samohyes
67 天前
@letmedie 谢谢,fsck 试了不行,昨天后面我用了 testdisk 里面文件是找得到的,但是文件系统坏了。后面没办法就重新格式化了下载了。。。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1073356

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX