clustermode cifs homedirectories

1.

cifs home-directory search-path add -vserver vs2 -path /vs2vol1
cifs home-directory search-path show
Vserver Position Path
----------- -------- -----------------
vs2 1 /vs2vol1
2. Create a home directory share.
cifs share create -vserver vs2 -share-name "~%w" -path "%w"
-share-properties oplocks,browsable,changenotify,homedirectory
cifs share show –vserver vs2
3. Using the Windows command line, access the vol1 share from a CIFS client.
net use
Status Local Remote Network
-----------------------------------------------------
Y: \\ntapvs2\rootdir Microsoft Windows Network
Z: \\ntapvs2\vol1 Microsoft Windows Network
z:
dir
Volume in drive Z is vol1
Volume Serial Number is 8000-0402
Directory of Z:\
07/08/2011 01:26 PM <DIR> .
07/08/2011 01:26 PM <DIR> ..

4. Create the user directories under the home-directory search path, making sure that the home
directory names match the pattern that was specified when the home directory share was
created.
md administrator
dir
Remember that one share can service all of the home directories that match the specified pattern.
Volume in drive Z is vol1
Volume Serial Number is 8000-0402
Directory of Z:\
07/08/2011 01:26 PM <DIR> .
07/08/2011 01:26 PM <DIR> ..
07/08/2011 01:26 PM <DIR> administrator
5. Use the Notepad application to create a simple text file called adminfile.txt so that there is
something in the home directory.
dir administrator
Volume in drive Z is vol1
Volume Serial Number is 8000-0402
Directory of Z:\administrator
07/08/2011 01:26 PM <DIR> .

 

6. Map a drive to the home-directory share and verify the contents.
net view \\ntapvs2
net use * \\ntapvs2\~administrator
Drive X: is now connected to \\ntapvs2\~administrator.
X:
dir
Volume in drive X is ~Administrator
Volume Serial Number is 8000-0405
Directory of X:\
07/08/2011 01:26 PM <DIR> .
07/08/2011 01:26 PM <DIR> ..
07/08/2011 02:06 PM 13 adminfile.txt
1 File(s) 13 bytes
2 Dir(s) 199,090,176 bytes

 

This entry was posted in netapp. Bookmark the permalink.

Comments are closed.