Re: Several questions regarding btrfs

2017-11-06 Thread waxhead
ST wrote: 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

Re: Several questions regarding btrfs

2017-11-02 Thread Andrei Borzenkov
02.11.2017 20:13, Austin S. Hemmelgarn пишет: >> >> 2. I want to limit access to sftp, so there will be no custom commands >> to execute... > A custom version of the 'quota' command would be easy to add in there. > In fact, this is really the only option right now, since setting up sudo > (or

Re: Several questions regarding btrfs

2017-11-02 Thread Austin S. Hemmelgarn
On 2017-11-02 12:28, ST wrote: 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:

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 Austin S. Hemmelgarn
On 2017-11-02 05:09, ST wrote: 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-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 Austin S. Hemmelgarn
On 2017-11-01 13:52, Andrei Borzenkov wrote: 01.11.2017 15:01, Austin S. Hemmelgarn пишет: ... The default subvolume is what gets mounted if you don't specify a subvolume to mount.  On a newly created filesystem, it's subvolume ID 5, which is the top-level of the filesystem itself.  Debian does

Re: Several questions regarding btrfs

2017-11-01 Thread Andrei Borzenkov
01.11.2017 15:01, Austin S. Hemmelgarn пишет: ... > The default subvolume is what gets mounted if you don't specify a > subvolume to mount.  On a newly created filesystem, it's subvolume ID 5, > which is the top-level of the filesystem itself.  Debian does not > specify a subvo9lume in /etc/fstab

Re: Several questions regarding btrfs

2017-11-01 Thread Austin S. Hemmelgarn
On 2017-11-01 10:05, ST wrote: 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

Re: Several questions regarding btrfs

2017-11-01 Thread Lukas Pirl
On 11/01/2017 03:05 PM, ST wrote as excerpted: >> However, it's important to know that if your users have shell access, >> they can bypass qgroups. Normal users can create subvolumes, and new >> subvolumes aren't added to an existing qgroup by default (and unless I'm >> mistaken, aren't

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: Several questions regarding btrfs

2017-11-01 Thread Duncan
ST posted on Tue, 31 Oct 2017 22:06:24 +0200 as excerpted: > Also another questions in this regard - I tried to "set-default" and > then reboot and it worked nice - I landed indeed in the snapshot, not > top-level volume. However /etc/fstab didn't change and actually showed > that top-level

Re: Several questions regarding btrfs

2017-11-01 Thread Austin S. Hemmelgarn
On 2017-10-31 16:06, ST wrote: 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 several questions in this

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 several questions in this regard: > > > >

Re: Several questions regarding btrfs

2017-10-31 Thread Austin S. Hemmelgarn
On 2017-10-31 14:51, Andrei Borzenkov wrote: 31.10.2017 20:45, Austin S. Hemmelgarn пишет: On 2017-10-31 12:23, ST wrote: 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

Re: Several questions regarding btrfs

2017-10-31 Thread Andrei Borzenkov
31.10.2017 20:45, Austin S. Hemmelgarn пишет: > On 2017-10-31 12:23, ST wrote: >> 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 >>

Re: Several questions regarding btrfs

2017-10-31 Thread Austin S. Hemmelgarn
On 2017-10-31 12:23, ST wrote: 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

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