1. Create a mount point on the Linux host.
# mkdir /mnt/store0
2. Provision filesystem on the PURE dm device using the device-mapped ID.
# mkfs.ext4 /dev/mapper/<device-mapped ID>
where
<device-mapped ID> is the device-mapped ID from step 10.
To enable automatic unmap for our thin-provisioning array, use the discard option when mounting the filesystem:
# mount -o discard /dev/sdb5 /mnt/store0
Optionally, you may use -E discard during formatting to issue a one-time discard:
# mkfs.ext4 -E discard /dev/sdb5
This will cause the RHEL 6.x to issue the UNMAP command, which in turn causes space to be released back to the array for any deletions in that ext4 file system. This only works on Physical RDM datastores, discard will not work on a disk mapped virtually via ESX.
3. Mount PURE dm device to mount point:
# mount/dev/mapper/<device-mapped ID> <mount point>
where
<device-mapped ID> is the device-mapped ID collected from step 10.
<mount point> is the mount point created in step 1.
or
# mount -a
or if you require to mount the partition as read-only:
# mount -o rw /mnt/store0
Verify the partition is mounted (this will also list the options for the mounted partition. i.e. "/dev/sdb5 on /data type ext4 (rw,_netdev)"):
# mount
Confirm that the /mnt/iscsi folder is connected to the partition:
# df -h /mnt/store0
To make iSCSI device mount persistent across reboots, you will need to add an entry in /etc/fstab following RHEL KB.