有几条命令不太明白,哪位老大给说明一下---
1,volslice create <slice_name> [-s <start>] –z <size> <vol_name>
其中size的单位是什么?
2,lun map add lun <LUN> slice <slice_name>
中LUN是否为子lun的名称?
3,lun perm lun <LUN> [rw | ro | none] wwn <<HBA-WWN> |all_wwn |grp <grp_name>>
--------------------------------------------------------------------------------
我前些天刚好配了一次T3+,给你参考如下:
vo 和 v1是已做好的vol,每个vol为1.2T,做了lun后vol的数据都会丢了.
:/:<1>volslice create s0 -z 591GB v0 -----生成591G的lun,一个es最多只能做16个slice
1 out of Max. 16 slices created, 15 available.
:/:<2>volslice create s1 -z 591GB v0
2 out of Max. 16 slices created, 14 available.
:/:<3>volslice create s2 -z 591GB v1
3 out of Max. 16 slices created, 13 available.
:/:<4>volslice create s3 -z 591GB v1
4 out of Max. 16 slices created, 12 available.
:/:<5>volslice list
Slice Slice Num Start Blk Size Blks Capacity Volume
s0 0 0 1239643776 591.107 GB v0
s1 1 1239643776 1239643776 591.107 GB v0
- - 2479287552 34944 0.016 GB v0
s2 2 0 1239643776 591.107 GB v1
s3 3 1239643776 1239643776 591.107 GB v1
- - 2479287552 34944 0.016 GB v1
:/:<6>lun perm list
lun slice WWN Group Name Group Perm WWN PermEffective Perm
--------------------------------------------------------------------------------------------------------
0 0 default -- -- nonenone
1 1 default -- -- nonenone
2 2 default -- -- nonenone
3 3 default -- -- nonenone
--------------------------------------------------------------------------------------------------------
:/:<8>lun default all_lun rw -----必须要设所有的lun为rw
:/:<9>lun perm list
lun slice WWN Group Name Group Perm WWN PermEffective Perm
--------------------------------------------------------------------------------------------------------
0 0 default -- -- rwrw
1 1 default -- -- rwrw
2 2 default -- -- rwrw
3 3 default -- -- rwrw
--------------------------------------------------------------------------------------------------------
:/:<10>port listmap
port targetid addr_type lun volume owner access
u1p1 1 hard 0 v0 u1 primary
u1p1 1 hard 1 v0 u1 primary
u1p1 1 hard 2 v1 u2 failover
u1p1 1 hard 3 v1 u2 failover
u2p1 2 hard 0 v0 u1 failover
u2p1 2 hard 1 v0 u1 failover
u2p1 2 hard 2 v1 u2 primary
u2p1 2 hard 3 v1 u2 primary
:/:<11>sys mp_support rw
:/:<12>sys enable_volslice on
:/:<13>sys list
blocksize : 32k
cache : auto
mirror : auto
mp_support : rw
naca : off
rd_ahead : on
recon_rate : med
sys memsize : 128 MBytes
cache memsize : 1024 MBytes
enable_volslice : on
fc_topology : loop
lun map add lun <LUN> slice <slice_name>
example::/: lun map add lun 4 slice 3
默认情况,你做好slice T3会给每个slice自动分配lun号,但是如果你换一个,你可以先删除原来的lun号,自已定义,比如对上面命令即为s3分lun4.
lun实际上等于solaris上看到的cXtYdZ中的Z.比如上面的就为cXtYd4
lun perm lun <LUN> [rw | ro | none] wwn <<HBA-WWN> |all_wwn |grp <grp_name>>
example::/: lun perm lun 0 rw wwn 210100e08b208900
210100e08b208900 从何而来,如下:
:/:<7>port list
port targetid addr_type status host wwn
u1p1 1 hard online sun 210100e08b208900
u2p1 2 hard online sun 210100e08b208fe1
如何这样设了表明从port 210100e08b208900 连接的host才具有rw权限.
虽然以上说得没什么条理,但我想应该说明白了,其实配置很简单,实际操作一下就明白了