Operating System - HP-UX
1834813 Members
2682 Online
110070 Solutions
New Discussion

Unable to mount logical Volume

 
Md.Shahabuddin
Advisor

Unable to mount logical Volume

Hi friends,
This is shahab,I have stuck in a problem and i am not getting any clue what to do next.
I was practising in the test server.
First of all i have created a logical volume of 78 MB that is lvol1
under vg01, and i have mounted it, as well as i have added it to
the /etc/fstab file also, everthing was working fine. But when i
tried to reduce that Logical Volume { first i have unmounted that
lvol1, and reduced it with lvreduce to 40M } i am not able to mount
that Logicalvolume. whenever i tried to mount it shows that no such
files or directory and it also shows that lvol1 is corrupted and
needed to be checked. so i have started the file system check with
fsck command i tried a lot, but that was of no use it displays a
message file system check failure and aborting. I have tried all the
options of fsck, but all in vain. I want to use that lvol1 but cant
find any way, please help me out or give some clue for it.

4 REPLIES 4
Jollyjet
Valued Contributor

Re: Unable to mount logical Volume

HI,

Hp is not recommended to reduce a logical volume the best way is you can remove the lvol1 and recreate it again and restore the back up.This will save your time.
Steven E. Protter
Exalted Contributor

Re: Unable to mount logical Volume

Shalom,

You destroyed your data. Its gone, restore it from backup.

When you have a filesystem of 78MB sitting on a logical volume of equal size the data is all over it. When you reduced it to 40 MB without using fsadm (OnlineJFS) to reduce the filesystem you destroyed part of your data.

It is not recoverable. Backup time.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Anshumali
Esteemed Contributor

Re: Unable to mount logical Volume

Shahab's message says, practicing in test server. Glad that you didn't do it in production.
Answer as above expert said: vgremove followed by vgcreate, restore data if any.
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Hein van den Heuvel
Honored Contributor

Re: Unable to mount logical Volume

Sep>> It is not recoverable. Backup time.

More like restore time!
Too late for a backup !
:-)

Time to find the backup, and restore it.

Hein.