Start a Conversation

Unsolved

This post is more than 5 years old

2260

November 9th, 2009 02:00

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..

8.6K Posts

November 9th, 2009 02:00

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

49 Posts

November 9th, 2009 03:00

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

674 Posts

November 9th, 2009 03:00

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.

49 Posts

November 9th, 2009 03:00

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

8.6K Posts

November 9th, 2009 03:00

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

1 Attachment

49 Posts

November 9th, 2009 04:00

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

8.6K Posts

November 9th, 2009 06:00

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

8.6K Posts

November 9th, 2009 08:00

another neat trick - since the Celerra internally keeps track of a treequota by number and not by name you can just create some in advance, then later rename and size them.

this way you could create some treequota's like spare1,spare2,spare3... or 50GB,100GB,...

then your Wintel admin goes there using \\\C$ - navigates to the right VDM like root_vdm_1 and renames the spare1 directory to its final name

then he can just use the Windows MMC he is familiar with to create the shares he wants

just let the Windows admins do the work :-)

8.6K Posts

November 9th, 2009 08:00

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

49 Posts

November 9th, 2009 08:00

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:

// /CitrixIM ... and not as directory on filesystem for ex

// / /CitrixIM .. hope i am not confusing ..

Pls ignore my negligence , as ia am a newbee to celerra.. just trying to understand how quota works ,,

49 Posts

November 9th, 2009 09:00

Not sure why i cant access the link which u gave me ..

The error i am getting is , ( not sure how to get away with this)

"The content you are trying to access is unavailable . this content may be exoired , the link may be incorrect or you may not be entitled to access it with your account" ...

Also ,
- go into Celerra Manager again and just create the share
If i create the share with same name as directory ( i created before and tuned on Quota ) is there a way where i can link the 2 .. which means the share will be of max size 50 GB (same as directory size)

1 Rookie

 • 

20.4K Posts

November 9th, 2009 09:00

Not sure why i cant access the link which u gave me
..

he error i am getting is , ( not sure how to get
away with this)

"The content you are trying to access is unavailable
. this content may be exoired , the link may be
incorrect or you may not be entitled to access it
with your account" ...


you typically get this if share points to directory that no longer exists, can you double check that ?

Also ,
- go into Celerra Manager again and just create the
share
If i create the share with same name as directory (
i created before and tuned on Quota ) is there a way
where i can link the 2 .. which means the share
will be of max size 50 GB (same as directory size)


you set quota on directory not on share.

8.6K Posts

November 9th, 2009 10:00

Not sure why i cant access the link which u gave me
..

he error i am getting is , ( not sure how to get away with this)

"The content you are trying to access is unavailable this content may be exoired , the link may be
incorrect or you may not be entitled to access it with your account" ...


sorry - sometimes direct links to Powerlink content dont work between acounts
just go to Powerlink Home > Support > Product and Diagnostic Tools > Celerra Tools > Celerra Support Demos
manually if you want to see Video How-Tos


If i create the share with same name as directory (i created before and tuned on Quota ) is there a way
where i can link the 2 .. which means the share will be of max size 50 GB (same as directory size)


you dont have to link them - just use the correct path and the quota will be effective
you didnt even have to delete and re-create the share - whatever is configured on the shared directory (quotas, ACLs) is automtically used

this isnt a share quota - its a directory quota - so no matter which path or share you use to write to it the quota will always be enforced as configured

hope that helps
Rainer

8.6K Posts

November 9th, 2009 14:00

no - the share name and the directory (path name) dont have to be the same - they are independet of each other

that is true for Windows (CIFS) - for Unix NFS access the server's path is what the clients use

Message was edited by:
Rainer

49 Posts

November 9th, 2009 14:00

sorry confused..,are you saying, for windows share name and directory name should be same ?

If i create 2 directories on a filesystem .. say dirA and turn on quota for it say apply hard limit as 50GB and another directory as dirB , hard limit quota as 100GB ... now if i create a share say ShareA , what would be size of this share ( 50 GB or 100 GB ) ..
No Events found!

Top