![重新启动 Ubuntu 13.10 服务器,所有连接均被拒绝。IPMI 显示 /bin /var /usr 无法挂载 (lvm2)](https://linux22.com/image/729108/%E9%87%8D%E6%96%B0%E5%90%AF%E5%8A%A8%20Ubuntu%2013.10%20%E6%9C%8D%E5%8A%A1%E5%99%A8%EF%BC%8C%E6%89%80%E6%9C%89%E8%BF%9E%E6%8E%A5%E5%9D%87%E8%A2%AB%E6%8B%92%E7%BB%9D%E3%80%82IPMI%20%E6%98%BE%E7%A4%BA%20%2Fbin%20%2Fvar%20%2Fusr%20%E6%97%A0%E6%B3%95%E6%8C%82%E8%BD%BD%20(lvm2).png)
在 Ubuntu 13.10 上启动时,IPMI 显示无法挂载 /tmp /usr /var 文件夹,这些文件夹均设置为 LV。这导致服务器拒绝通过 SSH 或 TCP 进行的所有连接。
我的尝试都失败了。托管在 OVH 上,我可以访问救援模式并安装卷,但由于旧系统管理员设置结构的方式(或我的经验不足),似乎无法重置 root 密码。
我尝试挂载 /dev/md2 并 chroot 到其中,但“passwd”命令不起作用。md1 不会 chroot,md5 必须通过 /dev/vg/home 挂载,依此类推,因为它是 LV2 组。
鉴于我掌握的信息有限,您有什么想法可以重置 root 密码,然后正确安装东西吗?我是否需要先安装 md2,然后再安装其中的 LV?
我首先询问如何重置密码的原因是,因为在启动时它允许我跳过或手动挂载,但手动挂载需要 root 密码。
root@rescue:/# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 0 1.8T 0 disk
├─sdb4 8:20 0 1K 0 part
├─sdb2 8:18 0 1.5G 0 part
│ └─md2 9:2 0 1.5G 0 raid1
├─sdb5 8:21 0 1.8T 0 part
│ └─md5 9:5 0 1.8T 0 raid1
│ ├─vg-usr 252:1 0 4.9G 0 lvm
│ ├─vg-home 252:4 0 1.1T 0 lvm
│ ├─vg-var 252:2 0 3.9G 0 lvm
│ ├─vg-tmp 252:0 0 4.9G 0 lvm
│ └─vg-mysql 252:3 0 16G 0 lvm
├─sdb3 8:19 0 3.9G 0 part
└─sdb1 8:17 0 259M 0 part
└─md1 9:1 0 259M 0 raid1
sda 8:0 0 1.8T 0 disk
├─sda4 8:4 0 1K 0 part
├─sda2 8:2 0 1.5G 0 part
│ └─md2 9:2 0 1.5G 0 raid1
├─sda5 8:5 0 1.8T 0 part
│ └─md5 9:5 0 1.8T 0 raid1
│ ├─vg-usr 252:1 0 4.9G 0 lvm
│ ├─vg-home 252:4 0 1.1T 0 lvm
│ ├─vg-var 252:2 0 3.9G 0 lvm
│ ├─vg-tmp 252:0 0 4.9G 0 lvm
│ └─vg-mysql 252:3 0 16G 0 lvm
├─sda3 8:3 0 3.9G 0 part
└─sda1 8:1 0 259M 0 part
└─md1 9:1 0 259M 0 raid1
fdisk -l
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 4096 534527 530432 259M fd Linux raid autodetect
/dev/sda2 534528 3604479 3069952 1.5G fd Linux raid autodetect
/dev/sda3 3604480 11794431 8189952 3.9G fd Linux raid autodetect
/dev/sda4 11794432 3907018751 3895224320 1.8T f W95 Ext'd (LBA)
/dev/sda5 11796480 3907018751 3895222272 1.8T fd Linux raid autodetect
Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 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
Disklabel type: dos
Disk identifier: 0x000a357f
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 4096 534527 530432 259M fd Linux raid autodetect
/dev/sdb2 534528 3604479 3069952 1.5G fd Linux raid autodetect
/dev/sdb3 3604480 11794431 8189952 3.9G 82 Linux swap / Solaris
/dev/sdb4 11794432 3907018751 3895224320 1.8T f W95 Ext'd (LBA)
/dev/sdb5 11796480 3907018751 3895222272 1.8T fd Linux raid autodetect
Disk /dev/md5: 1.8 TiB, 1994353737728 bytes, 3895222144 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/md2: 1.5 GiB, 1571749888 bytes, 3069824 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/md1: 259 MiB, 271515648 bytes, 530304 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/vg-tmp: 4.9 GiB, 5263851520 bytes, 10280960 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/vg-usr: 4.9 GiB, 5238685696 bytes, 10231808 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/vg-var: 3.9 GiB, 4190109696 bytes, 8183808 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/vg-mysql: 16 GiB, 17179869184 bytes, 33554432 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/vg-home: 1.1 TiB, 1181116006400 bytes, 2306867200 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