linux powerpath 설치 – CentOS6

사용환경
CentOS Linux release 6.5 64bit, Minimal version
EMC powerpath

1. naviagentcli 설치

naviagentcli rpm 패키지가 있는 디렉토리로 이동하여, 패키지를 설치한다.

# yum install ./naviagentcli-6.26.32.0.72-1.noarch.rpm
Loaded plugins: fastestmirror
S...
Installed:
  naviagentcli.noarch 0:6.26.32.0.72-1

Complete!

navisphere agent를 실행한다.

# /etc/init.d/naviagent start
Starting Navisphere agent:                                 [  OK  ]

2. powerpath 설치
rpm 패키지가 있는곳으로 이동하여, 아래 커맨드를 실행한다.

# yum install ./EMCPower.LINUX-5.7.1.00.00-029.RHEL6.x86_64.rpm
Loaded plugins: fastestmirror
Setting up Install Process
Examining ./EMCPower.LINUX-5.7.1.00.00-029.RHEL6.x86_64.rpm: EMCpower.LINUX-5.7.1.00.00-029.el6.x86_64
Marking ./EMCPower.LINUX-5.7.1.00.00-029.RHEL6.x86_64.rpm to be installed
...
...
NOTE:License registration is not required to manage the CLARiiON AX series array.

*** IMPORTANT ***
Please check the following configurations before starting PowerPath:
   - Add _netdev to /etc/fstab mount options for PowerPath pseudo devices.
   - Ensure netfs service is started.
     netfs service is needed to mount devices with _netdev option.
   - Set LVM filter in /etc/lvm/lvm.conf according to PowerPath recommendation.
   - Blacklist all devices in /etc/multipath.conf and stop multipathd service.
   - Install PowerPath license(s) and ensure that policy is not set to BasicFailover.
   - If no license is available, ensure that only one HBA port is active in the host.
     PowerPath supports only single-HBA configuration when unlicensed.
Refer to PowerPath Installation and Administration Guide for details.

  Verifying  : EMCpower.LINUX-5.7.1.00.00-029.el6.x86_64                                              1/1

Installed:
  EMCpower.LINUX.x86_64 0:5.7.1.00.00-029.el6

Complete!

3. powerpath license key 등록

# emcpreg -install

4. powerpath 실행

# /etc/init.d/PowerPath start
 

5. 스토리지에서 LU할당하고 powermt 커맨드로 확인한다.

스토리지에서 LUN할당이 안된 상태이면, 아래처럼 device not found 메시지가 나온다.

# powermt config
# powermt display
Device(s) not found.

LUN을 할당하고, 할당한 lun을 scan 한다.

# echo "1" > /sys/class/fc_host/hostX/issue_lip

잠시 후, powermt config 커맨드로 디바이스를 만들어주면, 아래와 같이 디스크가 인식됨을 볼 수 있다.

# powermt config
# powermt display
CLARiiON logical device count=2
==============================================================================
----- Host Bus Adapters ---------  ------ I/O Paths -----  ------ Stats ------
###  HW Path                       Summary   Total   Dead  IO/Sec Q-IOs Errors
==============================================================================
   1 qla2xxx                       optimal       4      0       -     0      2

아래는 실제로 디스크가 어떻게 설정되었는지를 보여준다.

스토리지 LUN0 이 , 리눅스의 /devsdb, /dev/sdd 로 잡혔으며(2 path이므로), emcpowera 라는 이름으로 설정되었으며, LUN1은 emcpowerb 라는 이름으로 설정되었다.

<pre class="lang:sh highlight:0 decode:true " ># powermt display dev=all
Pseudo name=emcpowera
CLARiiON ID=APM00063706620 [Linux]
Logical device ID=600601607F121A00FA518858817AE411 [LUN 0]
state=alive; policy=CLAROpt; queued-IOs=0
Owner: default=SP B, current=SP B       Array failover mode: 1
==============================================================================
--------------- Host ---------------   - Stor -  -- I/O Path --   -- Stats ---
###  HW Path               I/O Paths    Interf.  Mode     State   Q-IOs Errors
==============================================================================
   1 qla2xxx                sdb         SP A1    active   alive      0      1
   1 qla2xxx                sdd         SP B1    active   alive      0      1

Pseudo name=emcpowerb
CLARiiON ID=APM00063706620 [Linux]
Logical device ID=600601607F121A00BAEA18252080E411 [LUN 1]
state=alive; policy=CLAROpt; queued-IOs=0
Owner: default=SP A, current=SP A       Array failover mode: 1
==============================================================================
--------------- Host ---------------   - Stor -  -- I/O Path --   -- Stats ---
###  HW Path               I/O Paths    Interf.  Mode     State   Q-IOs Errors
==============================================================================
   1 qla2xxx                sde         SP B1    active   alive      0      0
   1 qla2xxx                sdc         SP A1    active   alive      0      0</pre> 

6. 사용
이렇게 설정된 디스크중 emcpowerb를 사용하면 된다. lvm 볼륨으로 만들어서 사용해도 되고, 일반 디스크처럼 사용해도 된다.

화일시스템 생성전 blkid

# blkid
/dev/sda1: UUID="6382e344-2171-4755-881c-b016ed006a64" TYPE="ext4"
/dev/sda2: UUID="ca470579-109f-4e05-8774-43a05c5b5968" TYPE="swap"
/dev/sda3: UUID="76645a7b-e902-4845-be0f-17af6549636a" TYPE="ext4"
/dev/sdb: UUID="bff99383-e4bd-45ff-8506-b3aaf4c13cc7" TYPE="xfs"
/dev/emcpowera: UUID="bff99383-e4bd-45ff-8506-b3aaf4c13cc7" TYPE="xfs"
/dev/sdd: UUID="bff99383-e4bd-45ff-8506-b3aaf4c13cc7" TYPE="xfs"

emcpowerb 에 xfs 타입의 화일시스템을 만든다.

# mkfs -t xfs /dev/emcpowerb
meta-data=/dev/emcpowerb         isize=256    agcount=4, agsize=6553600 blks
         =                       sectsz=512   attr=2, projid32bit=0
data     =                       bsize=4096   blocks=26214400, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0
log      =internal log           bsize=4096   blocks=12800, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0

# blkid
/dev/sda1: UUID="6382e344-2171-4755-881c-b016ed006a64" TYPE="ext4"
/dev/sda2: UUID="ca470579-109f-4e05-8774-43a05c5b5968" TYPE="swap"
/dev/sda3: UUID="76645a7b-e902-4845-be0f-17af6549636a" TYPE="ext4"
/dev/sdb: UUID="bff99383-e4bd-45ff-8506-b3aaf4c13cc7" TYPE="xfs"
/dev/emcpowera: UUID="bff99383-e4bd-45ff-8506-b3aaf4c13cc7" TYPE="xfs"
/dev/sdd: UUID="bff99383-e4bd-45ff-8506-b3aaf4c13cc7" TYPE="xfs"
/dev/sdc: UUID="80cba7b3-c059-46c5-8d81-1d1ccb3a99c6" TYPE="xfs"
/dev/sde: UUID="80cba7b3-c059-46c5-8d81-1d1ccb3a99c6" TYPE="xfs"
/dev/emcpowerb: UUID="80cba7b3-c059-46c5-8d81-1d1ccb3a99c6" TYPE="xfs"

화일시스템을 만들고, blkid를 보면, emcpowerb와 /dev/sdc, /dev/sde가 각각 같은 blkid를 가지는것을 확인 할 수 있다.

끝으로, 만들어진 화일시스템을 마운트하여 사용하면 된다.

#  mount /dev/emcpowerb /mnt
# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda3       131G  1.9G  122G   2% /
tmpfs           2.9G     0  2.9G   0% /dev/shm
/dev/sda1       190M   45M  136M  25% /boot
/dev/emcpowerb  100G   33M  100G   1% /mnt

답글 남기기

Your email address will not be published.

%d bloggers like this: