yulemi 发表于 2011-05-04 20:30

metaset异状!蜘蛛大侠来看看

本帖最后由 yulemi 于 2011-05-04 22:02 编辑

一开始我metaset 建立磁盘组命名错误,我能顺利的删除,后来我把3个磁盘组全部建立了,但现在却删除不了,我一直用的是root用户操作的






root@HNZZ-PS-WEB-RA02 # scdidadm -L
1      HNZZ-PS-WEB-RA01:/dev/rdsk/c0t0d0 /dev/did/rdsk/d1   
2      HNZZ-PS-WEB-RA01:/dev/rdsk/c1t0d0 /dev/did/rdsk/d2   
3      HNZZ-PS-WEB-RA01:/dev/rdsk/c1t1d0 /dev/did/rdsk/d3   
4      HNZZ-PS-WEB-RA01:/dev/rdsk/c15t600000E00D000000000129EB00030000d0 /dev/did/rdsk/d4   
4      HNZZ-PS-WEB-RA02:/dev/rdsk/c5t600000E00D000000000129EB00030000d0 /dev/did/rdsk/d4   
5      HNZZ-PS-WEB-RA01:/dev/rdsk/c15t600000E00D000000000129EB00020000d0 /dev/did/rdsk/d5   
5      HNZZ-PS-WEB-RA02:/dev/rdsk/c5t600000E00D000000000129EB00020000d0 /dev/did/rdsk/d5   
6      HNZZ-PS-WEB-RA01:/dev/rdsk/c15t600000E00D000000000129EB00010000d0 /dev/did/rdsk/d6   
6      HNZZ-PS-WEB-RA02:/dev/rdsk/c5t600000E00D000000000129EB00010000d0 /dev/did/rdsk/d6   
7      HNZZ-PS-WEB-RA01:/dev/rdsk/c15t600000E00D000000000129EB00000000d0 /dev/did/rdsk/d7   
7      HNZZ-PS-WEB-RA02:/dev/rdsk/c5t600000E00D000000000129EB00000000d0 /dev/did/rdsk/d7   
8      HNZZ-PS-WEB-RA02:/dev/rdsk/c0t0d0 /dev/did/rdsk/d8   
9      HNZZ-PS-WEB-RA02:/dev/rdsk/c1t0d0 /dev/did/rdsk/d9   
10       HNZZ-PS-WEB-RA02:/dev/rdsk/c1t1d0 /dev/did/rdsk/d10   
root@HNZZ-PS-WEB-RA02 # metaset

Set name = syb_dg, Set number = 1

Host                Owner
HNZZ-PS-WEB-RA01   
HNZZ-PS-WEB-RA02   

Mediator Host(s)    Aliases
HNZZ-PS-WEB-RA01   
HNZZ-PS-WEB-RA02   

Drive                                          Dbase

/dev/dsk/c5t600000E00D000000000129EB00000000d0   Yes

Set name = wap_dg, Set number = 2

Host                Owner
HNZZ-PS-WEB-RA01   
HNZZ-PS-WEB-RA02   

Drive                                          Dbase

/dev/dsk/c5t600000E00D000000000129EB00010000d0   Yes

Set name = xbase_dg, Set number = 3

Host                Owner
HNZZ-PS-WEB-RA01   
HNZZ-PS-WEB-RA02   

Drive                                          Dbase

/dev/dsk/c5t600000E00D000000000129EB00020000d0   Yes
root@HNZZ-PS-WEB-RA02 # metset -s syb_dg -df /dev/dsk/c5t600000E00D000000000129

EB00000000d0
bash: metset: command not found
root@HNZZ-PS-WEB-RA02 # metaset -s syb_dg -df /dev/dsk/c5t600000E00D000000000129

EB00000000d0


metaset: HNZZ-PS-WEB-RA02: syb_dg: must be owner of the set for this command

root@HNZZ-PS-WEB-RA02 # mount /dev/dsk/c5t600000E00D000000000129EB00000000d0s6

/mnt
mount: I/O error
mount: Cannot mount /dev/dsk/c5t600000E00D000000000129EB00000000d0s6
root@HNZZ-PS-WEB-RA02 #

answer08 发表于 2011-05-04 22:04

1、先检查是不是本机是不是syb_dg的primary主机:
# scstat -D
2、如果不是primary主机,要先take,
# metaset -s syb_dg -t -f
# scstat -D
# metaset       //这里应该能看到本机owner一列是yes,然后再尝试删除磁盘:
# metaset -s syb_dg -df /dev/dsk/c5t600000E00D000000000129EB00000000d0
3、如果上述方法无法获得owner权限进行常规删除,那只能强制在本机清除磁盘集信息了:
# metaset -s syb_dg -P

yulemi 发表于 2011-05-04 23:35

1、先检查是不是本机是不是syb_dg的primary主机:
# scstat -D
2、如果不是primary主机,要先take,
# m ...
answer08 发表于 2011-05-04 22:04 http://bbs.chinaunix.net/images/common/back.gif






root@HNZZ-PS-WEB-RA01 # scstat -D

-- Device Group Servers --

                         Device Group      Primary             Secondary
                         ------------      -------             ---------


-- Device Group Status --

                              Device Group      Status
                              ------------      ------


-- Multi-owner Device Groups --

                              Device Group      Online Status
                              ------------      -------------

root@HNZZ-PS-WEB-RA01 # metaset -s syb_dg -t -f
metaset: failed to notify DCS of take
root@HNZZ-PS-WEB-RA01 #
root@HNZZ-PS-WEB-RA01 # metaset -s syb_dg -df /dev/dsk/c15t600000E00D000000
29EB00000000d0
metaset: HNZZ-PS-WEB-RA01: syb_dg: must be owner of the set for this comman

root@HNZZ-PS-WEB-RA01 # metaset -s syb_dg -P
metaset: HNZZ-PS-WEB-RA01: Failed to purge hosts from DCS service: no error

answer08 发表于 2011-05-05 09:43

回复 3# yulemi


    # metaset -s syb_dg -C purge
    # metaset

lanyang_tj 发表于 2011-05-05 10:01

easybegin 发表于 2011-05-05 11:02

metaset: HNZZ-PS-WEB-RA01: syb_dg: must be owner of the set for this comman

haishui 发表于 2011-05-05 12:52

路过,期待蜘蛛建议,。

doging 发表于 2011-05-10 16:58

metaset -s syb_dg -C purge
这个是正解
页: [1]
查看完整版本: metaset异状!蜘蛛大侠来看看