有時當ipsan斷電重啓後,出現之前的掛載的分區,只讀了,不能進行寫入操作,
這是因爲當ipsan重啓後,把之前的卷標進行重序了,我們可以用
fdisk l
查看當前系統所有連接上的分區表,主意之前的iscsi盤符,看下有沒有改變,
如果有改變,就先
umount /你掛載的分區
如果這時出現不能卸載,如下提示:
mount: /mnt/cdrom: device is busy.mount: /mnt/cdrom: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
這時因爲還有程序正在使用這個分區,可以用fuser進行查看
[root@pan Desktop]# fuser -a /mnt/cdrom
/mnt/cdrom: 26002c
沒有想到還真的有個進程在使用。沒有想到還真的有個進程在使用。
只能查查是和什麼程序了:
[root@pan Desktop]# ps -ef |grep 26086c
root 7347 4480 0 15:29 pts/2 00:00:00 grep 26086c
[root@pan Desktop]# ps -ef |grep 26086
root 7457 4480 0 15:29 pts/2 00:00:00 grep 26086
root 26086 1 0 13:40 pts/1 00:00:09 konqueror
接下來我也沒有去研究,就把進程殺死了~~
#kill -9 26086
也可以用
#fuser -mk /mnt/cdrom
然後在進行卸載,
在進行正常的掛載,如有自動的掛載,在進行mount -a