Tag Info

Hot answers tagged

14

If you're forced to use ext3, then using LVM is probably your best solution. Create a new filesystem per project. That would look something like this: # Create a 10g filesystem for "project1" in volume group "vg0" lvcreate -L 10g -n project1 vg0 # Create an ext3 filesystem. mke2fs -j /dev/vg0/project1 # Mount it (obviously you would want this in ...


8

This is one of those areas where my views are contrary to the mainstream. We do not have disk quotas, in fact we encourage users to get data onto the servers and out of file cabinets. We have been doing this for a while, in preparation for implementing document management. Disk is inexpensive, and has been for a while. None of the alternatives is more ...


8

Some of the considerations: Mail limits on other email systems, not everyone likes receiving 150MB attachments. Bounces will annoy YOUR users (and consume their quota, if any), and generate calls. Any mailbox size quotas you have in place. Large attachments make hitting them a LOT easier. Large-attachment virus scanning overhead. If your mailer is ...


8

If its time you want to measure then websense have a web filtering product that may do what you want. It allows you to create custom filtering groups of sites and assign a time-based user quota to them, which may do it for you. However, websense isn't cheap (though there is a trial version iirc) so this is a lot of money to spend on what is ultimately a bad ...


7

Take a look at the quota command here: http://linux.die.net/man/1/quota quota For example: quota -u user1 System response: Disk quotas for user user1 (uid 501): Filesystem blocks quota limit grace files quota limit grace /dev/hda6 992 50000 55000 71 10000 11000 quota report Report on all users ...


6

Block is normally of size 1 kilobytes nowadays, but it might be also 512 bytes - check this yourself. 6094452 is how many blocks of disk space you currently use, the first 2147483648 is the maximum you are expected to normally use (again in blocks, note it translates to 2 TB, not to 10 GB); you can grow beyond, but only temporarily; the second 2147483648 ...


6

Here are the steps you should take to set this up: VSFTPd Create the /etc/vsftd.conf file #nano /etc/vsftpd.conf listen=YES anonymous_enable=NO local_enable=YES dirmessage_enable=YES xferlog_enable=YES connect_from_port_20=YES chroot_local_user=YES secure_chroot_dir=/var/run/vsftpd pam_service_name=vsftpd rsa_cert_file=/etc/ssl/certs/vsftpd.pem ...


6

I have a 10MB attachment limit set on my Exchange server for the following reasons. First of all, those huge 20MB PowerPoint presentations that people send around are taking up space on my server which would be better placed on a network drive/in SharePoint (this isn't necessarily an issue if your mail server only delivers mail rather than storing it too). ...


6

You can only limit mailboxes by size, not item count in Exchange. Is there any reason you care how many items are there, as long as the quota is maintained? Here is some light reading on Exchange quotas.


6

The performance degradation occurs when your zpool is either very full or very fragmented. The reason for this is the mechanism of free block discovery employed with ZFS. Opposed to other file systems like NTFS or ext3, there is no block bitmap showing which blocks are occupied and which are free. Instead, ZFS divides your zvol into (usually 200) larger ...


5

Essentially, you need to tally the size of all files owned by you. A quick powershell hack: [Int] $intSize = 0; get-childitem -literalpath <rootdir> -recurse | foreach-object{ if ( ($_ | get-acl).owner -eq "<yourpc_or_domain>\<yourid>") { $intSize += $_.length } }; "Total size : " + $intSize; ...where <rootdir> is the root of the ...


5

I think this will be harder than you think, and I really don't know how you're going to "count" usage. For example, when at work I normally have the Server Fault main page and chat room open in Firefox. The problem is, just because it's open in Firefox all day making requests (the chat room makes A LOT of Ajax requests polling for new messages) it does not ...


5

A group quota is the maximum amount of disk space that can be used by all files owned by a particular group. There is no attempt to divide it up by users, and in practice there would be no sensible way to do that.


5

Okay, I've managed to get it figured out, so I'm going to answer my own question to the best of my knowledge. The original error was caused by the fact that the quota format vfsv0 is unable to support quotas >= 4TiB. Quota has a (relatively) new format to support quotas >4TiB, called vfsv1. You need at least kernel 2.6.33 for kernel support for vfsv1. You ...


5

Yes. You need to keep free space in your pool. It's mainly for copy-on-write actions and snapshots. Performance declines at about 85% utilization. You can go higher, but there's a definite impact. Don't mess with reservations. Especially with NFS. It's not necessary. Maybe for a zvol, but not NFS. I don't see the confusion, though. If you have 10T, Don't ...


4

The answer really depends on how you envisage your backup drives being used. If you're imagining using it as a hot spare, I'd recommend using all your drives and using RAID6, so you have the ability to lose two drives before you risk losing data by having a third disk failure. If you were just using it to make a backup in case of a filesystem issue or ...


4

Yes. Look at XFS filesystem and project quota. Other filesystem do not offer this feature.


4

You can remount /tmp with bind and noexec,nodev,nosuid options but not in one step. Due to some linux kernel VFS layer limitations you have to first bind-mount it and then remount with proper options. root@utemp:/# /tmp/test.sh uid=0(root) gid=0(root) groups=0(root) root@utemp:/# mount -o bind,noexec /tmp /tmp root@utemp:/# ./tmp/test.sh uid=0(root) ...


3

If you don't rely on group permissions, you can use a different UNIX group for each "quota directory", then set sgid bit on each directory (so created files and directories will belong to the group of the directory instead of the primary group of the creator user), and use group quotas.


3

I was a sysadmin at a school and all students had network accounts. I wanted to encourage the use of computers so I removed the quota limits on the home directories. For most students this went well but some filled up their directory quickly with gigs of video and mp3. Contrary to what you expect this wasn't pirated stuff but their own video footage and ...


3

I would try removing the word "defaults" from that options list. You don't want the default options, you want all the stuff you provided. Remove that, and see if it will remount properly. So that first line should look like this: /dev/xvda2 / ext3 errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 0


3

For each filesystem with quotas enabled/on where is the actual quota information stored? See e.g. the quotaon manpage. There will be files named .quota* in the filesystem root directory, which contain the necessary information (.quota.user,.quota.group, .quota.ops.user, .quota.ops.group). Say user foo creates a new file on /home. How does the ...


3

It will depend entirely on the users and what they're using the e-mail accounts for. Your average soccer mom will have different needs than someone who is e-mailing 20MB CAD drawings all day long. Also, are they POPing mail out and removing it from the server, or are they using IMAP or webmail where the mail will stay stored on the server forever? I can ...


3

Ideally you will have /home as a separate partition. If you do, try this: Find the filesystem for /home, for example: mount | grep "/home" /dev/sda3 on /home type ext3 (rw,noatime,errors=remount-ro) mount -o remount,quota /home quotacheck /dev/sda3 edquota username Set the soft and hard quotas in there. This will only apply for the current boot, to make it ...


3

Repquota should be almost instant, however doing a quota check won't be. On a server with about 500k files 4 disk RAID0 it took around half an hour, however that was with fairly high disk load (50% or so). It does depend on the number of files, not so much disk size as disk speed. repquota reports based on the quota file (which is updated when quota runs, i ...


3

If you want Exchange to automatically enforce a limit, I think you have to resort to monitoring the size of the folders. The Exchange Team Blog has an Article about Finding High Item Count Folders using this PowerShell command: Get-Mailbox | Get-MailboxFolderStatistics | Where {$_.ItemsInFolder -gt 5000} | Sort-Object -Property ItemsInFolder -Descending | ...


3

I heard of cases where the IWAM_ user has a quota set and you may be hitting it.


3

Check out cgroups http://en.wikipedia.org/wiki/Cgroups cgroups (control groups) is a Linux kernel feature to limit, account and isolate resource usage (CPU, memory, disk I/O, etc.) of process groups. Demo from RedHat http://www.youtube.com/watch?v=KX5QV4LId_c


3

You can use the mountpoint command. The -d switch prints the major/minor device number of the mount point to stdout. In your case, compare the output of mountpoint -d /home/lars to mountpoint -d /home/bob. [root@Fruity ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 9.9G 2.5G 7.0G 26% / /dev/sda1 97M ...


3

simfs is a sign of OpenVZ in use, it means your VE (container) is overused its disk quota.



Only top voted, non community-wiki answers of a minimum length are eligible