/var - SUN

This is a discussion on /var - SUN ; Dear all, Please share some info about the best practises to manage the /var ? Regards...

+ Reply to Thread
Results 1 to 5 of 5

Thread: /var

  1. /var

    Dear all,

    Please share some info about the best practises to manage the /var ?

    Regards


  2. Re: /var

    unixadmin wrote:
    > Please share some info about the best practises to manage the /var ?


    It depends.

    --
    Daniel

  3. Re: /var

    Make it really big.



  4. Re: /var

    Aldo of Pignotti wrote:
    > Make it really big.


    Only if running like mail or print services.
    Just make / 20-30 GB, swap 1-4 GB (if not a huge server). Have one empty
    slice same size as / for live upgrade if you are short on disks.

  5. Re: /var

    In <1181663544.521117.139240@o11g2000prd.googlegroups. com> Aldo of Pignotti writes:

    >Make it really big.


    Not if you want to make a backup of it it.

    I have two partitions /var and /var-nodump, and lots of directories in
    /var turn out to be soft links to corresponding places in /var-nodump. For
    example:

    chl% ls -l /var/spool
    total 32
    drwxrwsr-t 2 daemon daemon 512 Jun 12 03:59 calendar
    drwxrwx--- 2 smmsp smmsp 1024 Jun 13 12:21 clientmqueue
    drwxrwxr-x 4 root sys 512 Feb 6 15:12 cron
    drwxrwxr-x 2 root sys 512 Jan 18 20:15 fax
    lrwxrwxrwx 1 root sys 23 May 21 2006 locks -> /var-nodump/spool/locks
    drwxrwxr-x 7 lp sys 512 Apr 10 15:16 lp
    drwxr-xr-x 2 root sys 2560 Jun 13 12:21 mqueue
    lrwxrwxrwx 1 root sys 22 May 23 2006 news -> /var-nodump/spool/news
    lrwxrwxrwx 1 root sys 23 May 21 2006 patch -> /var-nodump/spool/patch
    lrwxrwxrwx 1 root sys 21 May 21 2006 pkg -> /var-nodump/spool/pkg
    lrwxrwxrwx 1 root sys 22 May 21 2006 pop3 -> /var-nodump/spool/pop3
    drwxr-xr-x 2 root lp 512 May 21 2006 print
    drwxrwxr-x 5 root sys 512 Jan 18 19:59 uucp
    drwxrwxr-x 3 root sys 512 Jan 18 20:14 uucppublic
    chl%
    root# du -ksh /var*
    105M /var
    86M /var-nodump

    Now you may say "what's the point", given that so /var is so much bigger.
    but most of /var (e.g. /var/sadm is 56M) never changes, and hence never
    shows up on an incremental dump.

    In /var-nodump you will find things like my web-browser cache and my news
    spool, which change frequently but are easily recoverable from other
    sources in the event of total loss.

    --
    Charles H. Lindsey ---------At Home, doing my own thing------------------------
    Tel: +44 161 436 6131 Fax: +44 161 436 6133 Web: http://www.cs.man.ac.uk/~chl
    Email: chl@clerew.man.ac.uk Snail: 5 Clerewood Ave, CHEADLE, SK8 3JU, U.K.
    PGP: 2C15F1A9 Fingerprint: 73 6D C2 51 93 A0 01 E7 65 E8 64 7E 14 A4 AB A5

+ Reply to Thread