Chinaunix首页 | 论坛 | 博客
  • 博客访问: 53953
  • 博文数量: 6
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 150
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-26 23:13
文章分类

全部博文(6)

文章存档

2011年(1)

2010年(1)

2008年(4)

我的朋友

分类:

2008-06-23 17:58:57

#
# zpool create -m /mailstor mailstor /dev/dsk/c2t0d0
# zpool list
NAME                    SIZE    USED   AVAIL    CAP  HEALTH     ALTROOT
mailstor                992G     95K    992G     0%  ONLINE     -
# df -k
Filesystem            kbytes    used   avail capacity  Mounted on
 ............
/dev/did/dsk/d4s6     496319    3720  442968     1%    /global/.devices/node@1
mailstor             1023934464      24 1023934372     1%    /mailstor
# zpool status
pool: mailstor
state: ONLINE
scrub: none requested
config:
NAME        STATE     READ WRITE CKSUM
 mailstor    ONLINE       0     0     0
 MDPP1           c2t0d0    ONLINE       0     0     0
 
 errors: No known data errors
#

# zpool export mailstor
-------------------------------------------------------------------------: on other node,
# zpool import mailstor
# zpool list
NAME                    SIZE    USED   AVAIL    CAP  HEALTH     ALTROOT
mailstor                992G    308K    992G     0%  ONLINE     /
# zpool status
  pool: mailstor
 state: ONLINE
 scrub: none requested
config:
        NAME        STATE     READ WRITE CKSUM
        mailstor    ONLINE       0     0     0
          c2t5d0    ONLINE       0     0     0
errors: No known data errors
#
 
# clrt register SUNW.HAStoragePlus
# clrt list
SUNW.LogicalHostname:2
SUNW.SharedAddress:2
SUNW.HAStoragePlus:5
# clrg create mailstor-rg
# clrs create -g mailstor-rg -t SUNW.HAStoragePlus -p \
> Zpools=mailstor mailstor-zfs-rs
#
# clrg online -M mailstor-rg
# scstat -g
-- Resource Groups and Resources --
            Group Name     Resources
            ----------     ---------
 Resources: mailstor-rg    mailstor-zfs-rs

-- Resource Groups --
            Group Name     Node Name                State          Suspended
            ----------     ---------                -----          ---------
     Group: mailstor-rg    MDPP1                    Online         No
     Group: mailstor-rg    MDPP2                    Offline        No

-- Resources --
            Resource Name  Node Name                State          Status Message
            -------------  ---------                -----          --------------
  Resource: mailstor-zfs-rs MDPP1                    Online         Online
  Resource: mailstor-zfs-rs MDPP2                    Offline        Offline
 
# clrg switch -n MDPP2 mailstor-rg
# scstat -g
-- Resource Groups and Resources --
            Group Name     Resources
            ----------     ---------
 Resources: mailstor-rg    mailstor-zfs-rs

-- Resource Groups --
            Group Name     Node Name                State          Suspended
            ----------     ---------                -----          ---------
     Group: mailstor-rg    MDPP1                    Offline        No
     Group: mailstor-rg    MDPP2                    Online         No

-- Resources --
            Resource Name  Node Name                State          Status Message
            -------------  ---------                -----          --------------
  Resource: mailstor-zfs-rs MDPP1                    Offline        Offline
  Resource: mailstor-zfs-rs MDPP2                    Online         Online

 
阅读(1385) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~