物理上換完盤淤翔,fdisk -l可以看到新盤,mkfs.xfs格式化后胆屿,可以用blkid看到硬盤uuid,將uuid更新至/etc/fstab文件中偶宫。去掉前面的注釋非迹。mount -a掛載卻掛載不上。
后查看messages日志纯趋,報(bào)錯(cuò)信息如下:
Dec 10 23:08:39 localhost kernel: XFS (sdb): Mounting V5 Filesystem
Dec 10 23:08:39 localhost kernel: XFS (sdb): Ending clean mount
Dec 10 23:08:39 localhost systemd: Unit cslc-hdd002.mount is bound to inactive unit dev-disk-by\x2duuid-4028ce01\x2d2a83\x2d487b\x2d89ee\x2d983ea101cd76.device. Stopping, too.
Dec 10 23:08:39 localhost systemd: Unmounting /cslc/hdd002...
Dec 10 23:08:39 localhost root: [euid=root]:root pts/3 2022-12-10 17:41 (4.9.1.100):[/root] 2022-12-10 23:08:39 mount -a
Dec 10 23:08:39 localhost kernel: XFS (sdb): Unmounting Filesystem
Dec 10 23:08:39 localhost systemd: Unmounted /cslc/hdd002.
上網(wǎng)一查憎兽,得知是換盤之前沒(méi)有umount之前的故障盤導(dǎo)致的,掛載點(diǎn)和之前的硬盤還存在綁定關(guān)系吵冒,所以新盤掛不上纯命,解決方法:
systemctl daemon-reload
重新mount -a就ok啦!1云堋亿汞!