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>

Reminder

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

upgrade

How to Partition LUNs of the S5100 With Scripts in Linux?

Publication Date:  2012-07-20 Views:  88 Downloads:  0
Issue Description
Normally, 20 to 40 LUNs are configured on a corporation-level storage device. Manually configuring these LUNs on the service server is inefficient and error-prone. To improve efficiency, configuring these LUNs with scripts is recommended.
Alarm Information
None
Handling Process
for i in `lsscsi|grep "S5100"|awk '{print $6}'` do fdisk $i << EOF n p 1 w EOF done
Root Cause
Execute the lsscsi command to view all SCSI devices, including the S5100 and S1200 that support the iSCSI protocol. Execute the grep command to filter out the S5100 from listed devices. Execute the awk command to retrieve the device name. The procedure for configuring LUNs is as follows: 1. Execute the fdisk command with the n parameter to create LUNs. 2. Execute the fdisk command with the p parameter to create the primary LUN. 3. Execute the fdisk command with the l parameter to create a partition that contains all resources. 4. Press Enter. 5. Press Enter. 6. Press Enter. 7. Execute the fdisk command with the w parameter to create the partition list.
Suggestions
Use the attachment of this case as the partitioning script. When you create partitions on other Huawei Symantec storage devices, pay attention to the display after the lsscsi command is executed and choose appropriate filtering keywords.

END