Change Clariion SP IP address – without SP Reboot!

Oh no, your network has updated and you have to change the IP address of your storage processors on your Clariion series array!!  I’ve done this on two separate CX SAN arrays without an issue. Follow these steps and you wont have a problem. This will work on a CX, CX3 and CX4 series storage array. 

First you need to download the Clariion CLI Software. In my scenario I am connecting to the SP’s on a Windows host. There are also downloads for *nix, HP-UX, Solaris, etc.

Download CLI Tools

If you dont have the CLI tools installed on a management box in your datacenter, now is the time to do it. If you have the CLI tools installed, you can skip this.

If you have an EMC SAN you should have access to Powerlink.

  • Download the Navisphere CLI Software for your respective OS.
  • Install on the machine that you will be connecting to the SP’s from.
  • Follow the default install steps.

Storage Domain Steps

Start by removing the storage system from a domain (if you dont know what this means or your SAN is in it’s own domain skip this step).

If the storage system to be reconfigured is the Master of a domain that contains other storage systems, assign a new master and remove the storage system to be reconfigured from its domain as follows:

  • Change the domain master:
    • Use Navisphere Manager to connect to one of the other arrays in the domain.
    • From the Navisphere Manager main menu, select File > Set Up Domain > Select Master. The Configure Domain dialog box appears.
    • In the Select Master window, highlight the new domain master and click OK

Note: If you are not logged into the new domain master, you may be asked to log into the array to be set as the domain master before the operation completes.

  • Remove the storage system from the domain:
    • Use Navisphere Manager to connect to one of the other arrays in the domain.
    • From the Navisphere Manager main menu, select File > Set Up Domain > Configure Domain. The Configure Domain dialog box appears.
    • In the Selected Systems field, highlight the storage system whose SP IP addresses you want to change, and click the arrow to send it to the Available Systems field.
    • Click Apply, and then click OK.
    • Exit Navisphere Manager.

If the storage system to be reconfigured is part of a domain that contains other storage systems, remove the storage system to be reconfigured from its domain as follows:

  • Use Navisphere Manager to connect to one of the other arrays in the domain.
    • From the Navisphere Manager main menu, select File > Set Up Domain > Configure Domain.  The Configure Domain dialog box appears.
    • In the Selected Systems field, highlight the storage system whose SP IP addresses you want to change, and click the arrow to send it to the Available Systems field.
    • Click Apply, and then click OK.
    • Exit Navisphere Manager.

Reset Security

Reset the security and domain information for SP A as follows:

  • Open a web browser and go to the setup page for SP A:

http://<Current_IP_Address_of_SP_A>/setup

    • Scroll to the bottom of the screen and click Destroy Security and Domain Information.
    • A warning screen will appear.  Select Yes and set click Submit to reset the security and domain information for SP A.
    • Wait for the management server to stop and then restart.
    • Go back to the setup page for SP A:

http://<Current_IP_Address_of_SP_A>/setup

    • Scroll down and click Restart Management Server.
    • A warning screen will appear.  Select Yes and click Submit to restart the management server.
    • Repeat the previous step to reset the security and domain information for SP B.

After the management server has been restarted on SP B, the array’s security and domain information will be in an un-initialized state, similar to the way it is shipped from the factory.

Change the IP

  • Open a command prompt
  • cd to the directory where the Navisphere naviseccli executable is installed (ie C:\Program Files\EMC\Navisphere CLI)
  • Run the following command based on your configuration (the x.x.x.x is your old SP IP address, the y.y.y.y is the new IP and gateway). If you are not changing gateways, then remove the -gateway y.y.y.y portion.
naviseccli -h x.x.x.x -user admin -password myPass -scope 0 networkadmin
 -set -address y.y.y.y -gateway y.y.y.y
  • You will get a prompt similar to this based on the commands:
Changing the IPv4 Address on SP A, Port 0, Virtual Port 0 from 192.168.1.60 to 192.168.10.60
Changing the IPv4 Gateway Address on SP A, Port 0, Virtual Port 0 from 192.168.1.1 to 192.168.10.1
This operation will cause a management server restart!
Do you wish to continue? (y/n) y
  • Hit “y” to commit the changes.
  • At this point you may have lost connectivity to your SP. One of two things will happen:
    • If it’s on the same segment, once the management server reboots you should be able to connect.
    • If it’s on a different network segment, you will probably have to change the VLAN assignment of the port. Instructions are below.

Change the VLAN

If you are switching VLAN’s, you will need to update the access port assignment that the SP plugs into. (The following is for Cisco devices).

  • Log into the switch
  • If you aren’t sure where the SP plugs into run these commands to find out.
  • Switch#conf t
  • Switch(config)#interface gi 2/10
  • Switch(config-if)#switchport access vlan 50

Troubleshooting

If your peer IP isnt updating, follow these steps:

  • Log into https://spa/setup
  • Scroll down and click Restart Management Server. No need to change the Peer IP in the GUI!

Finish up

  • Log into Unisphere with https://spa
  • Re-initialize global security by clicking Yes at the first prompt.

  • Add your old admin user credentials.

If you are using Unisphere you are done!! Document your changes and grab a coffee!!

Final steps if you are using Navisphere:

  • From the Navisphere Manager main menu, select File > Set Up Domain > Select Master. The Select Master dialog box appears.
  • Highlight the IP address of SP A and click OK.
Change Clariion SP IP address – without SP Reboot!

Format and Mount a new drive in RHEL (or any RedHat based Linux)

The first step is adding the disk. You can either do this by attaching a local drive to the server, zone a SAN drive to it or to add a virtual disk through VMWare. Either way the process for formatting and mounting will be the same.

1. Make sure you have privileged rights either by sudo or logging in as root.

2. Type fdisk -l

  • This will show you the physical disks detected by the OS. As you can see /dev/sda is the primary disk that the OS was installed to and it is already formatted with ext3 (Id 83).
  • /dev/sdb is the new disk that the OS has detected. This is not formatted and does not have any partitions.

3. Since /dev/sdb is the assigned device name–that is what we will format.

In this mode you can hit M at any time if you need help

4. We are creating a new partition. To do this, type N

5. Since this is a new “physical” disk, I am going to make it a primary partition, it is not a partition on an existing disk. To do this all I need to type is p.

6. It will then ask you what partition number you want to assign the disk. Anything in the range that it will allow will work. Linux allows you 4 primary partitions, after that they have to be extended.  Since this is the first partition on that disk assign it 1. This will make the partition /dev/sdb1.

7. Use defaults for the rest of the settings:

8. Type (p). This will show you the partition you just created.

9. When you are all done, type (w) to save your changes. If you do not do this, everything that you have done will not take effect.

10. If you enter df –h you will still not see the new partition you created. Why? Because it does not have a filesystem. You will have to create one.

11. Enter fdisk –l, you will see the new partition you created. The operating system labeled the device as /dev/sdb1 so this is what we will format.

12. To do so we need to run the mke2fs command. Enter the /sbin/mke2fs -j /dev/sdb1 command. (-j is just ext2 with journaling which is ext3). You will see the following if you did everything correctly.

13. Now that the filesystem is created, you need to mount it. To start this process you need to first create a directory to mount to. mkdir /u01 is what I do. If you need to mount it to something specific you can.

14. Now you need to label the partition. Do this by entering e2label /dev/sdb1 /u01. 

15.  Now you can finally mount the filesystem! To do this just enter mount /dev/sdb1 /u01. This will modify the /etc/mtab file.

16. After you enter the command if you type df –h you will see the new drive.

17. The filesystem will not auto mount the drive when the OS gets rebooted. To do this modify the /etc/fstab file. Use the bottom line from the example below as a reference.

Format and Mount a new drive in RHEL (or any RedHat based Linux)

Disk Alignment (Server 2003)

Windows 2003 does not align MBR disks with most SAN subsystems by default. This will cause extra I/O operations, decreasing performance. To reduce extra I/O it is best to align the disk prior to using it. The following example is provided for EMC storage, but it will work for most other vendors as well.
Windows 2008 servers are aligned by default, you can skip this if you are using Server 2008.
To align the disk you need to use the “diskpart” utility.
Open a command window and run diskpart
C:\>diskpart
List the disks so you can find the one you need to align. Look for the size of the disk you just mounted.
DISKPART> list disk
Select the blank disk that you need to align
DISKPART> Select disk x
If the disk will be greater than 2TB you need to make it a GPT disk. Do this in Diskpart:
DISKPART> convert gpt
Align the disk by creating a partition with an offset.
DISKPART> create partition primary align=1024
Once the disk is aligned you can format the disk. If it is a SQL drive, the best practice unit size is 64k (vs. the default of 4096 bytes)
Disk Alignment (Server 2003)