Step Action
1 Login to Unisphere:
(If you are not already logged in to your “Student Desktop”) Connect to your “Student Desktop” via your VDC connection.
From your Student Desktop, open a browser and login to Unisphere on your assigned VNX using the VNX Address (Control Station) and the user credentials: sysadmin/sysadmin with Scope Global selected.
2 Export a file system for the NFS protocol:
From the navigation bar drop-down list, select your VNX.
Navigate to Storage > Shared Folders > NFS
Click Create and enter the following information in the Export window:
Choose Data Mover: Data Mover File System: File System 1
Path: /File System 1
Root Hosts: Linux Host address
Click OK.
The NFS Exports page displays the exported path of the file system.
Minimize the Unisphere window.
3 Mount the file system:
From your Student Desktop, use PuTTY to open an SSH to the Linux Host Address.
Log into the host with the following credentials:
logon as: root
password: emc2Local!
From the terminal window, create a local directory to mount the file system that you have exported via NFS. Type the following:
cd /
mkdir /fs1
Check the contents of your /fs1 directory.
cd /fs1 ls –al
The directory listing should show that the new directory is empty. In a subsequent lab step the directory will be used as a mountpoint for mounting the top-level of an exported file system from the VNX.
NFS mount this directory to the exported file system on your Data Mover. Type the following:
cd /
mount Data Mover Address:/File System 1 /fs1 df (confirm that the mount is listed)
cd /fs1 ls –al
Note: By default a new directory is empty. Therefore, when you created your
Step Action 4 Create user directory on file system
Confirm that you are at /fs1 directory using pwd command.
pwd /fs1
List the content of the directory by running the following command:
ls – la
The directory is no longer empty. When in the directory you are redirected to the remote file system mounted to the directory. Notice that the .etc and lost+found directories are present. These directories are structure present on the top of the VNX file system and should not be disturbed.
Create a new directory and name it engineering.
mkdir engineering
Change the permissions on this directory to 775. This means read, write, and execute for the owner and group, and read and execute for others.
chmod 775 engineering
Change the owner of engineering directory to epallis.
chown -R epallis engineering
Change the group of engineering directory to engprop.
chgrp -R engprop engineering
Verify the new permissions on the directory.
ls –l
drwxrwxr-x. 2 epallis engprop 80 Oct 11 14:21 engineering
5 Export a file system at sub-directory level:
Go back to your Unisphere session.
Navigate to Storage >Shared Folders > NFS Create NFS and click Create.
Create a new NFS export using the following information:
Choose Data Mover: Data Mover Choose File System: File System 1 Path: /File System 1/engineering Read / Write Hosts: Linux Host Address
Click OK.
6 Mount file system at sub-directory level:
From the SSH session, mount the new file system export following the steps shown below. Remember you should be logged in as root in order to mount a file system.cd /
mkdir /engdir (this directory will be used as a mountpoint)
mount Data Mover Address:/File System 1/engineering /engdir df
ls –l | grep engdir
drwxrwxr-x. 2 epallis engprop 80 Oct 11 14:21 engdir
Notice that the permissions on the new directory engdir are the permissions you setup earlier: 775 read, write, and execute for the owner and group. And Read and execute for others.
Step Action 7 Test directory permissions -owner:
Using PuTTY, open another SSH session to the Linux Host address and login with the following credentials:
login as: epallis
password: emc2Admin!
Change directory to engdir.
cd /engdir ls –al
Can you see the directories .etc and lost+found? _______________
You should not see them because the file system has been exported on the sub-directory level.
Create a new file and name it ownerfile and obtain a listing of the directory.
touch ownerfile ls -l
Were you able to create a new file? __________________
You should be able to create the new file because epallis is the owner of this directory.
From the ls output, who is the file owner? _______________
What group is associated to the file? ____________________
8 Test directory permissions - group:
Using PuTTY, open another SSH session to the Linux Host address and login with the following credentials:
login as: eplace
password: emc2Admin!
Change directory to engdir and create a new file. Name it groupfile and obtain a listing of the directory.
cd /engdir
touch groupfile ls -l
Were you able to create a new file? ______________
You should be able to create the new file because eplace belongs to the engprop group which is the directory group.
From the ls output, record the owner and group associated to the groupfile.
_____________________________________________________________
Using PuTTY, open another SSH session to the Linux Host address and login with the following credentials:
login as: swoo
password: emc2Admin!
Change directory to engdir. Create a new file and name it swoofile.
cd /engdir touch swoofile ls -l
Were you able to create a new file? _____________________
Were you able to obtain a listing? ___________________
You should not be able to create the new file because the user swoo is neither the directory owner nor belongs to the engprop group. However, swoo still can read and execute.
Step Action 9 Lab cleanup:
Exit the SSH sessions to the Linux Host address for users: swoo, eplace, and epallis by running the exit command. Leave the existing SSH session for the root user open.
exit
From the SSH session for the root user, unmount and delete mountpoints. Then exit the SSH session.
cd /
From Unisphere, unexport the file system by navigating to Storage >
Shared Folders > NFS.
Multiple select the /File System 1 and the /File System 1/engineering exports and click the Delete button. Click OK to complete the operation.
10 Lab cleanup – Delete File System:
Navigate to Storage > Storage Configuration > File Systems.
Select File System 1 and click the Delete button.
Click OK to complete the operation.
Note: Deleting the file system removes its mountpoint and the associated meta volumes, stripe and slice volumes. This space has been returned to the Storage Pool for re-use.
Step Action 1 Create a new file system:
In Unisphere, navigate to Storage > Storage Configuration > File Systems
Click Create and enter the following information:
Create From: Storage Pool File System Name: File System 2 Storage Pool: File Pool
Storage Capacity: 10 GB
Auto Extend Enabled: unchecked Thin Enabled: unchecked
Slice Volumes: checked File-level Retention: off
Deduplication Enabled: unchecked
Vmware VAAI nested clone support: unchecked Data Mover (R/W): Data Mover
Mount Point: Default
Click OK.
2 Export the newly created file system with root privileges:
Navigate to Storage > Shared Folders > NFS and click Create.
Enter the following information:
Choose Data Mover: Data Mover File System: File System 2
Path: /File System 2
Root Hosts: Linux Host Address
Click OK to complete the operation.
Step Action 3 Mount file system:
From your Student Desktop, use PuTTY to open an SSH to the Linux Host Address.
Log into the host with the following credentials:
logon as: root
password: emc2Local!
From the command prompt, make a local directory to mount the exported file system. Type the following:
cd /
mkdir /fs2
mount Data Mover Address:/File System 2 /fs2 df
From the df output verify that the VNX File System 2 export is mounted on the Linux host fs2 directory.
Change to the /fs2 directory and create a new directory called student.
cd /fs2
mkdir student chmod 777 student cd student
echo “THIS IS A TEST” > File
4 Export the file system at the sub-directory level:
Go back to your Unisphere session and export the File System 2 file system at the sub-directory level.
Navigate to Storage > Shared Folder > NFS and click Create. Define the export as follows:
Choose data Mover: Data Mover File System: File System 2
Path: /File System 2/student
Read-only Hosts Peer Linux Host Address Read/Write Hosts: Linux Host Address
Click Ok to complete the operation.
5 Mount the file system at the sub-directory level:
From your existing PuTTY session to Linux Host Address, create a new directory and mount the NFS export.
cd /
mkdir /student
mount Data Mover Address:/File System 2/student /student
Step Action
6 Mount NFS export to a directory in the Peer Linux Host:
From your Student Desktop, open another PuTTY session to the Peer Linux host (Peer Linux Host Address) and login with the Peer Linux Root Credentials.
Create a new directory on the Peer Linux host named Student number.
cd /
mkdir /Student number
Mount the above directory to the file system that you exported in the previous step.
mount Data Mover IP Address:/File System 2/student /Student number
df (Confirm that your export is visible)
7 Test root privileges:
Create a user file in Student number of the Peer Linux host cd /Student number
touch file
Do you have write permissions? _______________ . You should not be able to create a new file because the file system has been exported as read only to this particular host.
8 Unmount the directory and logout from the Peer Linux host:
Unmount /Student number and exit from the your PuTTY ssh session to the Peer Linux host.
9 Create a user file in the mounted directory in the primary Linux host:
From the PuTTY ssh session to the Linux Host Address create a user file in the student directory.
cd /student touch newfile
Do you have write permissions? _____________. You should be able to create a new file because the file system has been export as read write to this particular host.
10 Lab Cleanup:
Umount and delete mountpoints and exit from the PuTTY ssh session to the Linux Host (Linux Host Address).
cd /
From Unisphere delete the exports for File System 2 by navigating to Storage >
Shared Folders > NFS.
Multiple-select the NFS exports /File System 2 and /File System 2/student and click Delete.
Next, navigate to Storage > Storage Configurations > File Systems and delete File System 2.
Close Unisphere.
End of Lab Exercise