1826219 Members
3337 Online
109691 Solutions
New Discussion

root file system

 
SOLVED
Go to solution
Shivkumar
Super Advisor

root file system

What are the names of the file systems which are considered under / file system on hpux ?

Thanks,
Shiv
9 REPLIES 9
Rajeev  Shukla
Honored Contributor

Re: root file system

can you be more specific, do you mean directories or filesystem. Coz / itself is a filesystem (root filesystem)
Yogeeraj_1
Honored Contributor

Re: root file system

hi,

/ is a file system already!

if you do bdf, you will see, for example:
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 204800 66328 137424 33% /


it is mounted on the /dev/vg00/lvol3

do you mean all the directories found on the root file system?

typically,
dev etc sbin

regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Joseph Loo
Honored Contributor
Solution

Re: root file system

hi shiv,

baffled by the question. anyway, do this to show all mounted file system:

# bdf
u will notice / itself is a file system.
# cd /
# lsf
u may then see which directories other than the mounted file systems are under /.

regards.
what you do not see does not mean you should not believe
morganelan
Trusted Contributor

Re: root file system

Hi,

I think under / file system, we can put some file systems such as /etc , /sbin, etc.
But we usually separate root file system under vg00, such as follow:
#bdf|grep vg00
/dev/vg00/lvol3 204800 121721 77966 61% /
/dev/vg00/lvol1 151509 54799 81559 40% /stand
/dev/vg00/lvol7 8388608 3173290 5052422 39% /var
/dev/vg00/lvol6 2097152 1116909 919076 55% /usr
/dev/vg00/lvol5 1048576 257657 742269 26% /tmp
/dev/vg00/lvol4 2097152 1449664 607039 70% /opt
/dev/vg00/lvol8 409600 158184 235740 40% /home

Kamal Mirdad
Kurt Beyers.
Honored Contributor

Re: root file system

Shiv,

Do a 'cat /etc/fstab' to see the file systems that are mounted under.

The file systems listed in the previous reply are the 'default' ones that are mounted under /. Of course your applications can mount other file systems, eg /u01 if you have an Oracle database.

best regards,
Kurt
Mahesh Kumar Malik
Honored Contributor

Re: root file system

Hi Shiv

/ is the basic root file system. There are no file systems under it. We have basically /etc for configurations files, /sbin for excutables etc...

Regards
Mahesh
Cem Tugrul
Esteemed Contributor

Re: root file system

Shiv,

/ basicly (root file system)and as Kurt's
description ;
Do a 'cat /etc/fstab' to see the file systems that are mounted under
and when you run the command;
#bdf
you can easily see already mounted Fs&mount
points

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Babu A
Frequent Advisor

Re: root file system

Hi Shiv,

Normally vg00 becomes your root vg for any HP-UX system (HP recommends). Under vg00 you will have the following filesystems (i.e /, /stand, /var, /usr, /tmp, /opt, /home)

# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 229376 162680 66240 71% /
/dev/vg00/lvol1 327680 106576 219424 33% /stand
/dev/vg00/lvol8 2621440 106560 2495280 4% /var
/dev/vg00/lvol7 2686976 2016400 665392 75% /usr
/dev/vg00/lvol4 229376 8936 218792 4% /tmp
/dev/vg00/lvol6 2523136 1581224 934608 63% /opt
/dev/vg00/lvol5 32768 8432 24160 26% /home

You can also have different filesystem for crash.(i.e /var/adm/crash)

regards,

Babu
Bill Hassell
Honored Contributor

Re: root file system

I thinmk you are asking: what are the "normal" directories contained in the / filesystem, things like /dev /etc /sbin, etc. And that is a very good question to ask since sysadmin mistakes (or bad application software) can wrongly put files and directories in the / filesystem.

So here are some basic rules:

- The / filesystem is static, so it never grows significantly, typically 200 megs or less is more than enough space.

- The / directory should NEVER contain any files, only directories! In order to meet that requirement, root's home directory must be moved from it's (incredibly vulnerable) default location. I recommend creating /root, then move all files from / to /root and change /etc/passwd to reflect root's new home. DO this and you'll avoid becoming a member of the infamous rm -r * club.

- Here are the *only* top level directories in / that are not mountpoints:

/dev /sbin /etc /root

That's all! Anything else must be a mountpoint. A mountpoint is an empty directory which is used to attach another disk section (lvol) such as /tmp or /opt, etc.

- To see all the directories that are part of /, use the du command and sort the results:

du -kx / | sort -rn | head

It should look something like this:

95376 /
48696 /sbin
42840 /etc
26680 /etc/vx
21656 /etc/vx/type
14992 /sbin/fs
10512 /etc/opt
8776 /sbin/fs/vxfs3.5
8616 /etc/vx/type/static
6344 /etc/vx/type/gen

The du -kx / command looks only at the directories stored in /.



Bill Hassell, sysadmin