sys.syphus posted on Wed, 10 Dec 2014 16:54:07 -0600 as excerpted: > I would like to avoid running out of space. is there a way to know that > I am getting close? i'd like to make a script that runs as part of my > bash prompt and lets me know when i am getting close. i know there are > several ways you can run out of space and I'd like to avoid all of them.
With the concerns about your bash prompt registered... btrfs filesystem show ... is a good choice. If you have multiple filesystems you can point show at a device/ mountpoint/label/UUID to get the output for just the one. You'll want to pay particular attention to the individual device lines. Of course you can grep/sed/otherwise-process that down to a single line if desired. If btrfs filesystem show says it's close to out of room, run btrfs filesystem df for more info. There's lots of information on the wiki and in various threads here about interpreting the information these commands output (it takes both commands to get a good picture, but show is good for brief summary, provided you know to look at the device lines not the overall total line), and what to do when necessary to return some balance to the situation. -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html