Operating System - HP-UX
1752569 Members
5095 Online
108788 Solutions
New Discussion юеВ

Re: error in mounting Logical Volume

 
SOLVED
Go to solution
Zishan
Regular Advisor

error in mounting Logical Volume

Hello,

I have HP integrity HP UNIX V3 version. I have compaq storage device with 2 hard drive 13GB each. I created volum group (By using SAM) "vg01" for this storage device and then created two logical volume lvl01 and lvl20 successfully.
When I am trying to mound the volume group I am facing the following error:

# mount /u03
UX:vxfs mount: ERROR: V-3-20012: not a valid vxfs file system
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
# mount /u04
UX:vxfs mount: ERROR: V-3-20012: not a valid vxfs file system
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version

Any help would be appreciate.

Regards,
9 REPLIES 9
Hakki Aydin Ucar
Honored Contributor

Re: error in mounting Logical Volume

Your drives used in HP-UX 11i v2 before ?
Maybe it is better to startup with mediainit before going to create LVM.
Did you use mediainit ? (if your HD (s) used in anothjer LVM structure of course, if they are new you do not need to do)
Dennis Handly
Acclaimed Contributor

Re: error in mounting Logical Volume

Have you created a filesystem on them?
Pulse001
Regular Advisor

Re: error in mounting Logical Volume

Hi Zishan,

another thread is open by you for the same issue.

http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1273049825113+28353475&threadId=1426326

let us follow only one thread
Zishan
Regular Advisor

Re: error in mounting Logical Volume

@Dennis,

Dennis No I did'nt create file system on newly created LVM's. Kindly guide me how can I create ?
I am just doing testing other wise these are working before on the same machine.
My SAM snap shot is attached.

Regard,
R.O.
Esteemed Contributor
Solution

Re: error in mounting Logical Volume

Hi,
You must create the file systems so they can be mounted:

# newfs -F vxfs /dev/vg01/rlv01 and so on.

Note "rlvol", with "r" as you need the raw device when creating the FS. If you need specific options, like largefiles support, do:

# newfs -F vxfs -o largefiles /dev/vg01/rlv01

Do it for each lvol you need to mount.

Regards,
"When you look into an abyss, the abyss also looks into you"
madhuchakkaravarthy
Trusted Contributor

Re: error in mounting Logical Volume

hi

my suggestion is always better to do with CLI.

#mknod /dev/xyz/group c 64 minor no
#pvcreate /dev/rdsk/ctd
#vgcreate /dev/xyz /dev/dsk/ctd
#vgdisplay -v /dev/xyz
#lvcreate -n xyz -L size /dev/xyz
#lvextend -L size /dev/xyz/xyz
----------------------------------------
#newfs -F vxfs -o largefiles /dev/xyz/rxyz
--------------------------------------

u need to do above step
mkdir xyz
mount /dev/xyz/xyz /xyz

change the ownership and permission as per ur requirement

regards

MC
Taifur
Respected Contributor

Re: error in mounting Logical Volume

Hi,

Try to check,
#fsck -F vxfs -y /dev/vg01/lvol1

If possible remove lvol01, lvl20 then create it again as follows,
Before removing lvol take full backup of lvol1,lvol2
Example:
#lvcreate -L -n lvol01 /dev/vg01
#lvcreate -L -n lvol02 /dev/vg01

#newfs -F vxfs -o largefiles /dev/vg01/rlvol1
#newfs -F vxfs -o largefiles /dev/vg01/rlvol2

#mount /dev/vg01/lvol1 /u01
#mount /dev/vg01/lvol2 /u02

Cheers//
Taifur
madhuchakkaravarthy
Trusted Contributor

Re: error in mounting Logical Volume

hi

Forums user name: Zishan
Company name:
Country / Region: palestine
Personal quote:
Certification:
ITRC member since: January 23, 2010
Last contribution date: May 05, 2010
I have assigned points to 31 of 146 responses to my questions.


u have assigned only 31 out of 146 responses.

assign points to those who helps u to solve problem.

regards

MC
Zishan
Regular Advisor

Re: error in mounting Logical Volume

Thanks for All