2 exporting the shared directory, 3 restarting the nfs server, 4 mounting the nfs on a remote linux pc – Kontron AM4530 User Manual
Page 34: 3 setting-up iscsi target, 1 exporting the shared device, 2 specifying ip addresses for initiators, 3 restarting the iscsi target, Setting-up iscsi target

21
www.kontron.com
4.4.2.2
Exporting the Shared Directory
The following command will specify the mounting point to be used as NFS and will set the options.
# echo “/mnt/disk1 *(rw,no_root_squash,sync,no_subtree_check)” >> /etc/exports
4.4.2.3
Restarting the NFS server
Use the following command to restart the NFS server:
# /etc/init.d/nfsd restart
4.4.2.4
Mounting the NFS on a Remote Linux PC
1 Make sure a NFS server is running on a remote machine
2 Create a folder for mounting the remote NFS:
# mkdir /mnt/nfs
3 Mount the remote NFS :
# mount 192.168.100.1:/mnt/disk1 /mnt/nfs
4.4.3
Setting-up iSCSI Target
4.4.3.1
Exporting the Shared Device
To share /dev/sda, add the following lines to the /etc/ietd.conf file:
Target iqn.2001-04.com.example:storage.disk2.sys1.xyz
IncomingUser
OutgoingUser
Lun 0 Path=/dev/sda,Type=fileio
Alias Lun1
4.4.3.2
Specifying IP Addresses for Initiators
For accessing iqn.2001-04.com.example:storage.disk2.sys1.xyz, add allowed IP addresses for initiators in
the initiators.allow file. Example
iqn.2001-04.com.example:storage.disk2.sys1.xyz 192.168.100.1
4.4.3.3
Restarting the iSCSI Target
After changing the settings restart the iSCSI target using the following command:
# /etc/init.d/iscsi-target restart