Adding RHEL Hosts to a MD3000i

23
RHEL Hosts Installation of the Red Hat Enterprise Linux (RHEL) iSCSI Initiator and the Modular Disk Storage Manager Software This procedure shows the steps necessary to install the RHEL iSCSI Initiator software and the Modular Disk Storage Management (MDSM) software and discover the storage array. Installation of the iSCSI Initiator Complete the following steps to install the iSCSI Initiator software. Installation of the iSCSI Initiator 1. The Linux iSCSI initiator and all appropriate patches are installed using the MD3000i Resource CD. Red Hat and Novell have not picked up necessary changes to the initiator that Dell has provided in the version distributed on the Resource CD. Insert the CD and follow the on-screen instructions to install. Rename the file /etc/iscsi.conf to /etc/iscsi.conf.old. Then copy the file iscsi.conf_RHEL4u4 from the MD3000i resource cd to /etc/iscsi.conf. 2. Using VI, open the file / etc / iscsi.conf for editing. 3. Enter the IP addresses of the MD3000i RAID Controller ports as the DiscoveryAddress.

Transcript of Adding RHEL Hosts to a MD3000i

Page 1: Adding RHEL Hosts to a MD3000i

RHEL Hosts

Installation of the Red Hat Enterprise Linux (RHEL) iSCSI Initiator and the Modular Disk Storage Manager SoftwareThis procedure shows the steps necessary to install the RHEL iSCSI Initiator software and the Modular Disk Storage Management (MDSM) software and discover the storage array.

Installation of the iSCSI InitiatorComplete the following steps to install the iSCSI Initiator software.

Installation of the iSCSI Initiator

   1. The Linux iSCSI initiator and all appropriate patches are installed using the MD3000i Resource CD. Red Hat and Novell have not picked up necessary changes to the initiator that Dell has provided in the version distributed on the Resource CD. Insert the CD and follow the on-screen instructions to install. Rename the file /etc/iscsi.conf to /etc/iscsi.conf.old. Then copy the file iscsi.conf_RHEL4u4 from the MD3000i resource cd to /etc/iscsi.conf.

2. Using VI, open the file / etc / iscsi.conf for editing.

3. Enter the IP addresses of the MD3000i RAID Controller ports as the DiscoveryAddress.

Page 2: Adding RHEL Hosts to a MD3000i

Installation of the iSCSI Initiator

4. Start the iSCSI service, with service iscsi start.

5. Set the iSCSI service to startup automatically on boot. Also, verify that it will start in run levels 3 and 5.

Step # 2: Discover targetsNow use iscsiadm command, which is a command-line tool allowing discovery and login to iSCSI targets, as well as access and management of the open-iscsi database. If your storage server IP address is 192.168.1.5, enter:# iscsiadm -m discovery -t sendtargets -p 192.168.1.5# /etc/init.d/iscsi restart

Page 3: Adding RHEL Hosts to a MD3000i

Installation and Configuration of MDSM on a Red Hat Linux HostComplete the following steps to install and configure MDSM on a Red Hat Linux Host.

Installation of MDSM

   1.

Configure the NIC ports on the server to maintain the same IP address on reboot. Edit the settings with vi.

2. The edited file will resemble the following screenshot.

3. Perform the following steps to verify configuration.

Page 4: Adding RHEL Hosts to a MD3000i

Installation of MDSM

4. Insert the MD3000i Resource CD and run the install.sh script from the Linux folder.

5. Choose option 4 - Install MD3000i Documentation and select the location for installation.

Page 5: Adding RHEL Hosts to a MD3000i

Installation of MDSM

6. Return to the main menu and choose option 2 - Install MD3000i Storage Manager.

7. The installer will launch the GUI.

Page 6: Adding RHEL Hosts to a MD3000i

Installation of MDSM

8. Choose the language and click OK.

9. Click Next.

Page 7: Adding RHEL Hosts to a MD3000i

Installation of MDSM

10.

Accept the license agreement and click Next.

11.

Choose the installation directory and click Next.

Page 8: Adding RHEL Hosts to a MD3000i

Installation of MDSM

12.

Select Typical (Full Installation) and click Next.

13.

A warning message will appear instructing the user to install the RDAC for multipath support. With this release the RDAC is now a DKMS package. It will be installed using option 3 from the install script

Page 9: Adding RHEL Hosts to a MD3000i

Installation of MDSM

14.

Click Install.

15.

Installation continues.

Page 10: Adding RHEL Hosts to a MD3000i

Installation of MDSM

16.

Click Done. Do not install the multi-path driver at this time. MPP will be installed later in this procedure.

17.

NOTE: The array will default to requesting DHCP-assigned IP addresses for the management ports on the controllers. If the dynamically assigned addresses are not in the same subnet with the management host, the discovery process will not find the array. The discovery of arrays is only on the host's subnet through port 2463. If a DHCP response is not

Page 11: Adding RHEL Hosts to a MD3000i

Installation of MDSM

acknowledged, the controllers will default to 192.168.128.101 for controller 0, and 192.168.128.102 for controller 1. Once the units have had IP addresses manually set, the units will no longer request dynamic IP assignment and will continue to operate at the manually set addresses. If these set addresses are not known, the IP addresses of the controllers will need to be retrieved with the password reset cable.

If the host is remotely connecting to the array, then a default gateway will be needed. If one is not present when this command is run, then the array should be directly connected to the host and set on the same subnet as the storage to proceed with setup. The IP addresses can then be changed to suit the installation, and then the host can be connected remotely. Using the same parameters for Hyperterminal that are used for password reset, issue the following command at the shell interface.

-> netCfgShow

The response will appear with the following structure:

18.

Launch the MDSM GUI. A window should immediately appear asking the user to choose between Automatic discovery or Manual.

Page 12: Adding RHEL Hosts to a MD3000i

Installation of MDSM

19.

If the array is on the same subnet as the host, you may select the option button for Automatic and click OK. In this scenario, we will choose Manual.

20.

Select Out-of-band management, and enter the IP addresses of the RAID Controllers' management ports. In-band storage management is not enabled until an iSCSI session is set up and operating.

Click Add.

NOTE: After discovery, it is recommended that you reconfigure the out-of-band management IP addresses of the RAID controllers to be on your management network. After changing them, you will need to rediscover the array at the new IP addresses.

Page 13: Adding RHEL Hosts to a MD3000i

Installation of MDSM

21.

Click No.

22.

On the iSCSI tab in MDSM, click on Configure iSCSI Host Ports.

Page 14: Adding RHEL Hosts to a MD3000i

Installation of MDSM

23.

Select each port on the raid controllers and enter the appropriate IP address for each to match the configuration set in the iscsi.conf file. Select Enable ICMP PING responses for testing. It may be turned off later if desired. Click OK when complete.

Page 15: Adding RHEL Hosts to a MD3000i

Installation of MDSM

24.

Start the iSCSI service at the command line with the command service iscsi start.

25.

Restart the MDSM agent at the command line. Make sure to wait a few seconds for the start to complete. It should look similar to the screenshot below.

Page 16: Adding RHEL Hosts to a MD3000i

Installation of MDSM

26.

Verify the iSCSI connections have been established using the command iscsi-ls.

Page 17: Adding RHEL Hosts to a MD3000i

Installation of MDSM

27.

On the Configure tab in MDSM, select Configure Host Access (Automatic)

28.

Select the host name and move it to the right. Click ok to complete

Page 18: Adding RHEL Hosts to a MD3000i

Installation of MDSM

29.

Install the RDAC software. Ensure the kernel-devel / kernel-smp-devel package is installed - rpm -qa | grep kernel Insert the MD3000i resource cd and run the install.sh script from the linux folder.

30.

Choose option 3 - Install Multi-pathing driver. This will install the following packages:

dkms-2.0.16-1 (This is not installed if it or a later version of DKMS is already present) iscsi_sfnet linuxrdac-99.01.B6.65-dkms

Page 19: Adding RHEL Hosts to a MD3000i

Installation of MDSM

31.

The dkms install of the RDAC driver installs the drivers, makes a new initrd, and modifies the grub.conf file to boot to the MPP kernel. Here is an example grub.conf after the RDAC is installed.

Page 20: Adding RHEL Hosts to a MD3000i

Installation of MDSM

32.

Reboot the host.

33.

To test the installation, configure two Virtual Disks in MDSM and map them to the host. Use the hot_add utility to rescan for new devices. Verify the LUNs are seen on one path using the SMdevices command.

Page 21: Adding RHEL Hosts to a MD3000i

Installation of MDSM

close this windowPRESENTING LUNS

CREAR PARTICION

Type fdisk -l to display the partitions.Type fdisk /dev/sdb to start the partition process for the first LUN.

Type n to start creating a new partition. Choose p for a primary.Choose the partition number, the first cylinder and the last cylinder.Type w to write the partition.

CREAR FILE SYSTEM

Type mke2fs -j /dev/sdb1 to create the filesystem. ó mkfs -ext3 /dev/sdb1

MONTAR EL FILE SYSTEM

Create a directory for the partition to be mounted to:mkdir /mnt/lun1Mount the partition to the folder:mount -t ext3 /dev/SDB11 /mnt/lun1

MONTAR EL FILE SYSTEM EN ARRANQUE

Edit the /etc/ fstab and add persistent mounts for your LUNs.

Page 22: Adding RHEL Hosts to a MD3000i