rychle mazani velkeho mnozstvi souboru

Miroslav Lachman 000.fbsd at quip.cz
Fri Jan 19 17:55:00 CET 2007


Jozef Babjak wrote:
>>kopiroval ports tree az do uplneho zaplneni disku (tedy ne ze by doslo 
>>misto - 350GB partition, ale dosly inody). Zaplneni trvalo temer 4 dny a 
> 
> 
>   ^-- Dosli inody? Nemozete pouzit UFS2? Tam by dojst nemali, IIRC.

FileSystem je UFS2 (instalace freebsd 6.2-RC2) a nevim o tom, ze by UFS2 
bylo nejak vyrazne odlisne od UFS v tom, aby mu nemohly dojit inody.

root at elsa ~/# dumpfs /vol0 | head -n 18
magic   19540119 (UFS2) time    Fri Jan 19 17:47:29 2007
superblock location     65536   id      [ 4585b95d d6de03fa ]
ncg     1854    size    174385575       blocks  168897680
bsize   16384   shift   14      mask    0xffffc000
fsize   2048    shift   11      mask    0xfffff800
frag    8       shift   3       fsbtodb 2
minfree 8%      optim   time    symlinklen 120
maxbsize 16384  maxbpg  2048    maxcontig 8     contigsumsize 8
nbfree  8856134 ndir    6936764 nifree  10818799        nffree  39923
bpg     11761   fpg     94088   ipg     23552
nindir  2048    inopb   64      maxfilesize     140806241583103
sbsize  2048    cgsize  16384   csaddr  3000    cssize  30720
sblkno  40      cblkno  48      iblkno  56      dblkno  3000
cgrotor 1039    fmod    0       ronly   0       clean   0
avgfpdir 64     avgfilesize 16384
flags   soft-updates
fsmnt   /vol0
volname         swuid   0


Tohle je hlaska z logu:
Jan 19 03:33:21 elsa kernel: pid 70878 (cp), uid 0 inumber 39590912 on 
/vol0: out of inodes

Momentalni stav (v prubehu mazani tech milionu souboru) je:
Filesystem          Size  Used  Avail Capacity  iused   ifree %iused 
Mounted on
/dev/mirror/gm0s2d  322G  187G   110G    63% 32811662 10853744   75%   /vol0

Zkopirovanych adresaru /usr/ports bylo priblizne 470

A jeste info pro Romana - ano, SU je pouzito:
/dev/mirror/gm0s2d on /vol0 (ufs, local, noexec, nosuid, soft-updates)

Miroslav Lachman



More information about the Users-l mailing list