有時當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
然後在進行解除安裝,