Quota with Sun Cluster

Do you like to use quota with Sun Cluster 3.1?

First of all take care of the following restrictions:


  • You can use quota only within SUNW.HAStoragePlus resource.

  • You can use it only with a failover filesystem (FFS).

  • Quotas are not working on global mounted filesystems.

To configure the quota you need to add the mount option “quota” or “rq” to the FFS in the /etc/vfstab. Furthermore you need to configure the SUNW.HAStoragePlus for the FFS.


Simple example:

  1. Register the resource type
    # scrgadm -a -t SUNW.HAStoragePlus

  2. Create a resource group
    # scrgadm -a -g FFSq-rg

  3. Add filesystem to vfstab
    # vi /etc/vfstab (on all nodes)
    /dev/md/nfsset/dsk/d0 /dev/md/nfsset/rdsk/d0 /quotafs ufs 2 no logging,rq

  4. Create resource for HAStoragePlus
    # scrgadm -a -j hastp-rs -g FFSq-rg -t SUNW.HAStoragePlus -x FileSystemMountpoint=/quotafs -x AffinityOn=TRUE

  5. Switch the resource group online
    # scrgadm -Z -g FFSq-rg

  6. Configure the quotas
    # touch quotas
    # chmod 600 quotas
    # edquota -v USER
    # quotaon -av

  7. Test the switchover of the resource group
    # scswitch -z -g FFSq-rg -h

After the switch of the filesystem /quotafs the quota will be started automatically from the SUNW.HAStoragePlus resource. To configure your setup of the quota you can refer to the quota manpage.


Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

I'm still mostly blogging around Solaris Cluster and support. Independently if for Sun Microsystems or Oracle. :-)

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today