pdubey2
1 Nickel

Applying quota on share level in a Filesytem

Hi,

I have a single filesystem of 400 GB , my requirement is to create 2 shares say share A and share B, with share A of size 350 GB and share B of size 50 GB .. how can i apply quota on share level ??

i have already created the filesystem and 2 shares on it , just finding way to apply this Hard quota so one share (share A) doesnt steal space from other share (share B) if say share A runs out of space which would be 350GB..
Tags (2)
0 Kudos
19 Replies
Rainer_EMC
5 Rhenium

Re: Applying quota on share level in a Filesytem

sounds like you are looking for the teequota functionality

just create your treequota's before you create the share (i.e. the directory doesnt exit)

If you already have data there, rename your two share directories, create treequota's and copy the data there then adjust or recreate the shares
0 Kudos
pdubey2
1 Nickel

Re: Applying quota on share level in a Filesytem

Hi Rainer,


Here is my FS and the shares on it , VDM name VDM_KNTNAS458
server_export VDM_KNTNAS458 -P cifs -l -all
VDM_KNTNAS458 :
share "fs_KNTNAS458$" "/fs_KNTNAS458" umask=022 maxusr=4294967295 netbios=SVAAKNTNAS458
share "CitrixIM" "/fs_KNTNAS458/CitrixIM" umask=022 maxusr=4294967295 netbios=SVAAKNTNAS458
share "CitrixProfiles" "/fs_KNTNAS458/CitrixProfiles" umask=022 maxusr=4294967295 netbios=SVAAKNTNAS458
..

I want ,
CitrixIM of 50 GB hard qouta
CitrixProfiles of 350 GB

Can you tell me how do i apply the quota and verify if the quota is applied correctly ..

Here is the error when i tried to apply Tree quota from GUI.. by specifying the path as /fs_KNTNAS458/CitrixIM for CitrixIM share .. i dont have any data on this share yet..

2009-11-09 10:27:47: ADMIN: 6: Command succeeded: file quota / type=tree report=/.etc/rpt_file
2009-11-09 10:27:48: ADMIN: 6: Command succeeded: file quota / type=tree report=/.etc/rpt_file showtrees
2009-11-09 10:28:41: ADMIN: 6: Command succeeded: file quota / type=group report=/.etc/rpt_file path='/'
2009-11-09 10:28:42: ADMIN: 6: Command succeeded: file quota / type=tree report=/.etc/rpt_file showtrees
2009-11-09 10:29:02: CMD: 6: CmdReplicatev2List::initialize taskId:0002901046830182_0_5753:4294973049
2009-11-09 10:53:12: ADMIN: 6: Command succeeded: file quota /root_vdm_2/fs_KNTNAS458 config report=/root_vdm_2/fs_KNTNAS458/.etc/config_file
2009-11-09 10:58:12: ADMIN: 6: last message repeated 1 times
2009-11-09 11:05:00: ADMIN: 6: Command succeeded: file quota /root_vdm_2/fs_KNTNAS458 type=tree report=/root_vdm_2/fs_KNTNAS458/.etc/rpt_file
2009-11-09 11:05:00: ADMIN: 6: Command succeeded: file quota /root_vdm_2/fs_KNTNAS458 type=tree report=/root_vdm_2/fs_KNTNAS458/.etc/rpt_file showtrees
2009-11-09 11:05:00: CFS: 3: invalid quota command: lookupPath "/root_vdm_2/fs_KNTNAS458/fs_KNTNAS458" failed
2009-11-09 11:05:00: ADMIN: 3: Command failed: file quota "/root_vdm_2/fs_KNTNAS458/fs_KNTNAS458/CitrixIM" type=tree on
0 Kudos
Peter_EMC
3 Silver

Re: Applying quota on share level in a Filesytem

009-11-09 11:05:00: CFS: 3: invalid quota command:
lookupPath "/root_vdm_2/fs_KNTNAS458/fs_KNTNAS458"
failed


I think you applied the wrong path.
do not specify the filesystem name in the path, because it is already choosen. In your example the path in the GUI would be /CitrixIM

And I think you have to delete the directories CitrixIM and CitrixProfiles first.
Because the treequota command will create them.
0 Kudos
Rainer_EMC
5 Rhenium

Re: Applying quota on share level in a Filesytem

lookupPath "/root_vdm_2/fs_KNTNAS458/fs_KNTNAS458" failed
2009-11-09 11:05:00: ADMIN: 3: Command failed: file quota
"/root_vdm_2/fs_KNTNAS458/fs_KNTNAS458/CitrixIM" type=tree on


I think your Problem is that you are entering the path wrong - it has to be relative to the file system

so just select the VDM when you specify which data mover to create the treequota on, then the fs and then enter /CitrixIM in the Path box

see attached picture

what the Celerra Manager actually does can be seen in /nas/log/cmd_log:
2009-11-09 12:33:31.011 db:201:17500:S: nas_quotas -tree -on -fs id=287 -path /CitrixIM
2009-11-09 12:33:32.590 db:201:17500:S: nas_quotas -tree -edit -fs id=287 -block 10240:NoLimit -inode NoLimit:NoLimit -comment 1
0 Kudos
pdubey2
1 Nickel

Re: Applying quota on share level in a Filesytem

Here is the error from "cat /nas/log/cmd_log" , i deleted the CitrixIM and then tried to apply the Tree quota however still cant creat quota ...

2009-11-09 11:36:52.396 db:201:26103:S: nas_quotas -tree -on -fs id=40 -path /CitrixIM
2009-11-09 11:41:02.042 VDM_KNTNAS458:201:29289:S: server_export VDM_KNTNAS458 -Protocol cifs -unexport -name CitrixIM -option netbios=SVAAKNTNAS458
2009-11-09 11:41:02.239 VDM_KNTNAS458:201:29289:E: server_export VDM_KNTNAS458 -Protocol cifs -unexport -name CitrixIM -option netbios=SVAAKNTNAS458
2009-11-09 11:42:10.647 db:201:30406:S: nas_quotas -tree -on -fs id=40 -path /CitrixIM
0 Kudos
pdubey2
1 Nickel

Re: Applying quota on share level in a Filesytem

Though i have deleted the share CitrixIM and trying to create it , i get the error message as duplicate entry

"2009-11-09 11:57:47: UFS: 3: treeQuotaOn_Internal: error creating tree quota dir CitrixIM on fs , status DuplicateEntry "



2009-11-09 11:57:47: ADMIN: 6: Command succeeded: file quota /root_vdm_2/fs_KNTNAS458 type=tree report=/root_vdm_2/fs_KNTNAS458/.etc/rpt_file showtrees
2009-11-09 11:57:47: UFS: 6: Quota limits will be checked on block usage, with block size of 8192 bytes
2009-11-09 11:57:47: UFS: 3: treeQuotaOn_Internal: error creating tree quota dir CitrixIM on fs , status DuplicateEntry
2009-11-09 11:57:47: CFS: 3: quotaOn_Internal: failed to init entry: status InvalidArgument
2009-11-09 11:57:47: ADMIN: 3: Command failed: file quota "/root_vdm_2/fs_KNTNAS458/CitrixIM" type=tree on
0 Kudos
Rainer_EMC
5 Rhenium

Re: Applying quota on share level in a Filesytem

deleting the share will not delete the directory - you need to connect to the CIFS server like through C$ and delete that directory

also you cant have two treequota's on that file system with the same name
0 Kudos
pdubey2
1 Nickel

Re: Applying quota on share level in a Filesytem

Right , after deleting the share thru GUI , directory was still present on the FS , which was deleted by accessing C$ and by my wintel admin ... post which i was able to create the directory with hard quota on it ..

Now whatever i created is a directory CitrixIM (50 GB tree quota) on Filesystem with tree quota enabled on it , how do i create a share now ..as i dont want users to access the filesystem and then the directory which might give them access to entire filesystem , i want to present this as a share , for ex:

//<CIFSSERVER>/CitrixIM ... and not as directory on filesystem for ex

//<CIFSSERVER>/<FS_name>/CitrixIM .. hope i am not confusing ..

Pls ignore my negligence , as ia am a newbee to celerra.. just trying to understand how quota works ,,
0 Kudos
Rainer_EMC
5 Rhenium

Re: Applying quota on share level in a Filesytem

sure - you have several options

- go into Celerra Manager again and just create the share

- since you had already done it you can also just fetch the line from the log like "grep server_export /nas/log/cmd_log | grep Citrix" and execute it again

- or ask your Windows admin - he can just use the Windows MMC - add the normal Manage Shares plugin, connect to the Celerra CIFS server and browse through it to the directory.
This way he could create the share with exactly the name and permissions that he wants to

see Powerlink Home > Support > Product and Diagnostic Tools > Celerra Tools > Celerra Support Demos
http://powerlink.emc.com/km/appmanager/km/secureDesktop?internalId=0b014066803f7771
for Video's on how to do things with Celerra
0 Kudos