Изменение IP адресов Celerra Control Station и Storage Processors

Вчера возникла задача по изменению IP адресов на Celerra и интегрированном CLARiiON.

В связи с тем, что Celerra поставлялась без интегрированного свитча, то техники воткнули её в свитч общей сети не особо разбираясь. И вот настал момент, когда нужно было перенести все линки в отдельную сеть управления, изолированную от основной физически.

Поиск в интернете внятных инструкций не дал, а поиск на powerlink.emc.com – это как искать книги Дарьи Донцовой в библиотеке конгресса… В общем на это ушло почти два часа и еще немного времени, чтобы исправить возникшие в процессе ошибки.

Смена IP вкратце

Краткий план по смене IP адресов, чтобы случайно не упустить его из виду. Это common sense, но все же лучше перестраховаться, чем потом искать serial кабель для подключения к массиву.

  1. Изменить IP адреса Storage Processors
  2. Переключить Storage Processors в новую сеть
  3. Изменить IP адрес Celerra Control Station
  4. Переключить Control Station в новую сеть
  5. Сделать Rescan All в Unisphere, если Celerra не увидела Storage Processor

ВНИМАНИЕ: данную операцию следует производить во время минимальной активности, так как Storage Processors будут перезагружены после смены IP. Хоть это и не остановит доступ клиентов к хранилищу, но все же стоит подстраховаться.

Подробнее под катом.

Процедура изменения IP адресов Storage Processor

Необходимо подключиться к Celerra Control Station через ssh клиента.

В качестве пользователя лучше использовать nasadmin, а затем сделать su и получить права root.

Стандартный пароль пользователей root и nasadmin в Celerra: nasadmin

Для изменения IP адреса Storage Processor  используется скрипт /nas/sbin/clariion_mgmt tool и я использовал как раз его.

P.S. в некоторых версиях NAS команда может выглядеть вот так: /nas/sbin/CLARiiON_mgmt tool

1. Проверить работает ли Proxy ARP на обоих Storage Processor и к ним можно подключиться по указанным IP адресам.

Ранее я упоминал о том, что нужно подключаться от пользователя nasadmin, это связано с тем, что у root переменная окружения NAS_DB не установлена, а у nasadmin она есть. И из-за этого можно получить следующую ошибку:

~]# /nas/sbin/clariion_mgmt -info
Error 1: NAS_DB environment variable not defined

Дубль 2:

nasadmin]# /nas/sbin/clariion_mgmt -info
Public IP address for SPA: x.x.x.71
Public IP address for SPB: x.x.x.72
Start on boot            : yes
Current implementation   : Proxy-ARP
Status                   : Started

Proxy ARP  запущен, судя по статусу, теперь проверим доступность контроллеров.

/nas/sbin/navicli -h х.х.х.71 getagent

и

/nas/sbin/navicli -h х.х.х.72 getagent

В ответ команда возвращает всякую информацию о CLARiiON, вроде Agent Revision, модель и т.п.

2. Выбираем новые IP для контроллеров. Важно чтобы они были свободными

3. Делаем su, получаем права root и используем следующую команду для смены IP контроллеров:

/nas/sbin/clariion_mgmt -modify [ -spa_ip <IP для контроллера А> ] [ -spb_ip <IP для контроллера B> ]

$ /nas/sbin/CLARiiON_mgmt -modify -spa_ip xx.xx.xx.201 -spb_ip xx.xx.xx.202
Checking if running as root…yes
Checking if model is supported…yes
Checking for integrated system…yes
Checking if interface eth3 is configured…yes
Checking if interface eth3:1 is configured…no
Checking if interface eth3:2 is configured…no
Checking if SP (xx.xx.xx.71) is up…yes
Checking if SP (xx.xx.xx.72) is up…yes
Checking if a gateway is setup for eth3…yes
Step 1/14: Setting up Proxy ARP for SPA on Control Station
Adding host specific route for SPA
Adding rules to allow outbound traffic from SPA
Adding ARP entry for SPA
Updating /etc/hosts entry for SPA
Step 2/14: Changing SPA IP address.
Changing SPA IP from xx.xx.xx.71 to xx.xx.xx.20ё (subnetmask 255.255.254.0, gateway xx.xx.xx.1)
Step 3/14: Waiting for SPA to reboot.
Waiting for SPA to go down…………….done
Step 4/14: Waiting for SPA to boot up.
Waiting for SPA to come back up…………………done
Step 5/14: Waiting for CLARiiON software to start on SPA.
Waiting for CLARiiON software to start on SPA…..
Step 6/14: Updating NAS database with SPA IP address.
Adding rules to allow outbound traffic from SPB
Updating SYMAPI database with new CLARiiON IP addresses…done
done
Step 7/14: Removing old Proxy ARP setup for SPA on Control Station
Removing host specific route for SPA
Removing rules that allow outbound traffic from SPA
Removing ARP entry for SPA
Step 8/14: Setting up Proxy ARP for SPB on Control Station
Adding host specific route for SPB
Adding rules to allow outbound traffic from SPB
Adding ARP entry for SPB
Updating /etc/hosts entry for SPB
Step 9/14: Changing SPB IP address.
Changing SPB IP from xx.xx.xx.72 to xx.xx.xx.202 (subnetmask 255.255.254.0, gateway xx.xx.xx.1)
Step 10/14: Waiting for SPB to reboot.
Waiting for SPB to go down……….done
Step 11/14: Waiting for SPB to boot up.
Waiting for SPB to come back up…………………done
Step 12/14: Waiting for CLARiiON software to start on SPB…..
Step 13/14: Updating NAS database with SPB IP address.
Updating SYMAPI database with new CLARiiON IP addresses…done
done
Step 14/14: Removing old Proxy ARP setup for SPB on Control Station
Removing host specific route for SPB
Removing rules that allow outbound traffic from SPB
Removing ARP entry for SPB
done

4. Не забываем переключить контроллеры в новую сеть и проверяем их доступность:

$ /nas/sbin/navicli -h xx.xx.xx.201 getagent
и
$ /nas/sbin/navicli -h xx.xx.xx.202 getagent

Всё, IP изменены.

Данную инструкцию можно найти на powerlink.emc.com по запросу emc216980.

Она применима к следующим продуктам: Celerra NS20, NS20FC, NS40, NS40FC, Celerra NS-120, NS-480, Celerra NS-960, Celerra NX4, CLARiiON CX Series, но при условии что Celerra использует NAS 5.5.31 и выше или любую версию NAS 5.6 и 6.0.

Изменение IP на Celerra Control Station

Этот процесс вообще тривиален. Нужно открыть меню управления Control Station в Navisphere GUI

image

И в появившемся окне просто сменить IP адрес.

После чего нужно переключить Celerra в новую сеть, зайти на новый IP адрес Unisphere и, если массива нет в списке, то нажать кнопку Rescan All Storage Systems

Крайние меры:

Если что-то пошло не так и control station внезапна стала недоступны по сети, то к ней можно подключиться используя serial кабель, который шел в комплекте с Celerra (mini-DB9 null modem cable:Part #038-003-084).

Примечание: Данная процедура работает только с NAS 5.6 и выше

  1. Подключить serial кабель от своего ПК/Ноутбука к верхнему Serial порту на задней стороне CLRARiiON. Порт обозначен значком гаечного ключа.
  2. Открыть HyperTerminal или любой другой удобный Вам клиент и настроить следующие параметры:
    Подключаться используя: COM1 or COM2; Bits per second: 9600 Data bits: 8 Parity: None Stop bits: 1 Flow Control: None
    Проверить что Autodetect и ANSI выбраны в качестве эмуляции терминала.
  3. Нажать на кнопку “Дозвониться” для подключения к консоли Data Mover
  4. настроить вывод команд в консоль:
    CONSOLE>logsys add output console
  5. Далее указываем новый IP адрес через /sbin/ifconfig eth3
  6. Прописываем новые настройки eth3 в /etc/sysconfig/network-scripts/ifcfg-eth3
  7. Важно! Добавляем новый default route  /sbin/route на интерфейс eth3!
  8. Убираем вывод результатов команд из консоли:
    CONSOLE>logsys delete output console
  9. Радуемся возвращенному доступу к Data Mover и перенастраиваем Proxy ARP по инструкции выше через celerra

При написании статьи использованы следующие статьи из базы знаний powerlink: emc234675, emc216980, еще несколько что я не могу снова найти, а так же личный опыт и гугл.


Статья изначально опубликована в блоге volnyanskiy.ru , автор Волнянский Виталий.

 

4 thoughts on “Изменение IP адресов Celerra Control Station и Storage Processors”

  1. Добрый день! у нас ситуация такова есть NS-120 поменяли на управляющей станции айпи и на spa spb через веб интерфейс. после этого спа и спб перестали отвечать(не могу зайти ни по новым адресам ни по старым),на управляющей станции удалось сменить на новый, зашел на управляющую станцию по ssh дал команду /nas/sbin/clariion_mgmt – info и получил вывод что спа спб со старыми айпи и proxy arp status stoped. подскажите может вы знаете как исправить это дело?

  2. Да, проблема знакомая даже на NX4 🙂

    К сожалению у меня сейчас проблемы с доступом к support.emc.com, после переезда с powerlink и точных инструкций, как я это делал дать не могу.
    Но Вы можете попытать удачу сами:
    Вот этот kb использовал я: emc216980 https://support.emc.com/kb/57781
    И пригодится ещё вот этот emc210885 https://support.emc.com/kb/11837

    А если вкратце, то лучше не менять IP, так как в случае проблем потратите довольно много времени на восстановление линков

  3. ребят может кто знает, нашел вот такую вот инструкцию
    Follow these steps to recover the password on the CLARiiON and VNX array.
    You need to create a PPP connection. Below are the steps for Windows 7
    1. Create the COM port modem.

    a. Click Start -> Control Panel -> Phone and Modem.
    b. Click Modem Tab and click add.
    c. On the Install new Modem Pane, select the “Don’t detect my modem” box, then click Next.

    There will be a pause while the models load.

    d. Select Communications cable between two computers, and then click Next.
    e. Select your COM port, click Next, and you are done.

    2. Set up the PPP connection.

    a. Click Start -> Control Panel -> Network and sharing center, click Set up a new connection or network (at the bottom).
    b. On the next screen, select set up a dial-up connection and click Next.
    c. The next screen should list modems and select the “Communications cable between two computers” you created above.
    d. On the next screen type some numeric value for phone number, type the username and password (clariion and clariion!) and give it a name. The above connection should now appear in Network Connections, right-click it and select Properties.

    If “clariion/clariion!” is not accepted as Username and Password, try “Administrator/clariion!” as Username and password. On some storage processors, “clariion1992/clariion1992″ works.

    3. Once the connection is set up, modify the settings as follows:

    a. In the General tab, click configure and set Max speed to 115200 and select enable hardware flow control and Enable modem error control.
    b. In the Options tab, click PPP settings and check top two boxes are selected (LCP extensions and SW compression).
    c. In the Security tab, check Data Encryption is “Optional Encryption (connect even if no encryption)” is set.
    d. In the Networking tab, check Internet Protocol Version 4 is selected.
    e. In the Networking tab, choose Internet Protocol Properties, then the Advanced button. Uncheck “Use default gateway on remote network.”

    Your connection can then be accessed from Network Connections.

    4. Once the PPP connection is established:

    a. Point your browser to this URL: https://192.168.1.1/setup.
    b. Click “Create a New Account.”
    c. Enter a New User name and in the New Password Verification text box, type in the password again.
    d. Point your browser to this URL: http://
    e. Log in to domain using the new username and password.
    f. From Unisphere dashboard, Go to Domain > Manage Global Users
    g. Select the user for which password needs to reset.
    h. Click Modify and Click OK.
    i. Log out and log in to Unisphere with User whose password was changed.

    Note: You also have the option of completely resetting domain security. However, if you select this option, you will destroy ALL domain information, including domain information for the master, other arrays, and portals.

    j. Click “Reset Security” and confirm. (You must reset security on both storage processors [SPs].)
    хочу попытаться подключиться к SPa через микро ком но застрял на пункте 2d , никто не знает какой номер нужно вводить? может там через тире как то или еще есть подвох в чем ниб.??? он мне просто выдает что не могу дозвониться по этому номеру … 🙁

Leave a Reply

Your email address will not be published. Required fields are marked *