1833128 Members
4042 Online
110051 Solutions
New Discussion

Re: umount a filesystem

 
SOLVED
Go to solution
jok llamera
Advisor

umount a filesystem

hi fellas,

How do I unmount a bud filesystem. Below are the error while trying to umount/mount, remove the FS.


# umount /eagle/arc
umount: cannot unmount /eagle/arch : I/O error

# mount /dev/vg02/eagleorclarch /eagle/arch
mount: /eagle/arch: I/O error

# rm eagle
rm: cannot stat eagle: I/O error


thanks,
joks


Excelence is not an act but a hobby
10 REPLIES 10
G. Vrijhoeven
Honored Contributor

Re: umount a filesystem

Request for more info.

Is this a filesystem on a logical volume?
if do:
vgdisplay -v | grep stale
can you give us the output of the mount command, or cat /etc/mnttab.
do you hav disk errors in /var/adm/syslog/syslog.log?
Roger Baptiste
Honored Contributor

Re: umount a filesystem

Jok,

Make sure /eagle/arc is a filesystem
and is a local FS. It could also be
under /eagle or / !


#bdf /eagle/arc
will show whether it is a FS, if it displayes
/eagle/arc corresponding to a LV path.
It will also show whether is a local FS and
not a NFS FS.

Then, make sure it is not being used by anybody
#fuser /eagle/arc
#fuser -cu /eagle/arc will display the processes using it (in case they are).

If there are processes using the FS, you
need to get the details of those processes
through ps output and make sure you can
kill them. (if a Database or application
is writing to the FS, beware!).

All said, the following error --
<<# rm eagle
rm: cannot stat eagle: I/O error >>
-- seems to point that the eagle directory/fs
is an NFS filesystem.

Do #mount |grep eagle and see what
error it gives.

Also do a cat /etc/xtab to see what were
the NFS filesystems mounted previously.
You need to get the NFS server name and
check at the server end.

-R
Take it easy.
jok llamera
Advisor

Re: umount a filesystem

hi fellas,

Its not an NFS filesystem, there was no user of the FS. See also error while command bdf.

::> bdf |grep eagle
bdf: /eagle: I/O error

thanks,
joks
Excelence is not an act but a hobby
Magdi KAMAL
Respected Contributor

Re: umount a filesystem

Hi,

Try :
1. ioscan
2. ioscan -fnkCdisk ?? more
3. Look for any disk different from CLAIMED.If yes there is a problem
4. Check your OnLine terminator if any.
5. File system check, using "fsck" command to fix this I/O error.
6. Hope you got a backup of that directory, try using :
lvreduce, lvremove and then lvcreate, newfs
If it didn't fix that problem , I'm afraid that you need to replace the bad disk.

Magdi
Bernie Vande Griend
Respected Contributor

Re: umount a filesystem

do a grep eagle /etc/fstab to determine which logical volume this file system is on.

You can then do a lvdisplay on that logical volume.

But also look at which volume group the logical volume is in and do a:
vgdisplay -v vg?? on that volume group.
At the bottom you will see what physical group (disk) this volume is using. Then you can use ioscan -fnC disk to determine which disk device is involved. The errors indicate a problem with a hard drive, maybe just a connection problem.
Ye who thinks he has a lot to say, probably shouldn't.
Frederic Sevestre
Honored Contributor

Re: umount a filesystem

Hi,
In addition, check if the disk (one of the disks) of the vg02 has not been used for an other vg.
vgdisplay -v vg02 (to list the disks), or strings /etc/lvmtab,
pvdisplay /dev/dsk/cxtydz for all disks of vg02
Indeed, if someone made a pvcreate -f on one of the disks of vg02, it can explain the I/O error.
Regards
Crime doesn't pay...does that mean that my job is a crime ?
Bill McNAMARA_1
Honored Contributor
Solution

Re: umount a filesystem

type
# mount

and just verify what's mounted and how first...

Later,
Bill
It works for me (tm)
jok llamera
Advisor

Re: umount a filesystem

hi fellas,

The same error comes out when mounting..I think only a reboot can clean this things. I can vgdisplay & lvdisplay w/o an error.

thanks,
joks
Excelence is not an act but a hobby
Eugen Cocalea
Respected Contributor

Re: umount a filesystem

Hi,

Is that an external drive? If so, is it powered? One of my users got the same error when he tried to mount a partition that was on an external hdd that wasn't switched on (its case, that is)

E.
To Live Is To Learn
jok llamera
Advisor

Re: umount a filesystem

hi fellas,

After a reboot, I/O error was gone..I realy appreciate your help.

thanks,
joks
Excelence is not an act but a hobby