Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Value of reserved blocks is sometimes changed

  1. #1
    Join Date
    Aug 2016
    Location
    El Lago, Texas
    Beans
    674
    Distro
    Ubuntu Mate

    Value of reserved blocks is sometimes changed

    I have set my reserved blocks to 1%.

    However sometimes that value is back up to 10%.

    What conditions cause that?

    Do I need to put a script to set it it 1% in my startup programs?
    Ubuntu Mate 18.04 Bionic
    Mate Desktop

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    20,967
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Value of reserved blocks is sometimes changed

    Which file system type? I've not had that issue with ext4.

    Code:
    $ sudo tune2fs -l /dev/sdb5 |grep -i Reserv
    Reserved block count:     0
    Reserved GDT blocks:      907
    Reserved blocks uid:      0 (user root)
    Reserved blocks gid:      0 (group root)
    The default is 5% for ext4. Ok to change to zero for data file systems, but please don't do that for OS file systems.

  3. #3
    Join Date
    Aug 2016
    Location
    El Lago, Texas
    Beans
    674
    Distro
    Ubuntu Mate

    Re: Value of reserved blocks is sometimes changed

    I am using ext4.

    I found this. What does the underline part mean?

    With the help of reserved blocks, operating system keeps running for hours or sometimes days even though root file system is 100% full.
    Last edited by raleigh3; August 11th, 2020 at 02:48 AM.
    Ubuntu Mate 18.04 Bionic
    Mate Desktop

  4. #4
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,042
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Value of reserved blocks is sometimes changed

    That means there is no more space on the root filestysem (the partition that holds /). Your system is close to crashing when the disk is full. The reserved blocks are reserved for system use, not normal users, and this means the users see disk full problems before the system actually becomes un-bootable.
    My guess is that the reserved blocks count goes up when it needs to use them because that's all the space that's left.
    https://askubuntu.com/questions/2668...system-is-full
    Last edited by The Cog; August 11th, 2020 at 08:15 AM.

  5. #5
    Join Date
    Aug 2016
    Location
    El Lago, Texas
    Beans
    674
    Distro
    Ubuntu Mate

    Re: Value of reserved blocks is sometimes changed

    Quote Originally Posted by The Cog View Post
    That means there is no more space on the root filestysem (the partition that holds /). Your system is close to crashing when the disk is full. The reserved blocks are reserved for system use, not normal users, and this means the users see disk full problems before the system actually becomes un-bootable.
    My guess is that the reserved blocks count goes up when it needs to use them because that's all the space that's left.
    https://askubuntu.com/questions/2668...system-is-full
    Thanks.

    My hard drive is 2 Tb.

    I am using 2%, so running out of space should never be a problem.
    Ubuntu Mate 18.04 Bionic
    Mate Desktop

  6. #6
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    20,967
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Value of reserved blocks is sometimes changed

    Quote Originally Posted by raleigh3 View Post
    Thanks.

    My hard drive is 2 Tb.

    I am using 2%, so running out of space should never be a problem.
    Any disk can run out of storage. Just make certain that /boot and /var never do. When /boot runs too low, kernel updates fail and you'll end up with all sorts of avoidable problems. When /var fills, the system will crash and may not boot. If /boot and /var are shared with /, then correcting the issues is harder, since both are problems.

    2% won't prevent root-owned processes from using the storage. Watch it closely to avoid bad days.

  7. #7
    Join Date
    Aug 2016
    Location
    El Lago, Texas
    Beans
    674
    Distro
    Ubuntu Mate

    Re: Value of reserved blocks is sometimes changed

    How do I see how much /boot and /var are using?

    And what does "root-owned processes from using the storage" mean?
    Ubuntu Mate 18.04 Bionic
    Mate Desktop

  8. #8
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    15,234
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Value of reserved blocks is sometimes changed

    Code:
    cd /
    du -sh *
    If you mount remote filesystems from servers, you might want to add the -x parameter to limit the results to just the root filesystem.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  9. #9
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    20,967
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Value of reserved blocks is sometimes changed

    Quote Originally Posted by raleigh3 View Post
    How do I see how much /boot and /var are using?

    And what does "root-owned processes from using the storage" mean?
    It is about file systems running out of space, not directories. If the directories are part of the / file system, then check the / file system
    Code:
    df -Th /
    If they are separate file systems, run
    Code:
    df -Th /var
    df -Th /boot
    A handy alias that removes all the loop and fake file systems, is
    Code:
    alias dft='df -hT -x squashfs -x tmpfs -x devtmpfs'

  10. #10
    Join Date
    Aug 2016
    Location
    El Lago, Texas
    Beans
    674
    Distro
    Ubuntu Mate

    Re: Value of reserved blocks is sometimes changed

    Does this refer to my 2 Tbytes of space on my hard drive or the reserved blocks being used up?

    Code:
    It is about file systems running out of space, not directories. If the directories are part of the / file system, then check the / file system
    Ubuntu Mate 18.04 Bionic
    Mate Desktop

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •