partition size
Giorgos Keramidas
charon at labs.gr
Mon Sep 24 01:16:03 EEST 2001
Alexandros Papadopoulos <alex at picturebooks.gr> wrote:
> Xairetw allhlous.
>
> Apo kapou eixa kseshkwsei thn idea na exw partition gia to /var allo apo to
> root partition, epeidh an tiggarei to systhma sta logs klp mporei na ftasei
> se standstill olo to mhxanhma logw elleipshs diskou.
>
> Eixa kanei loipon mia egkatastash se ena home pc me to /var se ena diko tou
> partition twn 100MB kai ola ta alla se ena monolithic root partition twn 2GB.
> Twra ksafnika xreiazomai perissotero xwro sto /var, pou exei ftasei sto 98%
> capacity.
>
> Yparxoun rules of thumb gia to poio pososto tou filesystem prepei na
> katalambanei to ka8e top level directory? Nomiza oti 100MB 8a htan yperarketa
> gia to /var enos home pc, alla astoxhsa oiktrws...
Nai, o kanonas einai aplos.
Ypologise ti services trexeis kai ti apaithseis exoun apo to /var sou.
Then partition.
Sto diko mou mhxanhma mporeis na deis kati san:
% sockstat -l4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
tty comsat 5704 2 udp4 *:512 *:*
httpd httpd 361 16 tcp4 *:80 *:*
root sendmail 276 4 tcp4 *:25 *:*
root sshd 273 3 tcp4 *:22 *:*
root inetd 268 5 tcp4 *:113 *:*
root ntpd 249 4 udp4 *:123 *:*
bind named 247 20 udp4 127.0.0.1:53 *:*
Me mono comsat,apache,sendmail,sshd,identd,ntpd,named oi apaithseis sto
/var/log einai mikres (ta logs ginontai rotate otan jeperasoun ta 10 Mb se
megethos, kai den krataw pano apo 10 rotations). Gia to /var/spool/mqueue
exo krathsei arketo xoro opws tha deis apo to:
% df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ad0s1a 194548 64752 114233 36% /
/dev/ad0s3e 496111 117846 338577 26% /var
/dev/ad0s3f 4065262 1535920 2204122 41% /usr
/dev/ad0s3g 34804895 4179595 27840909 13% /home
devfs 1 1 0 100% /dev
procfs 4 4 0 100% /proc
O perissoteros xoros pantos exei paei sto /home me diafora.
-giorgos
More information about the Linux-greek-users
mailing list