Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
LVM and VxVM
cancel
Showing results for 
Search instead for 
Did you mean: 

problem with mounting a file system

SOLVED
Go to solution
Vipin Singhal
Super Advisor

problem with mounting a file system

today i think -my file system got unmount.
when i trying with #bdf, it shows this error:

bdf: /vipin I/O error

till yesterday , the status was:

#bdf
/dev/vg5/vipin 3584000 2065376 1423717 59% /vipin

Please suggest what to do?
thanks
vipin
24 REPLIES
Devender Khatana
Honored Contributor
Solution

Re: problem with mounting a file system

Hi,

It has not got unmounted instead it has got some corruption.

What is the output of

#lvdisplay -v /dev/vg05/vipin

Was something new done on system like adding/removing LUNs, Extending/Reducing File System?
If yes then it is the result of the same probably otherwise generally it should not happen by itself.

What happen if you unmount and do a fsck on it.

HTH,
Devender
Impossible itself mentions "I m possible"
Domenico_5
Respected Contributor

Re: problem with mounting a file system

hi Vipin

but vg5 is active if you run vgdisplay vg05 what can you see?
Arunvijai_4
Honored Contributor

Re: problem with mounting a file system

Can you run #lvdisplay on your volume to see the results ? Is it a device connected to a SAN and got disconnected elsewhere ?

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Vipin Singhal
Super Advisor

Re: problem with mounting a file system

# lvdisplay /dev/vg5/vipin
--- Logical volumes ---
LV Name /dev/vg5/vipin
VG Name /dev/vg5
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 31000
Current LE 7750
Allocated PE 7750
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default


#vgdisplay -v /dev/vg5 | more
--- Volume groups ---
VG Name /dev/vg5
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 10
Open LV 10
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 9727
VGDA 4
PE Size (Mbytes) 4
Total PE 19452
Alloc PE 16625
Free PE 2827
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg5/vipin
LV Status available/syncd
LV Size (Mbytes) 31000
Current LE 7750
Allocated PE 7750
Used PV 1

Vipin Singhal
Super Advisor

Re: problem with mounting a file system

# cd /
# ll
# ll
./vipin not found

total 18
.
.
.
.
.
Joseph Loo
Honored Contributor

Re: problem with mounting a file system

hi,

could u mount it again:

# mount /dev/vg5/vipin /vipin

also, u mean bdf also give IO error for that particular file system, /vipin

regards.
what you do not see does not mean you should not believe
Vipin Singhal
Super Advisor

Re: problem with mounting a file system

i have created a more new LV under this VG yesterday

Please suggest what to do?
Devender Khatana
Honored Contributor

Re: problem with mounting a file system

Hi,

Try
#umount /vipin

And

#mount /devvg5/vipin /vipin

If it reports error then try

#fsck -y /dev/vg5/vipin

Now Again

#mount /devvg5/vipin /vipin

HTH,
Devender
Impossible itself mentions "I m possible"
Vipin Singhal
Super Advisor

Re: problem with mounting a file system

# mount -F vxfs /dev/vg5/vipin /vipin
mount: /vipin: I/O error
Vipin Singhal
Super Advisor

Re: problem with mounting a file system

# mount -F vxfs /dev/vg5/vipin /vipin
mount: /vipin: I/O error


should i run fsck
Arunvijai_4
Honored Contributor

Re: problem with mounting a file system

Run #fsck /dev/vg5/vipin

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Vipin Singhal
Super Advisor

Re: problem with mounting a file system

# umount /vipin
# mount -F vxfs /dev/vg5/vipin /vipin
vxfs mount: read of super-block on /dev/vg5/vipin failed: I/O error

# fsck -y /dev/vg5/vipin
vxfs fsck: read of super-block on /dev/vg5/vipin failed: I/O error
file system check failure, aborting ...

Please suggest
Sivakumar TS
Honored Contributor

Re: problem with mounting a file system


Dear Vipin,

# lvdisplay -v /dev/vg5/vipin

execute with -v option to get the full info. Check for any stale extents.

If NO,

then run fsck and mount it.

It will work !

With Regards,

Siva.
Nothing is Impossible !
MarkSyder
Honored Contributor

Re: problem with mounting a file system

If the suggestions you've been given so far don't resolve the fault I think we need more information about the new lvol you created yesterday.

Try:

strings /etc/mnttab|pg

and post the result.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Devender Khatana
Honored Contributor

Re: problem with mounting a file system

Hi,

I think there has been some corruption to the file system. You could try recreating the file system again using newfs.

Also a rare hit would be that your file system is not Vxfs and is HFS. Is that the case?

HTH,
Devender
Impossible itself mentions "I m possible"
Vipin Singhal
Super Advisor

Re: problem with mounting a file system

# strings /etc/mnttab | pg
/dev/vg5/vipin /vipin vxfs ioerror=mwdisable,delaylog,dev=402d0001 0 0 1132152766
/dev/vg5/vipin_new /vipin_new vxfs ioerror=mwdisable,delaylog,dev=402d000a 0 0 1134067336
Vipin Singhal
Super Advisor

Re: problem with mounting a file system

i cannt recreate the LV, beacuse there are so many data in that LV
MarkSyder
Honored Contributor

Re: problem with mounting a file system

I think Devender's probably right about the filesystem becoming corrupt. Note that he didn't say re-create the lvol; he said re-create the fs.

Mark
The triumph of evil requires only that good men do nothing
Vipin Singhal
Super Advisor

Re: problem with mounting a file system

if i re-create the FS by using these commands:
#newfs -F vxfs -o largefiles /dev/vg5/rvipin
# mount -F vxfs /dev/vg5/vipin vipin

it will losse my data or not?
Arunvijai_4
Honored Contributor

Re: problem with mounting a file system

Yes, recreating a new FS will destroy all datas on the disk. So, beware of it.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
MarkSyder
Honored Contributor

Re: problem with mounting a file system

Do you have a recent backup of the filesystem?

Mark
The triumph of evil requires only that good men do nothing
Robert-Jan Goossens
Honored Contributor

Re: problem with mounting a file system

Vipin,

Looks as like your mnttab has been corrupted.

# mv /etc/mnttab /etc/mnttab.old
# mount -a

# bdf
# cat /etc/mnttab

btw, yes you would loose your data if you use a newfs command.
Sivakumar TS
Honored Contributor

Re: problem with mounting a file system


Dear Vipin,

Yes! when you recreate the file system , the data will be LOST :-(

With Regards,

Siva.
Nothing is Impossible !
Bill Hassell
Honored Contributor

Re: problem with mounting a file system

When you see the error message: I/O error

there is nothing you can do to fix the problem--the disk is damaged and cannot be repaired. This isn't just the vipin volume, it is one of disks in /dev/vg5. Ideally, thes edisks are mirrored (optional software) but since you are seeing the disk I/O error message, this is probably not true. Not the rest of the lvogical volumes in /dev/vg5 may be OK, so IMMEDIATELY shuitdown your application(s) and take a backup of these volumes. Since you can't mount /vipin, there is no way to backup that data. Then go through the normal procedures to replace the failed disk and rebuild /dev/vg5.


Bill Hassell, sysadmin