[问题] 新装的硬盘无法mount

楼主: chings22 (chings22)   2021-10-24 23:13:26
有一台主机redhat 5.x已有一组raid-1的disk,用LVM管理(前人做的)
后来新增2个disk,做成第2个raid-1,在linux看到是/dev/sdb
已经切成/dev/sdb1,并format了
以下是fdisk -l的讯息
Disk /dev/sdb: 999.9 GB, 999999668224 bytes
255 heads, 63 sectors/track, 121576 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 121576 976559188+ 83 Linux
Disk /dev/dm-2: 999.9 GB, 999999668224 bytes
255 heads, 63 sectors/track, 121576 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/dm-2p1 1 121576 976559188+ 83 Linux
Disk /dev/dm-3: 999.9 GB, 999996609024 bytes
255 heads, 63 sectors/track, 121575 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-3 doesn't contain a valid partition table
https://imgur.com/3nt17Se.jpg
但要mount时,就是有这讯息
# mount /dev/sdb1 /u03
mount: /dev/sdb1 already mounted or /u03 busy
# dmsetup ls
mpath5p1 (253, 3)
VolGroup00-LogVol01 (253, 1)
mpath5 (253, 2)
VolGroup00-LogVol00 (253, 0)
https://imgur.com/8XwDy4N.jpg
/dev/dm-2跟/dev/dm-3 都是系统自己生出来的
用LVM GUI接口对/dev/sdb做initilize 也不行,说已在使用 (我linux的LVM不是很熟)
google一些文件后,是否要把multipath移除 ?
1.才能直接mount /dev/sdb1
2.或是加到LVM管理
作者: Bencrie   2021-10-25 00:19:00
你先找 sdb1 谁在用吧
作者: tomsawyer (安安)   2021-10-25 08:26:00
妳都说用lvm管理了 lvs pvs vgs的结果? r1也有可能是mdadm
楼主: chings22 (chings22)   2021-10-25 08:27:00
请问要用什么指令看sdb1被占用了?
作者: Bencrie   2021-10-25 09:04:00
mount/df/lsof 之类的都可以啊
楼主: chings22 (chings22)   2021-11-05 21:45:00
multipath -f mpath5

Links booklink

Contact Us: admin [ a t ] ucptt.com