File System Naming Convention

Thread Tools Search this Thread
Operating Systems Linux Red Hat File System Naming Convention
# 1  
Old 08-31-2012
File System Naming Convention


I am installing a new RHEL 5 application server containing JBOSS along with other specific 3rd party applications. I know that this usually gets installed in /opt but I was thinking of installing these on a new separtate lv / file system instead.

rather than

Can anyone explain why I should not use such a naming convention as an alternative to /opt.

# 2  
Old 08-31-2012
You're kind of missing the point -- you don't need to create new folders under / to do that. Any ordinary folder can have its own filesystem mounted on it, including /opt/, or even /opt/myapplication. So you can create an /opt/myapplication folder, put a new volume on it, and install on it to get the benefits of a new volume without needing to install in an unusual place.

That's why UNIX/Linux has /opt/, /usr/, /home/, and so forth -- to make it convenient to divide system utilities, user applications, and data onto different disks without needing to install anything into nonstandard locations.

Last edited by Corona688; 08-31-2012 at 02:31 PM..
# 3  
Old 09-03-2012
I'd like to segregate my application from the other system FS's. For example if I need to reduce or remove the lv it will not impact the root system. For this reason I intended presenting a separate LUN/vg to the system mounted on a new unique FS. The /opt will remain on the root vg for other system apps software.
# 4  
Old 09-03-2012
Like Corona688 said, you can have your own unique filesystem mounted as /opt/myapplication, so everything in /opt except /opt/myapplication is on the root (or /opt-) filesystem and /opt/myapplication is completely separate.

Last edited by hergp; 09-04-2012 at 05:38 AM.. Reason: typo corrected
# 5  
Old 09-03-2012
In simple terms mount your lv's on the /opt/[something] directory where [something] is your application name. Everybody does this BTW. That way you can a small local system disk and giant LUN mounted onto a system disk mountpoint.
# 6  
Old 09-05-2012
Ok so just to be clear what you recommend is creating a new vg (LUN), create a new lv and mount that as /opt/[something]?

So in effect there will be a /opt FS and a /opt/[something] mounted FS also?
# 7  
Old 09-13-2012
Not 'in effect'. It's not a trick. You can mount partitions in any folder you want and it literally, really, will be a different partition. UNIX is designed to allow it. That's just how disk partitions in UNIX work.

Think about it. You've already got /opt/ as a different partition than /. Having /opt/myapp a different partition than /opt/ is just more of the same.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Change the naming convention of the output file

Hi Currently we have nmon running on our Red hat Linux server. The ouput file is now coming with the naming convention as "servername_160321_0010.nmon". The output file naming convention has to be changed as "nmon_servername_daily_2016.03.21_00.00.00" How can we do it ? Any suggestions... (10 Replies)
Discussion started by: newtoaixos
10 Replies

2. Shell Programming and Scripting

Help with naming the file

Hi, I have a folder that contains files abc.txt def.txt ....and so on Inside abc.txt, I have @<TRIPOS>MOLECULE 4|Chelerythrine|abcb11_earlyIdentification_Stronginhib_washed_ligprep|sdf|1|dock Inside def.txt, I have @<TRIPOS>MOLECULE... (6 Replies)
Discussion started by: rossi
6 Replies

3. UNIX for Dummies Questions & Answers

Check file name against convention

I need this script to check if the first 3 letters of the file name are capital. find . -type f -name *001.dpx -exec find {} ! -name ???_???_???_v??.??????.dpx \; >> ./Bad_FileNames.txt Currently it finds the first frame of the sequence and tests that against the naming convention. It works... (6 Replies)
Discussion started by: scribling
6 Replies

4. Fedora

Basic question regarding rpm naming convention.

Hi Guys, Where would i find the list of distribution codes. For example. samba-32bit-3.4.2 - In above rpm file it is indicated that its release is . The rpm is meant to be run for opensuse. Where would i get the linking of release number and distribution. ... (2 Replies)
Discussion started by: pinga123
2 Replies

5. Shell Programming and Scripting

Concatenate files to one file with naming convention

Hi , i have below files in wrk folder. file names are 1102090001.CLT 1102090003.CLT 1102100019.CLT 1102100020.CLT the above files are concatenate to one file but that concatenate file name must be same naming convention. (date +%y%m%d)and 0001 count. example : concatenate file... (9 Replies)
Discussion started by: krbala1985
9 Replies

6. Hardware

Motherboards naming convention

For the selection of motherboards, is there any naming convention in the type numbers? There is usually a brand name and sometimes a version name, but more essential details like form factor, SATA speed and maximum amount of RAM is never given. Is there a reason for that? Is there any background... (2 Replies)
Discussion started by: figaro
2 Replies

7. Shell Programming and Scripting

Naming convention script

OK, so a quick background: I am a sys admin for a 1:1 deployment in academia with Macbooks, totaling around 6,000. Macbooks get shifted around from building to building and go to and from the repair center if hardware repair is needed. Often, some machines will get moved from one building to... (8 Replies)
Discussion started by: tlarkin
8 Replies

8. Shell Programming and Scripting

#file naming

hi all, Please advise at what circumstance those file will become -rwxr-xr-x 1 psa psa 1969088 Aug 18 2006 -rwx------ 1 psa psa 2166784 Jul 25 2006 -rwx------ 1 psa psa 904040 Jul 25 2006 -rwx------ 1 psa ... (2 Replies)
Discussion started by: rauphelhunter
2 Replies

9. Shell Programming and Scripting

naming a file to hostname

I am running a script remotely to another client. after it runs it places the file in /tmp. I need the file in /tmp to be renamed to the local hostname. but when i set the variable it names the file to my local hostname. how do i fix that (4 Replies)
Discussion started by: deaconf19
4 Replies

10. UNIX Desktop Questions & Answers

Naming convention for Libraries..

Hi All, I need to know standard naming convention for Unix libraries (including all flavours of unix)..As I have gone through some sites and found out The UNIX convention for naming of libraries is lib<name>.so.<major>.<minor>.<revision> so is it statndard . also does it change... (0 Replies)
Discussion started by: rkshukla14
0 Replies
Login or Register to Ask a Question

Featured Tech Videos