vSAN storage system allows you to share data between different
virtual machines, either through a network file system (NFS or SMB)
or through a remote virtual disk (iSCSI)
The shared storage systems most widely used and supported by
almost all operating systems are iSCSI, NFS and SMB. Each runs its
own protocol and connector type.
iSCSI works by transporting block-level data between an iSCSI
initiator on a server and an iSCSI target on a storage device. The
iSCSI protocol encapsulates SCSI commands and assembles the data
in packets for the TCP/IP layer.
Network File System (NFS) is a distributed file system protocol
that allows a user on a client computer to access files over a
computer network much like local storage is accessed. Used mainly
on UNIX/Linux systems.
Each communication protocol uses different connection tools or
client software, which are installed on virtual machines.
To connect your virtual machine to a VSAN you need to know the
IP address and the name of the VSAN. This information can be
obtained from the "Connection" column of the Virtual SAN table.
Connect to the desired target, using the name provided
previously by the "iscsiadm -m discovery" command, replace
<vSANIP> with the IP address of your VSAN and
<vSanNAME> with its name.
Check if the iSCSI disk is recognized and note the name of the
device (/dev/sdX)
#fdisk -l
Now you may wish to proceed to partition the disk (fdisk),
formatting (mkfs) and mount (mount)
If you want the iSCSI disk is mounted automatically at
startup, you must add a line to /etc/fstab file,
replacing <device> with the corresponding device to your
hard iSCSI
In Linux systems it is required to install the package samba-client
to explore, open and copy the files. And the package cifs-utils
to mount the remote filesystem.
#yum install samba-client #yum install cifs-utils
With smbclient you can transfer files similar to FTP
system. (do not forget to replace "SAMBA" with the name of your
VSAN)
#smbclient //<smbIP>/SAMBA (If system asks for a password just press ENTER)