linux 系統修改lv 導致掛載問題

因爲lv的名字烏龍導致的開機無法掛載/home,進入修復模式

/etc/fstab

#
# /etc/fstab
# Created by anaconda on Fri Oct 19 02:49:22 2018
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/rhel-root   /                       xfs     defaults        0 0
UUID=5b225649-c937-41ca-xxxx-xxxxxxxxxxx26 /boot                   xfs     defaults        0 0
/dev/mapper/rhel-lvo10   /home                   xfs     defaults        0 0
/dev/mapper/rhel-swap   swap                    swap    defaults        0 0

linux 系統修改lv 導致掛載問題

問題就出在標紅的 rhel-lvo10,實際的lv卷名是lvol0 l 在linux終端tty中跟數字1是非常相似的,所以導致我在配置/etc/fstab時掛載的配的是rhel-lvo10,導致掛載不上;
lvrename rhel lvo10 home 報錯
Existing logical volume "lvo10" not found in volume group "rhel"
但是我直接在fstab 裏配置UUID 掛載又沒有問題,以路徑名字掛載卻掛載不上,百思不得其解,定位問題,原來是邏輯卷命名這
注意,要是確認命令無誤,就應該檢查字符是否有同型異義

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章