Keresés

Új hozzászólás Aktív témák

  • Jester01

    veterán

    válasz GD #1686 üzenetére

    Szerintem itt nem a journallal van probléma.
    Alapból az ext2/3 lefoglal 5%ot a rendszergazda számára, hogyha a felhasználók betöltik a lemezt akkor is tudjon esetleg olyan rendrakást csinálni amihez kell egy kis hely és ezt a df nem mutatja. man tune2fs

    # dd if=/dev/zero of=t.bin bs=1M count=32
    # mke2fs t.bin
    ...
    8192 inodes, 32768 blocks
    1638 blocks (5.00%) reserved for the super user
    ...
    # tune2fs -m 50 t.bin
    tune2fs 1.39 (29-May-2006)
    Setting reserved blocks percentage to 50% (16384 blocks)
    # mount t.bin /mnt/test -o loop
    # df -h /mnt/test
    Filesystem Size Used Avail Use% Mounted on
    /var/tmp/t.bin 31M 395K 15M 3% /mnt/test
    # dd if=/dev/zero of=/mnt/test/1.bin bs=1M count=24
    24+0 records in
    24+0 records out
    25165824 bytes transferred in 0.072569 seconds (346784262 bytes/sec)
    # df -h /mnt/test
    Filesystem Size Used Avail Use% Mounted on
    /var/tmp/t.bin 31M 25M 0 100% /mnt/test
    # su testuser
    > dd if=/dev/zero of=/mnt/test/2.bin bs=1M count=4
    dd: writing `/mnt/test/2.bin': No space left on device
    > exit
    # dd if=/dev/zero of=/mnt/test/2.bin bs=1M count=4
    4+0 records in
    4+0 records out
    4194304 bytes transferred in 0.012298 seconds (341053898 bytes/sec)
    # df -h /mnt/test
    Filesystem Size Used Avail Use% Mounted on
    /var/tmp/t.bin 31M 29M 0 100% /mnt/test
    # tune2fs -m 0 /dev/loop0
    tune2fs 1.39 (29-May-2006)
    Setting reserved blocks percentage to 0% (0 blocks)
    # df -h /mnt/test
    Filesystem Size Used Avail Use% Mounted on
    /var/tmp/t.bin 31M 29M 2.5M 92% /mnt/test

    Ext3 esetén a journal mérete 1024 és 102400 blokk között állítható be, ez max blokkméret (4k) esetén is ''csak'' 400 mega.

  • GD

    őstag

    válasz GD #1686 üzenetére

    ''Ext3 has the worst inital capacity (92.77%), while others FS preserve almost full partition capacity (ReiserFS = 99.83%, JFS = 99.82%, XFS = 99.95%). Interestingly, the residual capacity of Ext3 and ReiserFS was identical to the initial, while JFS and XFS lost about 0.02% of their partition capacity, suggesting that these FS can dynamically grow but do not completely return to their inital state (and size) after file removal.
    Conclusion : To use the maximum of your partition capacity, choose ReiserFS, JFS or XFS.''

    hm, ahogy sejtettem, lehet érdemes volna átállni vmi másra..
    ''ubt do not completely return to their inital state (and size) after file removal''
    ezt nem értem igazán..

    [Szerkesztve]

Új hozzászólás Aktív témák