Operating System - HP-UX
1833452 Members
3497 Online
110052 Solutions
New Discussion

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

Re: How to mount the LV as /share?

Thanks to all of you for the help...

I did the following:

I add /dev/vg04/lvol1 /share vxfs delaylog 0 2
in /etc/fstab

Then
#mkfs -F vxfs /dev/vg04/lvol1
#mount /dev/vg04/lvol1 /share
#bdf ---> Just to check

----------------

Now I need to mount /share on Solaris Machine??!!

Please be Patient to me because I'm new to hpux

Sivakumar TS
Honored Contributor

Re: How to mount the LV as /share?



Hi,

Now edir the /etc/exports file

add the /share filesystem in that

run #exportfs -av

NOw the filesystem is ready to mount from solaris system.

Regards,

Siva.
Nothing is Impossible !
Bishooo
Advisor

Re: How to mount the LV as /share?

When I create /etc/exports
What should I write in it?
Bishooo
Advisor

Re: How to mount the LV as /share?

I edit /etc/exports with:

/share (The Solaris IP)(ro)

:wq

#exportfs -av
exported /share
Bishooo
Advisor

Re: How to mount the LV as /share?

Now When I log on to the solaris machine, What is the mount command that I should use to mount the /share from the previos machine?

Mark Ellzey
Valued Contributor

Re: How to mount the LV as /share?

Bishoo,

To mount the filesystem on the Sun, just do the following:

Create a mount point on the Sun box:

mkdir /share

Make sure the HP's IP address and hostname are in the /etc/hosts file on the Sun box.

Then mount the nfs filesystem from the HP box like so:

mount :/share /share

That's all there is to it.

Regards,
Mark
Bishooo
Advisor

Re: How to mount the LV as /share?

Thanks a lot for everybody.
I'm done with it.