PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > set quota questions
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

set quota questions

Réponse
 
LinkBack Outils de la discussion
Vieux 24/08/2006, 18h48   #1
john_woo@canada.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut set quota questions

Hi,

in my Linux Fedora Enterprise, the df shows

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
190361300 5441648 175249816 4% /
/dev/sda1 101086 10049 85818 11% /boot
none 448464 0 448464 0% /dev/shm

##no info about /home; /tmp; /var; /usr,etc

and

cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 / ext3 defaults
1 1
LABEL=/boot /boot ext3 defaults
1 2
none /dev/pts devpts gid=5,mode=620
0 0
none /dev/shm tmpfs defaults
0 0
none /proc proc defaults
0 0
none /sys sysfs defaults
0 0
/dev/VolGroup00/LogVol01 swap swap defaults
0 0
/dev/hdd /media/cdrom auto
pamconsole,fscontext=system_ubject_r:removable_t ,exec,noauto,managed
0 0
/dev/hdc /media/cdrecorder auto
pamconsole,fscontext=system_ubject_r:removable_t ,exec,noauto,managed
0 0


I'm wondering,

1. how to know which disk the home, usr reside in?
2. how to set/enable disk quotas for /home, /usr
3. if user me has quota limiation, but me mv files into disk which not
quota enabled, did that mean me still have un-limit quota usage

--
Thanks
John
Toronto

  Réponse avec citation
Vieux 24/08/2006, 19h47   #2
Chris Mattern
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: set quota questions

john_woo@canada.com wrote:
> Hi,
>
> in my Linux Fedora Enterprise, the df shows
>
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/mapper/VolGroup00-LogVol00
> 190361300 5441648 175249816 4% /
> /dev/sda1 101086 10049 85818 11% /boot
> none 448464 0 448464 0% /dev/shm
>
> ##no info about /home; /tmp; /var; /usr,etc
>
> and
>
> cat /etc/fstab
> # This file is edited by fstab-sync - see 'man fstab-sync' for details
> /dev/VolGroup00/LogVol00 / ext3 defaults
> 1 1
> LABEL=/boot /boot ext3 defaults
> 1 2
> none /dev/pts devpts gid=5,mode=620
> 0 0
> none /dev/shm tmpfs defaults
> 0 0
> none /proc proc defaults
> 0 0
> none /sys sysfs defaults
> 0 0
> /dev/VolGroup00/LogVol01 swap swap defaults
> 0 0
> /dev/hdd /media/cdrom auto
> pamconsole,fscontext=system_ubject_r:removable_t ,exec,noauto,managed
> 0 0
> /dev/hdc /media/cdrecorder auto
> pamconsole,fscontext=system_ubject_r:removable_t ,exec,noauto,managed
> 0 0
>
>
> I'm wondering,
>
> 1. how to know which disk the home, usr reside in?
> 2. how to set/enable disk quotas for /home, /usr
> 3. if user me has quota limiation, but me mv files into disk which not
> quota enabled, did that mean me still have un-limit quota usage
>


This has nothing to do with the shell. This is an admin question,
crossposting to comp.unix.admin and setting followups there.

1. You have a unitary file system, which is both a common and
reasonable setup for a home system. You don't have a separate
filesystem for /home, /tmp, /var, /usr or just about anything
else. It's all in /, except for a small auxiliary partition
/boot which holds your kernel and a few files associated with
your bootloader.

2. You can't set separate quotas for /home and /usr because
they aren't separate filesystems on your system. You can
only set a quota for /, which will be a quota for your
whole system.

3. If you move files from a filesystem with quotas to one
without, the file will not count against the quota on the
old filesystem (as it no longer on the old filesystem) nor
will it count against a quota on the new filesystem (as
the new filesystem has no quota for it to count against).
Quotas are simply applied to your usage on your filesystems;
they don't follow files around. This, of course, is not much
of a concern on your system, since you only have one filesystem,
so the user is not going to moving files from one filesystem
to another.

BTW, I notice your filesystem is only 4% full. With 190
gigs of disk, you probably won't be running out anytime soon...


Chris Mattern
  Réponse avec citation
Vieux 24/08/2006, 21h09   #3
Bill Marcum
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: set quota questions

On 24 Aug 2006 10:48:57 -0700, john_woo@canada.com
<john_woo@canada.com> wrote:
> Hi,
>
> in my Linux Fedora Enterprise, the df shows
>
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/mapper/VolGroup00-LogVol00
> 190361300 5441648 175249816 4% /
> /dev/sda1 101086 10049 85818 11% /boot
> none 448464 0 448464 0% /dev/shm
>
> ##no info about /home; /tmp; /var; /usr,etc
>

df with no arguments shows the free space for each mounted filesystem.
Free space in a filesystem does not belong to a particular directory.
>
> I'm wondering,
>
> 1. how to know which disk the home, usr reside in?

df /home
df /usr



--
Don't kid yourself. Little is relevant, and nothing lasts forever.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 19h12.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10283 seconds with 11 queries