1. 确定swap分区大小,通常是内存2倍,超过8G内存,可以1倍,虽然硬盘越来越大,也不要超过16G;
2. 根分区划分原则尽量小,能容纳操作系统软件大小再加上5G既可。
3. /var等保存系统日志的,由于读写频繁,单独一个分区
4. 应用程序自己单独一个分区。
5./usr/local
6. /opt
7./home 在solaris下用作autofs挂载点,可以用/export/home来代替
以下是例子:
AIX:
/dev/hd4 16777216 7246840 57% 24892 2% /
/dev/hd2 8388608 5503424 35% 68835 6% /usr
/dev/hd9var 8388608 3188140 62% 7030 1% /var
/dev/hd3 1572864 1303508 18% 424 1% /tmp
/dev/hd1 524288 523840 1% 9 1% /home
/dev/hd10opt 16777216 14161712 16% 30644 1% /opt
/dev/fslv04 202375168 180858268 11% 84645 1% /myapp
HP-UX:
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 5144576 2989920 2137848 58% /
/dev/vg00/lvol1 1028152 43208 882128 5% /stand
/dev/vg00/lvol8 6160384 4493048 1667336 73% /var
/dev/vg00/lvol7 4194304 2111840 2066392 51% /usr
/dev/vg00/lvol4 2097152 1759840 334792 84% /tmp
/dev/vg00/lvol9 10256384 5773988 4342606 57% /oracle
/dev/vg00/lvol6 8388608 2382608 5959112 29% /opt
/dev/vg00/lvol5 2097152 561488 1523728 27% /home
/dev/vgapp/lvol1 157245440 126121152 30917512 80% /myapp
LINUX:
文件系统 1K-块 已用 可用 已用% 挂载点
/dev/sda2 103763868 64105736 34302064 66% /
/dev/sda8 19833488 587120 18222628 4% /opt
/dev/sda7 15865156 12579700 2466548 84% /var
/dev/sda6 7928476 3009028 4510196 41% /oracle
/dev/sda1 93307 15464 73026 18% /boot
tmpfs 7058032 0 7058032 0% /dev/shm
Solaris:
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d0 16139930 8093340 7885191 51% /
swap 36625680 206216 36419464 1% /tmp
swap 36419504 40 36419464 1% /var/run
/dev/md/dsk/d3 24002472 7586730 16175718 32% /myapp
/dev/dsk/c1t0d0s7 2059015 1669993 327252 84% /export/home