Partition on Redhat Linux
Partitioning is a means to divide a single hard drive into many logical drives. A partition is a contiguous set of blocks on a drive that are treated as an independant disk.
Partition Types
1.Foreign Partition Types
2.Primary Partitions
3.Logical Partitions
4.Swap Partitions
/var
This fs contains spool directories such as those for mail and printing. In addition, it contains the error log directory. If your machine is a server and develops a chronic error, those msgs can fill the partition. Server computers ought to have /var in a different partition than /.
/usr
This is where most executable binaries go. In addition, the kernel source tree goes here, and much documentation.
/tmp
Some programs write temporary data files here. Usually, they are quite small. However, if you run computationally intensive jobs, like science or engineering applications, hundreds of megabytes could be required for brief periods of time. In this case, keep /tmp in a different partition than /.
/home
This is where users home directories go. If you do not impose quotas on your users, this ought to be in its own partition.
/boot
This is where your kernel images go. See discussion above for placement on old systems.
[oracle@194150-web1 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 9.9G 3.5G 5.9G 38% /
/dev/sda1 99M 13M 81M 14% /boot
none 7.9G 0 7.9G 0% /dev/shm
/dev/sda5 1.9G 35M 1.8G 2% /tmp
/dev/sda6 138G 104G 28G 80% /db01
/dev/sda7 138G 98G 34G 75% /db02
/dev/sda8 138G 96G 36G 74% /db03
/dev/sda9 92G 57G 31G 65% /db04
/dev/sda10 92G 76G 13G 87% /app01
/dev/sda11 92G 57G 31G 66% /app02
/dev/sda12 46G 37G 7.5G 83% /app03
Partition Types
1.Foreign Partition Types
2.Primary Partitions
3.Logical Partitions
4.Swap Partitions
/var
This fs contains spool directories such as those for mail and printing. In addition, it contains the error log directory. If your machine is a server and develops a chronic error, those msgs can fill the partition. Server computers ought to have /var in a different partition than /.
/usr
This is where most executable binaries go. In addition, the kernel source tree goes here, and much documentation.
/tmp
Some programs write temporary data files here. Usually, they are quite small. However, if you run computationally intensive jobs, like science or engineering applications, hundreds of megabytes could be required for brief periods of time. In this case, keep /tmp in a different partition than /.
/home
This is where users home directories go. If you do not impose quotas on your users, this ought to be in its own partition.
/boot
This is where your kernel images go. See discussion above for placement on old systems.
[oracle@194150-web1 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 9.9G 3.5G 5.9G 38% /
/dev/sda1 99M 13M 81M 14% /boot
none 7.9G 0 7.9G 0% /dev/shm
/dev/sda5 1.9G 35M 1.8G 2% /tmp
/dev/sda6 138G 104G 28G 80% /db01
/dev/sda7 138G 98G 34G 75% /db02
/dev/sda8 138G 96G 36G 74% /db03
/dev/sda9 92G 57G 31G 65% /db04
/dev/sda10 92G 76G 13G 87% /app01
/dev/sda11 92G 57G 31G 66% /app02
/dev/sda12 46G 37G 7.5G 83% /app03

No comments:
Post a Comment