Re: command to get quota limit

2017-12-04 Thread ST
> > Hello, > > > > what is the command to get btrfs quota limit on certain subvolume? > > btrfs qgroup show -re > > The result is for all subvolumes, then just find the subvolume you need. > I need to use the quota number in a script... is there a more specific command, otherwise I need to

command to get quota limit

2017-12-04 Thread ST
Hello, what is the command to get btrfs quota limit on certain subvolume? Thank you! -- 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

Re: notification about corrupt files from "btrfs scrub" in cron

2017-11-23 Thread ST
> > I have following cron job to scrub entire root filesystem (total ca. > > 7.2TB and 2.3TB of them used) once a week: > > /bin/btrfs scrub start -r / > /dev/null > > > > Such scrubbing takes ca. 2 hours. How should I get notified that a > > corrupt file was discovered? Does this command return

notification about corrupt files from "btrfs scrub" in cron

2017-11-22 Thread ST
Hello, I have following cron job to scrub entire root filesystem (total ca. 7.2TB and 2.3TB of them used) once a week: /bin/btrfs scrub start -r / > /dev/null Such scrubbing takes ca. 2 hours. How should I get notified that a corrupt file was discovered? Does this command return some error code

mail notifications to root once quota limit reached

2017-11-22 Thread ST
Hello, is it possible to get mail notifications to root once quota limit is reached? If not should I file a feature request? Thank you! -- 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

Re: quotas: failure on removing a file via SFTP/SSH

2017-11-22 Thread ST
On Wed, 2017-11-22 at 08:39 +0800, Qu Wenruo wrote: > > On 2017年11月22日 05:00, ST wrote: > > On Tue, 2017-11-21 at 11:33 -0700, Chris Murphy wrote: > >> On Tue, Nov 21, 2017 at 8:29 AM, ST <smn...@gmail.com> wrote: > >>>>>>> I'm trying to us

Re: quotas: failure on removing a file via SFTP/SSH

2017-11-21 Thread ST
> >>> I'm trying to use quotas for a simple chrooted sftp setup, limiting > >>> space for each user's subvolume (now for testing to 1M). > >>> > >>> I tried to hit the limit by uploading files and once it comes to the > >>> limit I face following problem: if I try to free space by removing a > >>>

Re: quotas: failure on removing a file via SFTP/SSH

2017-11-21 Thread ST
On Tue, 2017-11-21 at 20:28 +0800, Qu Wenruo wrote: > > On 2017年11月21日 20:08, ST wrote: > > Hello, > > > > I'm trying to use quotas for a simple chrooted sftp setup, limiting > > space for each user's subvolume (now for testing to 1M). > > > > I

Re: quotas: failure on removing a file via SFTP/SSH

2017-11-21 Thread ST
; On Tue, Nov 21, 2017 at 5:38 PM, ST <smn...@gmail.com> wrote: > > Hello, > > > > I'm trying to use quotas for a simple chrooted sftp setup, limiting > > space for each user's subvolume (now for testing to 1M). > > > > I tried to hit the limit by uploading

quotas: failure on removing a file via SFTP/SSH

2017-11-21 Thread ST
Hello, I'm trying to use quotas for a simple chrooted sftp setup, limiting space for each user's subvolume (now for testing to 1M). I tried to hit the limit by uploading files and once it comes to the limit I face following problem: if I try to free space by removing a file via Linux sftp client

test btrfs scrubbing/get system's total capacity

2017-11-20 Thread ST
in -TB so I can set it? Is there something like btrfs filesystem usage / -t --device_size? to get only the total Device Size information? Thank you! ST -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.or

Re: Several questions regarding btrfs

2017-11-02 Thread ST
On Thu, 2017-11-02 at 19:16 +0300, Marat Khalili wrote: > > Could somebody among developers please elaborate on this issue - is > checking quota going always to be done by root? If so - btrfs might be > a no-go for our use case... > > Not a developer, but sysadmin here: what prevents you from

Re: Several questions regarding btrfs

2017-11-02 Thread ST
> >> There's one other caveat though, only root can use the qgroup ioctls, > >> which means that only root can check quotas. > > > > Only root can check quotas?! That is really strange. How users are > > supposed to know they are about to be out of space?... Is this by design > > so and will

Re: Several questions regarding btrfs

2017-11-02 Thread ST
> >>> > >>> Ok. I'll use more standard approaches. Which of following commands will > >>> work with BTRFS: > >>> > >>> https://debian-handbook.info/browse/stable/sect.quotas.html > >> None, qgroups are the only option right now with BTRFS, and it's pretty > >> likely to stay that way since the

Re: Several questions regarding btrfs

2017-11-01 Thread ST
> >>> 3. in my current ext4-based setup I have two servers while one syncs > >>> files of certain dir to the other using lsyncd (which launches rsync on > >>> inotify events). As far as I have understood it is more efficient to use > >>> btrfs send/receive (over ssh) than rsync (over ssh) to sync

Re: Reasonable amount of snapshots

2017-11-01 Thread ST
On Wed, 2017-11-01 at 19:17 +0800, Qu Wenruo wrote: > > On 2017年11月01日 19:04, ST wrote: > > Hello, > > > > I read in different places that one should keep amount of snapshots low > > - around 15-20. My question - is this limitation on total number of >

Reasonable amount of snapshots

2017-11-01 Thread ST
Hello, I read in different places that one should keep amount of snapshots low - around 15-20. My question - is this limitation on total number of snapshots on the system or only on related (parent<->child) chain of snapshots? What I want to do is the following: create (and then rotate) last 7

Re: Several questions regarding btrfs

2017-10-31 Thread ST
Thank you very much for such an informative response! On Tue, 2017-10-31 at 13:45 -0400, Austin S. Hemmelgarn wrote: > On 2017-10-31 12:23, ST wrote: > > Hello, > > > > I've recently learned about btrfs and consider to utilize for my needs. > > I have sever

Several questions regarding btrfs

2017-10-31 Thread ST
Hello, I've recently learned about btrfs and consider to utilize for my needs. I have several questions in this regard: I manage a dedicated server remotely and have some sort of script that installs an OS from several images. There I can define partitions and their FSs. 1. By default the

Several questions regarding btrfs

2017-10-31 Thread ST
Hello, I've recently learned about btrfs and consider to utilize for my needs. I have several questions in this regard: I manage a dedicated server remotely and have some sort of script that installs an OS from several images. There I can define partitions and their FSs. 1. By default the