在 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