Results 1 to 10 of 10

Thread: Btrfs Not releasing space in root partition (in Opensuse 13.1)

  1. #1

    Default Btrfs Not releasing space in root partition (in Opensuse 13.1)

    hi there,

    i have opensuse 13.1 with btrfs filesystem.

    and its not releasing any desk space in root

    this is what i have

    Code:
    linux-4v2w:~ # btrfs filesystem df /
    Data, single: total=412.19GiB, used=409.37GiB
    System, DUP: total=32.00MiB, used=52.00KiB
    Metadata, DUP: total=3.50GiB, used=2.74GiB
    linux-4v2w:~ #
    i deleted over 80GB of space but its not released them soo i try to :


    Code:
    linux-4v2w:~ # btrfs fi balance start -dusage=5 /
    Done, had to relocate 0 out of 420 chunks
    but its not help.

    and just want to say that i deleted all my snapshots and backup my data to another drive
    thans a head , nir.

  2. #2

    Default Re: Btrfs Not releasing space in root partition (in Opensuse 13.1)

    Have you rebooted since you deleted that stuff?
    If you delete a file that's still in use by some process, it doesn't really get deleted immediately, but only after every process that used it has quit.

    So the free space might not show up until you reboot.

  3. #3

    Default Re: Btrfs Not releasing space in root partition (in Opensuse 13.1)

    yes i reboot and still the same .

    i hope it will release it soon before the space will be zero

  4. #4

    Default Re: Btrfs Not releasing space in root partition (in Opensuse 13.1)

    Quote Originally Posted by habernir2008 View Post
    yes i reboot and still the same .

    i hope it will release it soon before the space will be zero
    Hm, and _what_ files did you delete?
    Are you sure they were on /? (/var/run/ is _not_ on / f.e.)
    Are you sure they really took 80GB? (hint: there is something called "sparse files", f.e. an 80GB file that is empty doesn't take ANY space at all, so if you delete it you won't gain anything of course )

    Other than that: no idea, as you said already you deleted all snapshots.
    Last edited by wolfi323; 07-Apr-2014 at 02:48.

  5. #5
    Join Date
    Jun 2008
    Location
    UK
    Posts
    5,500

    Default Re: Btrfs Not releasing space in root partition (in Opensuse 13.1)

    Quote Originally Posted by habernir2008 View Post
    hi there,

    i have opensuse 13.1 with btrfs filesystem.

    and its not releasing any desk space in root

    ...
    ...

    and just want to say that i deleted all my snapshots and backup my data to another drive
    Are you running Snapper (the default for btrfs on root file system)? If so, did you change the default settings for snapshot cleanup?

    How did you delete the snapshots, i.e. by what method?
    Leap 42.3 (ext4, KDE Plasma 5.8.7) ~ stable
    Manjaro (ext4, Xfce) ~ rolling updates
    Tumbleweed (ext4, KDE Plasma5) ~ managed updates via "Tumbleweed Snapshots" service.

  6. #6

    Default Re: Btrfs Not releasing space in root partition (in Opensuse 13.1)

    i delete the snapshots by the yast---->snapper tool


    and the type of files that i delete it's just media files and i dont think that it's related to any process

    and i don't change anything in the /etc/snapper/configs/root because i delete all the snapshots (in yast->snapper)


  7. #7

    Default Re: Btrfs Not releasing space in root partition (in Opensuse 13.1)

    Quote Originally Posted by habernir2008 View Post
    and the type of files that i delete it's just media files and i dont think that it's related to any process
    Ok, but were they really on the root partition?
    Those processes would have been killed by the reboot anyway.

    I suppose you don't have a separate /home partition, right? I can't really see any other reason for having a 412GiB root partition that is nearly full... (heck, my whole hard disk only has 80GB )

    But, again, /var/run is _not_ on root, and /var/run/media/xxx/yyy is actually some other mounted drive/partition. So if you deleted something in there, you will of course NOT gain space on /.
    Just mentioning, to avoid a possible miscomprehension.

  8. #8

    Default Re: Btrfs Not releasing space in root partition (in Opensuse 13.1)

    its in "/srv/www/htdocs/Wtd/Media"

    and yes i have a separate home partition .


    it is very weird my root space getting down every hour and there are no snapshots. its the first time that i see this kind of leak without any reason .

    what if i try

    "btrfs balance start /" in live CD can it help?

  9. #9
    Join Date
    Jun 2008
    Location
    UK
    Posts
    5,500

    Default Re: Btrfs Not releasing space in root partition (in Opensuse 13.1)

    Quote Originally Posted by habernir2008 View Post
    i delete the snapshots by the yast---->snapper tool


    and the type of files that i delete it's just media files and i dont think that it's related to any process

    and i don't change anything in the /etc/snapper/configs/root because i delete all the snapshots (in yast->snapper)

    I see. Can you please run command: btrfs filesystem show, and post the result.

    If you run the command snapper list, do you see any snapshots listed in the terminal, such as the original first one, the last hourly (single), or any pre/post such as from when you use YaST?
    Leap 42.3 (ext4, KDE Plasma 5.8.7) ~ stable
    Manjaro (ext4, Xfce) ~ rolling updates
    Tumbleweed (ext4, KDE Plasma5) ~ managed updates via "Tumbleweed Snapshots" service.

  10. #10

    Default Re: Btrfs Not releasing space in root partition (in Opensuse 13.1)

    well i solve it .

    i delete the snapshot in the dir .snapshots(that it doesn't was in the snapshot list) by:



    Code:
    btrfs subvolume delete /.snapshots/{snapshot number}/snapshot/

Posting Permissions

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