[03:15] is there anyway to limit a folder size? [03:15] I'm sorry [03:15] Directory [03:16] Like if I want to limit a site added in apache2 [03:16] lunatiq: This is somewhat of a hack, but you might be able to make an image file, format it with a filesystem, make a loop device with it, and then mount that device into the desired directory. [03:16] That would effictively limit the size of the directory's contents to the size of the image file. [03:17] That doesn't sound easy [03:17] Something like "dd if=/dev/zero of=./mysite.img bs=1G count=4 && mkfs.ext4 ./mysite.img" to make the image. [03:18] Then I *think* "sudo mount ./mysite.img /path/to/size_limited_directory" will mount it. [03:18] You might need to use some losetup command first though. [03:19] Lemme test it real quick (it sounds complicated but this should be easy enough) [03:19] lunatiq: I /think/ you can achieve that with ext4 quotas, see https://wiki.archlinux.org/title/Disk_quota [03:20] On Ubuntu 22.10, just making the file, formatting it, and then mounting it directly works for me. [03:20] Might impact performance though. sdeziel's disk quota stuff might be better. [03:21] lunatiq: if the directory in question is on btrfs or zfs, there are better ways to restrict space usage [03:21] arrayboltXE: I don't know, I quite like your loop dev idea to be honest :) [03:22] lol that was just the first thing that came to mind :P It *will* have some overhead, since it will make an ext4 filesystem on top of whatever other FS is already in use, which comes with a (hopefully slight) storage cost and likely a (hopefully slight) performance hit. I would imagine disk quotas would be faster since they only have to deal with one filesystem. [03:46] I'm trying to take note from what I learned yesterday about netplan and adding additional IP. I had to add the IP to the YAML and then a label. I made my nic:0 so could I essentially go from nic:0-999 ? [03:46] such as [03:46] - 123.1.1.1/32 [03:47] label: nic:0 [03:47] - 123.1.1.2/32 [03:47] label: nic:1 [03:47] etc [03:47] to [03:47] label: nic:999 [03:48] or 256 I mean [03:48] 1-256 [03:53] lunatiq: what do you use the label for? [03:53] virtual nic [03:53] virtualization [03:54] It's what I was told had to bbe done annd it worked [03:54] OK, I thought it was just a label tied to an IP address [03:55] lunatiq: the man page says you can go up to 15 chars long for the label so that should be enough for your numbering scheme === chris15 is now known as chris14 === arrayboltXE_ is now known as arrayboltXE