How to mount the LV as /share?

 
Bishooo
Advisor

How to mount the LV as /share?

Hello Gents,

I'm working with HP-UX 11i V1, I create a volume group with 10 GB Logical volume! I need to mount this LV as /share & then mount it on Solaris Box. Could you help me with this issue please?
16 REPLIES 16
Steven E. Protter
Exalted Contributor

Re: How to mount the LV as /share?

Shalom,

Lets say the logical volume name is

/dev/vg00/lvol5

This entry can be put in /etc/fstab

/dev/vg00/lvol5 /share vxfs delaylog 0 2


mount /share

To then export it and make it mountable on Solaris, you need to use NFS server.

add

/share

to the file:

/etc/exports
# You may wish to put in access restrictions.

exportfs -av

Done.

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
Bishooo
Advisor

Re: How to mount the LV as /share?

Thanks a lot sor the fast reply.

I create a directory called share in the / and i add this entry /dev/vg04/lvol1 /share vxfs 02 in /etc/fstab

then when I do #mount share
It gives me this error:
vxfs mount: /dev/vg04/lvol1 is corrupted. needs checking
Luk Vandenbussche
Honored Contributor

Re: How to mount the LV as /share?

Hi,

Check the filesystem

fcsk -F vxfs /dev/vg04/rlvol1

Then try to mount it again.
Bishooo
Advisor

Re: How to mount the LV as /share?

This is what I get with this command:

#fsck -F vxfs /dev/vg04/rlvol1
file system is larger than device
vxfs fsck: cannot initialize aggregate
file system check failure, aborting ...
Sivakumar TS
Honored Contributor

Re: How to mount the LV as /share?


Hi,

have you done any modification in filesystem size using fsadm ?

Regards,

Siva.
Nothing is Impossible !
Sivakumar TS
Honored Contributor

Re: How to mount the LV as /share?

Hi Bishoo,

In most cases it is caused by doing say a lvreduce prior to resizing the file system with fsadm.

In such cases we need to recreate the lvol !!

Regards,

Siva.
Nothing is Impossible !
Bishooo
Advisor

Re: How to mount the LV as /share?

I can't create File system !!

#newfs -F hfs /dev/vg04/lvol1
newfs (hfs): /dev/vg04/lvol1 is not a character device
Ludovic Derlyn
Esteemed Contributor

Re: How to mount the LV as /share?

hi

try with newfs -F hfs /dev/vgxx/rlvolx
rariasn
Honored Contributor

Re: How to mount the LV as /share?

Hi Bishooo,

newfs -F vxfs /dev/vgxx/rlvolx

fsadm -F vxfs -o largefiles /dev/vgxx/rlvolx

mount -F vxfs -o largefiles /dev/vgxx/lvolx /mount_point

Modify /etc/fstab,

/dev/vgxx/lvolx mount_point vxfs largefiles,delaylog 0 2ç

rgs,

ran