Operating System - HP-UX
1752337 Members
5469 Online
108787 Solutions
New Discussion

mount point vs management

 
SOLVED
Go to solution
christian_derek
Regular Advisor

mount point vs management

Hi,

I’m running hpux 11iv3 with an eva in backend. The system is share between client and each client have few env (prod, preprod,test)

• I presented to the hpux a lun per client env (client1_prod, client1_test,etc)
• I have built a vg per client env (vg_client1_prod, vg_client1_test)
• Built multiple lv per vg (/dev/vg_client1_prod/lvol_data,/dev/vg_client1_prod/lvol_opt,etc)

My questions is, how should I deploy it at the file system.

Ideally, I would like to have something similar to this …
/prod/client1/data
/prod/client1/opt

/prod/client10
/test/client1/data…

Should I :

Create symlink
- Vg00 will contain /opt/company/client1/prod
- Create symlink from the previous path to /prod/client1/data on the vg_client1_prod
- Pros and cons?


Mount in the right directory
- Create my file system from /dev/vg_client1_prod/lvol_data to /opt/company/client1/data
- Pros and cons

Or better solution?

Thanks,

14 REPLIES 14
James R. Ferguson
Acclaimed Contributor

Re: mount point vs management

Hi:

Instead of six (6) separate threads that deal with the same fundamental question, you would be better served either (1) referencing the URL's of the latest thread with its predecessor; or (2) not starting a new thread at all, but continuing to refine the discussion in one thread until you are satisfied.

Of course, providing feedback (yes, points do equate to that) as you proceed is also, always appreciated. Points also help responders guage how they might have helped and where additional responses may add further value.

...JRF...
SoorajCleris
Honored Contributor
Solution

Re: mount point vs management

Hi Christian,

Just create the directories like /prod/client1/data


Use newfs command to create filesystem

#newfs -F vxfs /dev/vg_client1_prod/rlvol_data

Then use mount comamnd to mount.

mount /dev/vg_client1_prod/lvol_data /prod/client1/data

Put the entries in /etc/fstab

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
christian_derek
Regular Advisor

Re: mount point vs management

Hi Sooraj,

My point is if I mount, let say 5 fs like this with newfs + mount command:

/prod/client1/data
/prod/client1/opt
/prod/client1/etc/
/prod/client1/var
/prod/client1/other

if by mistake, one of my programmer is building a file in /prod/client1 and not the right mount point. In which lv the file will reside, the first mount point?

thanks,

Dennis Handly
Acclaimed Contributor

Re: mount point vs management

>In which lv the file will reside, the first mount point?

On your root disk, or whatever filesystem contains /prod/client1/.
christian_derek
Regular Advisor

Re: mount point vs management

so,

what you are saying is that I will need to build my structure on vg00 /prod/client1, is this ok? This is the right way to do?

Thanks,
Dennis Handly
Acclaimed Contributor

Re: mount point vs management

>what you are saying is that I will need to build my structure on vg00 /prod/client1, is this ok?

The only thing I implied was not to make the mistake of putting anything in /prod/client1/, only in your 5 subdirectories.

To prevent mistakes, you can remove write access to /prod/client1/.
Dennis Handly
Acclaimed Contributor

Re: mount point vs management

>I will need to build my structure on vg00 /prod/client1?

If you were asking do you need to do the following before you mount, yes:
mkdir -p /prod/client1/data /prod/client1/opt /prod/client1/etc/ \
/prod/client1/var /prod/client1/other
christian_derek
Regular Advisor

Re: mount point vs management

I have 2 other questions ...

1- why the options -p if the mkdir

2- so my vg mount point need to be on top of the dir structure of my vg00?

Thansk,
Mel Burslan
Honored Contributor

Re: mount point vs management

>> 1- why the options -p if the mkdir

-p option is there to create any intermediary subdirectories that may not exist on your loooong path.

For instance

lets assume you do not have anything under /prod. In order to create /prod/client1/data, you will need to do

mkdir /prod/client1
mkdir /prod/client1/data

-p option eliminates the need to use two mkdir statements and create the /prod/client1 on the fly for you when you execute

mkdir -p /prod/client1/data

command.

>> 2- so my vg mount point need to be on top of the dir structure of my vg00?

well, yes. Considering "/", i.e. the root of all filesystems is actually a filesystem residing on vg00, all filesystems created are actually dangling off of the vg00. So there is no escaping from it.
________________________________
UNIX because I majored in cryptology...