Operating System - HP-UX
1820396 Members
3542 Online
109624 Solutions
New Discussion юеВ

mounting the file system under /opt

 
SOLVED
Go to solution
Shivkumar
Super Advisor

mounting the file system under /opt

Is it possible to mount /opt logical file system under 2 volume group /dev/vg00/lvol5 and /dev/vg00/lvol6 ?

Thanks,
Shiv
7 REPLIES 7
Florian Heigl (new acc)
Honored Contributor
Solution

Re: mounting the file system under /opt

Shivkumar, I think You should read the manuals once again...

/opt: filesystem
/dev/vg00/lvol5: logical volume
/dev/vg00/lvol6: logical volume
/dev/vg00: volume group

You can increasize the space allocated for /opt by first increasing the logical volume and then the filesystem.

if that is what You wanted, check if You have free space in vg00 by issueing vgdisplay /dev/vg00 | grep Free

yesterday I stood at the edge. Today I'm one step ahead.
saju_2
Respected Contributor

Re: mounting the file system under /opt

Hi

From ur question i believe u want to mount /opt mount point to mount two lvols ...

Two lvols cannot be mounted on a same mount point. If u try that way u will get the error messae
vxfs mount: /dev/vg_x_/lvolx is already mounted, /opt is busy,or allowable number of mount points exceeded

If u want to get the data , then mount one lvol get the data and then unmount and mount the other lvol

regards
CS
Kurt Beyers.
Honored Contributor

Re: mounting the file system under /opt

Shiv,

An lvol coresponds to one and only one /dev/vgxx/lvoly and belongs only to one volume group.

Either increase the lvol if you are short on disk space or mount another lvol in a sub directory of /opt (eg /opt/omni) where yo want to perform a new installation and you require more disk space.

best regards,
Kurt
Sreedhar Nathani
Valued Contributor

Re: mounting the file system under /opt

Hello Shiv,

You can not mount 2 logical volumes to the same mount point.

Incase if you want to lvol5 and lvol6 on /opt then you can do the following.

First mount the lvol5 on /opt
Then create a new directory on /opt after mounting lvol5. Then you can mount lvol6 to that subdirectory /opt/

But ensure /opt is the one which is mounted first, after that you mount /opt/

Hope this helps

Mahesh Kumar Malik
Honored Contributor

Re: mounting the file system under /opt

Hi Shiv

One flie system can be mounted to only one Logical Volume so it not Is it possible to mount /opt logical file system under 2 volumes

Regards
Mahesh
Cem Tugrul
Esteemed Contributor

Re: mounting the file system under /opt

Shiv,

No it is not possible...
As Florian's description ;
/opt: filesystem
/dev/vg00/lvol5: logical volume
/dev/vg00/lvol6: logical volume
/dev/vg00: volume group

And also have a look at my attachment
which illustrates vg-lv-pe...

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Himanshu_3
Valued Contributor

Re: mounting the file system under /opt

Hi Shiv,

Only one filesystem can be mounted on any logical volume.
Attached is the document which would clear your concepts regarding the LVM.

Regds,
Himanshu