No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>


To have a better experience, please upgrade your IE browser.


How to Automatically Mount IP SAN Resources in the S5100 Storage Device by Using the Script?

Publication Date:  2012-07-20 Views:  37 Downloads:  0
Issue Description
The Linux server version is SUSE 9 SP3.
The storage device is the S5100.
The storage system uses the IP SAN network and has a total of 30 TB capacity and 19 LUNs. LUN applications are formatted the xfs file systems. 19 LUNs are automatically mounted to 19 file directories.
After the /etc/fstab parameter in the mounted configuration file is changed and the system is restarted, file systems cannot be automatically mounted.
Alarm Information
Handling Process
Method 1:
Step 1  Modify the system startup script. Change the vi /etc/init.d/rc parameter in the SUSE 9 SP3 OS.
Step 2  Add /bin/mount -a at end of the line to remount file systems after the system is started.
Method 2:
Step 1  The script file contains the following content (only five LUNs are listed as an example):
   mount   /dev/sdb  /recordfile01
     mount   /dev/sdc  /recordfile02
     mount   /dev/sdd  /recordfile03
     mount   /dev/sde  /recordfile04
     mount   /dev/sdf  /recordfile05
Step 2  Suppose that the directory of the script is /mnt/. Change the right of the script to enable all users to execute the script after the system is restarted.
chomd   777  /mnt/
Step 3  Enable the system to automatically execute the script in the /mnt/ directory after system startup.
Change the parameter in the SUSE 9 SP3 OS.
Add /bin/sh  /mnt/ at the end of the line.
Step 4  Test whether the system automatically mounts file systems after restart.
After the Linux OS is restarted, run the mount command to check that all file systems have been automatically mounted. The following messages are displayed:
/dev/sdb on /recordfile01 type xfs (rw)
/dev/sdc on /recordfile02 type xfs (rw)
/dev/sdd on /recordfile03 type xfs (rw)
/dev/sde on /recordfile04  type xfs (rw)
/dev/sde on /recordfile05  type xfs (rw)
Disks are automatically mounted.
Root Cause
1. The configuration file can be automatically mounted.
2. After the system is restarted, the iSCSI service of the Linux OS has not been completely started. Therefore, the LUNs on the S5100 cannot be discovered. The file systems under /etc/fstab are automatically mounted. The newly added file systems fail to be mounted.
Currently, file systems may not be automatically mounted even if the /etc/fstab parameter is changed in actual applications. However, executing the script can solve the problem.