On 2017年11月21日 00:50, ST wrote: > Hello, > > 1. is there a tool that I can use to test btrfs scrubbing? Namely I need > to "damage" a file, i.e. change it without changing its meta > information, so I can see how scrubbing performs... Is there something > like this? Btrfs-corrupt-block, which is not compiled by default. And not well documented. > > > 2. I want to use Ansible to set btrfs quota on a /home subvolume as say > 0.8*TotalCapacityOfRoot and then assign to it individual users' > subvolumes with certain (smaller) quatos. Quota only works on subvolumes. Although you could do it using multi level qgroups. Using higher level qgroup, 1/0 for example, as a big pool and then assign real subvolume qgroup to that pool. However, current qgroup will bring big performance overhead, especially for balance and snapshot deletion. Although not sure what Ansible is and if it uses btrfs quota. > 2.1 Is it OK to rely on ansible_facts? Does it has correct information > about btrfs-based "/" total capacity? Not sure about ansible at all. > 2.2 If not, is there a raw command to get TotalCapacityOfRoot 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?\ What is the meaning of TotalCapacityOfRoot? Device size? Fs size? Thanks, Qu > > Thank you! > ST > > -- > To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html >
Attachment:
signature.asc
Description: OpenPGP digital signature
