LVM and VxVM

Problem with mounting a file system

 
SOLVED
Go to solution
Vipin Singhal
Super Advisor

Problem with mounting a file system

Hi,
I have created the PV,VG,LV & File system.. successfully

But when i am mounting these file systems...
I am able to mount all the file systems except one, under same VG

This is the error:
mount -F vxfs /dev/vg5/vipin /vipin
vxfs mount: /dev/vg5/vipin is corrupted. needs checking.

Please suggest what to check?
thanks
Vipin
9 REPLIES 9
Pete Randall
Outstanding Contributor

Re: Problem with mounting a file system

Run "fsck -y /dev/vg5/vipin"


Pete

Pete
Vipin Singhal
Super Advisor

Re: Problem with mounting a file system

# fsck -y /dev/vg75/vipin
fsck: /etc/default/fs is used for determining the file system type
file system is larger than device
vxfs fsck: cannot initialize aggregate
file system check failure, aborting ...


Vipin Singhal
Super Advisor

Re: Problem with mounting a file system

# fsck -y /dev/vg5/vipin
fsck: /etc/default/fs is used for determining the file system type
file system is larger than device
vxfs fsck: cannot initialize aggregate
file system check failure, aborting ...
Vipin Singhal
Super Advisor

Re: Problem with mounting a file system

# fsck -F vxfs -y /dev/vg5/vipin
file system is larger than device
vxfs fsck: cannot initialize aggregate
file system check failure, aborting ...
#
Geoff Wild
Honored Contributor

Re: Problem with mounting a file system

file system larger then device - means a device is missing - IE - there should be 4 disks in the lvol - but only 3 are visible by the host - that is - the first disk with the VTOC knows that the size is say 100GB - but there is only 75GB of disks...

Can also be caused by doing say a lvreduce prior to resizing the file system with fsadm...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Vipin Singhal
Super Advisor

Re: Problem with mounting a file system

I cannt reduce my LV size,
should i extend the VG size by adding a new LUN?

Can I delete this logical volume if yes how can I?
Deoncia Grayson_1
Honored Contributor

Re: Problem with mounting a file system

You can remove this logical volume by doing:

umount /vpin

lvremove /dev/vg5/vipin,
but please be aware this will destroy all data on this logical volume if you have nay located here.
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Geoff Wild
Honored Contributor

Re: Problem with mounting a file system

Okay..not to worry...

How was /dev/vg5/vipin created?

Do you still have /dev/vg01/vipin?

Are you trying to create a new file system so you can copy the data over?

If so, to remove:

lvremove /dev/vg5/vipin

then create it again:

lvcreate -L 4096 -n vipin /dev/vg5

If that works, then:

newfs -F vxfs /dev/vg5/rvipin

then:

fsck /dev/vg5/rvipin

then mount it (unles the old vipin is already mounted in same place):

mount /dev/vg5/vipin /vipin



Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Devender Khatana
Honored Contributor
Solution

Re: Problem with mounting a file system

Hi,

There is no need to recreate the LV for this. You can find the size of the lvol and see if any disk is missing from it.

#lvdisplay -v /dev/vg05/vipin

You should not see any stale PEs.

In the even of everything OK you can just do a newfs on the device file instead of recreating everything all over.

HTH,
Devender
Impossible itself mentions "I m possible"