[問題] 新裝的硬碟無法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