linux链接存储,Linux服务器连接存储

rpm -ivh EMCpower.LINUX-5.3.1.00.00-111.rhel5.x86_64.rpm

Preparing...  ###########################################

[100%]

1:EMCpower.LINUX

###########################################

[100%]

All trademarks used herein are the property of their

respective owners.

NOTE:License registration is not required to manage the

CLARiiON AX series array.

[root@sabad10955 ~]# powermt config

PowerPath modules are not loaded.

Ensure that the modules are loaded and try

again.

# /etc/init.d/PowerPath start

Starting PowerPath:  done

# powermt config

Warning: license for CLARiiON storage system sup

# emcpreg -add

xxxx-yyy-zzz-fff-ooo-bbb-aaa-rrr

1 key(s) successfully added.

# powermt config

# powermt display

Symmetrix logical device count=0

CLARiiON logical device count=1

Hitachi logical device count=0

Invista logical device count=0

HP xp logical device count=0

Ess logical device count=0

HP HSx logical device count=0

==============================================================================

----- Host Bus Adapters ---------  ------ I/O

Paths -----  ------ Stats ------

###  HW Path  Summary  Total

Dead  IO/Sec Q-IOs Errors

==============================================================================

0 lpfc  optimal

2

0

-

0  0

1 lpfc  optimal

2

0

-

0  0

# powermt display dev=all

Pseudo name=emcpowera

CLARiiON ID=CKM00093100497 [sabad10955_test]

Logical device ID=60060160450626009E32F3E3783EE011 [TEST

sabad10955 testlun]

state=alive; policy=BasicFailover; priority=0;

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

==============================================================================

0 lpfc  sda  SP B1  active  alive  0  0

0 lpfc  sdb  SP A0  active  alive  0  0

1 lpfc  sdc  SP B0  unlic  alive  0  0

1 lpfc  sdd  SP A1  unlic  alive  0  0

# powermt set policy=co

# powermt display dev=all

Pseudo name=emcpowera

CLARiiON ID=CKM00093100497 [sabad10955_test]

Logical device ID=60060160450626009E32F3E3783EE011 [TEST

sabad10955 testlun]

state=alive; policy=CLAROpt; priority=0; 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

==============================================================================

0 lpfc  sda  SP B1  active  alive  0  0

0 lpfc  sdb  SP A0  active  alive  0  0

1 lpfc  sdc  SP B0  active  alive  0  0

1 lpfc  sdd  SP A1  active  alive  0  0

Now prepare the lun

# fdisk /dev/emcpowera

Device contains neither a valid DOS partition table, nor Sun,

SGI or OSF disklabel

Building a new DOS disklabel. Changes will remain in memory

only,

until you decide to write them. After that, of course, the

previous

content won't be recoverable.

The number of cylinders for this disk is set to 10240.

There is nothing wrong with that, but this is larger than

1024,

and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of

LILO)

2) booting and partitioning software from other OSs

(e.g., DOS FDISK, OS/2

FDISK)

Warning: invalid flag 0x0000 of partition table 4 will be

corrected by w(rite)

Command (m for help): p

Disk /dev/emcpowera: 10.7 GB, 10737418240 bytes

64 heads, 32 sectors/track, 10240 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot

Start

End  Blocks  Id

System

Command (m for help): n

Command action

e  extended

p  primary partition (1-4)

p

Partition number (1-4): 1

First cylinder (1-10240, default 1):

Using default value 1

Last cylinder or +size or +sizeM or +sizeK (1-10240, default

10240):

Using default value 10240

Command (m for help): t

Selected partition 1

Hex code (type L to list codes): 8e

Changed system type of partition 1 to 8e (Linux LVM)

Command (m for help): p

Disk /dev/emcpowera: 10.7 GB, 10737418240 bytes

64 heads, 32 sectors/track, 10240 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot

Start

End  Blocks  Id

System

/dev/emcpowera1  1  10240  10485744  8e

Linux LVM

Command (m for help): w

The partition table has been altered!

Calling ioctl() to re-read partition table.

Syncing disks.

set up the filter !

edit /etc/lvm/lvm.conf

filter = [ "a|/dev/cciss|", "r/sd.*/", "a/emcpower.*/" ]

# vgscan

Reading all physical volumes.  This may take

a while...

Found volume group

"rootvg" using metadata type lvm2

# pvcreate /dev/emcpowera1

Physical volume

"/dev/emcpowera1" successfully created

# vgcreate datavg /dev/emcpowera1

Volume group "datavg"

successfully created

# lvcreate -l 100%VG -n datalv datavg

Logical volume "datalv"

created

# mkfs.ext3 /dev/mapper/datavg-datalv

mke2fs 1.39 (29-May-2006)

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

1310720 inodes, 2620416 blocks

131020 blocks (5.00%) reserved for the super user

First data block=0

Maximum filesystem blocks=2684354560

80 block groups

32768 blocks per group, 32768 fragments per group

16384 inodes per group

Superblock backups stored on blocks:

32768, 98304, 163840, 229376, 294912, 819200, 884736,

1605632

Writing inode tables: done

Creating journal (32768 blocks): done

Writing superblocks and filesystem accounting information:

done

This filesystem will be automatically checked every 38 mounts

or

180 days, whichever comes first.  Use tune2fs

-c or -i to override.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值