Thursday, February 28, 2013

Unified share in VNX


Today I would like to share something which i was not able to find on the manuals, I got a request to share a filesystem on our VNX so that the users using Windows and Linux clients can access the share.

I was searching for ideas and with the help of one of my colleague was able to find a way to do it. So, in order to do this we have to create a Virtual Datamover which will server the data for our Windows client and for the NFS request from Linux clients.

I really liked the concept of EMC Celerra to create a Virtual Datamover (VDMs) which adds more security by letting the clients access the filesystem from VDMs ip and not populate of the physical DMs.

Lets just create a new VDM

[nasadmin@cs0 ~]$nas_server -name VDM01 -type vdm -create server_2

[nasadmin@cs0 ~]$ nas_server -l -a
id      type  acl  slot groupID  state  name
1        1    0     2              0    server_2
2        4    0     3              0    server_3

id       acl  server    mountedfs       rootfs  name
8        0    1         1               1       VDM01

We will create a new pool for this purpose and a new shared filesystem 

[nasadmin@cs0 ~]$nas_pool -create -name clar_r5_media -volumes d7,d8

[nasadmin@cs0 ~]$nas_fs -name unify_fs -create size=800G pool=clar_r5_media

Here we are creating a CIFS server under the VDM and adding it to domain which will let user which are part of the active directory access the filesystem

[nasadmin@cs0 ~]$server_cifs VDM01 -Join compname=cifs01,domain=ad.test.com,admin=Administrator,ou="ou=Computers:ou=EMC Celerra"

There are three simple steps which we have to do once the filesystem is created, creating a mountpoint, mounting the filesystem and exporting it to the clients

Lets just do it for windows clients which will be using CIFS protocol access the files

[nasadmin@cs0 ~]$server_mountpoint VDM01 -create /unify_fs

[nasadmin@cs0 ~]$server_mount VDM01 -option accesspolicy=MIXED_COMPAT unify_fs /unify_fs

[nasadmin@cs0 ~]$server_export VDM01 -Protocol cifs -name unify_fs /unify_fs

Now, lets just do it for Linux clients which will be accessing the share using NFS but before we do that we have to find the root path of the VDM so that we can add it with the shared filesystem

[nasadmin@hct-cs0 ~]$ nas_fs -l |grep VDM01
24        y    1   0     157       root_fs_vdm_VDM01   1

[nasadmin@cs0 ~]$ server_df server_2 root_fs_vdm_VDM01
server_2 :
Filesystem          kbytes         used        avail capacity Mounted on
root_fs_vdm_VDM01
                1907824776         8576   1907816200    0%    /root_vdm_8/.etc

Here's another way to find that

[nasadmin@cs0 ~]$ server_mount server_2 |grep VDM01
root_fs_vdm_VDM01 on /root_vdm_8/.etc uxfs,perm,rw

Now, we can create mountpoint, mount the share and export

[nasadmin@cs0 ~]$server_mountpoint server_2 -create  /root_vdm_8/unify_fs

[nasadmin@cs0 ~]$server_mount VDM01 -option accesspolicy=MIXED_COMPAT unify_fs /root_vdm_8/unify_fs

[nasadmin@cs0 ~]$server_export server_2 -Protocol nfs -name unify_fs /root_vdm_8/unify_fs


[nasadmin@cs0 ~]$ server_export VDM01
VDM01 :
share "unify_fs" "/unify_fs" type=Global umask=022 maxusr=4294967295 netbios=CIFS01


[nasadmin@cs0 ~]$ server_export server_2
server_2 :
export "/root_vdm_8/unify_fs" name="/unify_fs"


That was pretty easy!!

No comments:

Post a Comment