Need to remove a disk from Veritas


 
Thread Tools Search this Thread
Operating Systems Solaris Need to remove a disk from Veritas
# 1  
Old 04-04-2007
Need to remove a disk from Veritas

I have a bogus disk that keeps showing up as failed from vxdisk list

- - disk hpdg failed was:c2t0d11s2


There isnt any c2 devices on the system:

# ls /dev/dsk/c2*
/dev/dsk/c2*: No such file or directory
# ls /dev/rdsk/c2*
/dev/rdsk/c2*: No such file or directory
# ls /dev/vx/dmp/c2*
/dev/vx/dmp/c2*: No such file or directory
# ls /dev/vx/rdmp/c2*
/dev/vx/rdmp/c2*: No such file or directory


These arent even in the format neither:


AVAILABLE DISK SELECTIONS:
0. c0t0d0 <SUN9.0G cyl 4924 alt 2 hd 27 sec 133>
/sbus@3,0/SUNW,fas@3,8800000/sd@0,0
1. c0t1d0 <SUN9.0G cyl 4924 alt 2 hd 27 sec 133>
/sbus@3,0/SUNW,fas@3,8800000/sd@1,0
2. c4t0d0 <HP-OPEN-8-SUN-0110 cyl 9964 alt 2 hd 15 sec 96>
/sbus@a,0/fcaw@2,0/sd@0,0
3. c4t0d1 <HP-OPEN-8-SUN-0110 cyl 9964 alt 2 hd 15 sec 96>


I've done devfsadm -C; devfsadm and c2 they're not discovered neither.


I've restarted the vxconfigd daemon too and it still wont go away.


vxprint shows that disk as "NODEVICE"

dm disk - - - - NODEVICE



When I list the disks from vxdiskadm - that disk isnt listed:


List disk information
Menu: VolumeManager/Disk/ListDisk
Use this menu operation to display a list of disks. You can
also choose to list detailed information about the disk at
a specific disk device address.

Enter disk device or "all" [<address>,all,q,?] (default: all)

DEVICE DISK GROUP STATUS
c0t0d0 disk01 rootdg online
c0t1d0 rootdisk rootdg online
c4t0d0 disk00 hpdg online
c4t0d1 disk01 hpdg online
c4t0d2 disk02 hpdg online
c4t0d3 disk03 hpdg online
c4t0d4 disk04 hpdg online
c4t0d5 disk05 hpdg online
c4t0d6 disk06 hpdg online
c4t0d7 disk07 hpdg online
c4t0d8 disk08 hpdg online
c4t0d9 disk09 hpdg online
c4t0d10 disk10 hpdg online
c4t0d11 disk11 hpdg online
c4t0d12 disk12 hpdg online
c4t0d13 disk13 hpdg online
c4t0d14 disk14 hpdg online
c4t0d15 disk15 hpdg online
c4t0d16 disk16 hpdg online
c4t0d17 disk17 hpdg online
c4t0d18 disk18 hpdg online
c4t0d19 disk19 hpdg online
c4t0d20 - - online invalid
c4t0d21 - - online invalid
c4t0d22 - - online invalid
c4t0d23 - - online invalid
c4t0d24 - - online invalid
c4t0d25 - - online invalid
c4t0d26 - - online invalid



The regular vxdisk list is still showing it though:

# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c0t0d0s2 auto:sliced disk01 rootdg online
c0t1d0s2 auto:sliced rootdisk rootdg online
c4t0d0s2 auto:sliced disk00 hpdg online
c4t0d1s2 auto:sliced disk01 hpdg online
c4t0d2s2 auto:sliced disk02 hpdg online
c4t0d3s2 auto:sliced disk03 hpdg online
c4t0d4s2 auto:sliced disk04 hpdg online
c4t0d5s2 auto:sliced disk05 hpdg online
c4t0d6s2 auto:sliced disk06 hpdg online
c4t0d7s2 auto:sliced disk07 hpdg online
c4t0d8s2 auto:sliced disk08 hpdg online
c4t0d9s2 auto:sliced disk09 hpdg online
c4t0d10s2 auto:sliced disk10 hpdg online
c4t0d11s2 auto:sliced disk11 hpdg online
c4t0d12s2 auto:sliced disk12 hpdg online
c4t0d13s2 auto:sliced disk13 hpdg online
c4t0d14s2 auto:sliced disk14 hpdg online
c4t0d15s2 auto:sliced disk15 hpdg online
c4t0d16s2 auto:sliced disk16 hpdg online
c4t0d17s2 auto:sliced disk17 hpdg online
c4t0d18s2 auto:sliced disk18 hpdg online
c4t0d19s2 auto:sliced disk19 hpdg online
c4t0d20s2 auto:none - - online invalid
c4t0d21s2 auto:none - - online invalid
c4t0d22s2 auto:none - - online invalid
c4t0d23s2 auto:none - - online invalid
c4t0d24s2 auto:none - - online invalid
c4t0d25s2 auto:none - - online invalid
c4t0d26s2 auto:none - - online invalid
- - disk hpdg failed was:c2t0d11s2


I've had Veritas walked me through and removing all the c2 devices and rebooted the server but it's still showing up.


Is there a veritas database where I can go in and remove this bogus disk?
# 2  
Old 04-04-2007
if you're sure it's really bogus:

Make sure there are no dead plexes hanging around, and remove them if there are.

You can check with
Code:
vxprint -pg hpdg | grep NODEVICE

Column 2 is plex name. If there are some dead plexes, disassociate and remove them:
Code:
vxplex -g hpdg -o rm dis <plex name>

Then vxedit the disk out of hpdg:
Code:
vxedit -g hpdg -rf rm disk

# 3  
Old 04-04-2007
Thanks for trying - its not working though.
# 4  
Old 04-04-2007
It might help if you said what part wasn't working, and what error message you got, because the method described, does work:


Code:
#: vxprint -g rootdg
TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
dg rootdg       rootdg       -        -        -        -        -       -

dm rootdisk     c0t0d0s2     -        35358848 -        -        -       -
dm rootmirr     -            -        -        -        NODEVICE -       -

v  rootvol      root         ENABLED  20624424 -        ACTIVE   -       -
pl rootvol-01   rootvol      ENABLED  20624424 -        ACTIVE   -       -
sd rootdisk-02  rootvol-01   ENABLED  20624424 0        -        -       -
pl rootvol-02   rootvol      DISABLED 20624424 -        NODEVICE -       -
sd rootmirr-01  rootvol-02   DISABLED 20624424 0        NODEVICE -       -

v  swapvol      swap         ENABLED  14682592 -        ACTIVE   -       -
pl swapvol-01   swapvol      ENABLED  14682592 -        ACTIVE   -       -
sd rootdisk-B0  swapvol-01   ENABLED  1        0        -        -       Block0
sd rootdisk-01  swapvol-01   ENABLED  14682591 1        -        -       -
pl swapvol-02   swapvol      DISABLED 14682592 -        NODEVICE -       -
sd rootmirr-02  swapvol-02   DISABLED 14682592 0        NODEVICE -       -

#: vxplex -g rootdg -o rm dis rootvol-02
#: vxplex -g rootdg -o rm dis swapvol-02

#: vxprint -g rootdg
TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
dg rootdg       rootdg       -        -        -        -        -       -

dm rootdisk     c0t0d0s2     -        35358848 -        -        -       -
dm rootmirr     -            -        -        -        NODEVICE -       -

v  rootvol      root         ENABLED  20624424 -        ACTIVE   -       -
pl rootvol-01   rootvol      ENABLED  20624424 -        ACTIVE   -       -
sd rootdisk-02  rootvol-01   ENABLED  20624424 0        -        -       -

v  swapvol      swap         ENABLED  14682592 -        ACTIVE   -       -
pl swapvol-01   swapvol      ENABLED  14682592 -        ACTIVE   -       -
sd rootdisk-B0  swapvol-01   ENABLED  1        0        -        -       Block0
sd rootdisk-01  swapvol-01   ENABLED  14682591 1        -        -       -

#: vxedit -g rootdg -rf rm rootmirr
 #: vxprint -g rootdg
TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
dg rootdg       rootdg       -        -        -        -        -       -

dm rootdisk     c0t0d0s2     -        35358848 -        -        -       -

v  rootvol      root         ENABLED  20624424 -        ACTIVE   -       -
pl rootvol-01   rootvol      ENABLED  20624424 -        ACTIVE   -       -
sd rootdisk-02  rootvol-01   ENABLED  20624424 0        -        -       -

v  swapvol      swap         ENABLED  14682592 -        ACTIVE   -       -
pl swapvol-01   swapvol      ENABLED  14682592 -        ACTIVE   -       -
sd rootdisk-B0  swapvol-01   ENABLED  1        0        -        -       Block0
sd rootdisk-01  swapvol-01   ENABLED  14682591 1        -        -       -

#: vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c0t0d0s2     auto:sliced     rootdisk     rootdg       online
c0t1d0s2     auto:sliced     rootdisk     rootdg2      online
c1t1d0s2     auto:cdsdisk    disk1        datadg        online
c2t1d0s2     auto:cdsdisk    disk1mirr    datadg        online


Last edited by reborg; 04-04-2007 at 06:26 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to extend a disk in veritas volume manager in veritas cluster?

Hi Experts, I wanted to extend a veritas file system which is running on veritas cluster and mounted on node2 system. #hastatus -sum -- System State Frozen A node1 running 0 A node2 running 0 -- Group State -- Group System Probed ... (1 Reply)
Discussion started by: Skmanojkum
1 Replies

2. Solaris

Veritas disk group not the same on each cluster node.

Need help getting all disk devices back on node 2 the same as node 1. Recently Veritas and/or Sun cluster got wrecked on my 2 node Sun cluster after installing the latest patch cluster. I backed out the patches and then node 2 could see only half of the devices and Veritas drives (though format... (0 Replies)
Discussion started by: buggin
0 Replies

3. Solaris

Veritas not attaching replaced disk

Hi, I`m on SunFire480R with Solaris 10. Disk in rootdg group failed, so it was replaced. However, I cannot make Veritas initalise the replaced disk: # vxdctl enable # vxdisk list c1t0d0s2 Device: c1t0d0s2 devicetag: c1t0d0 type: auto flags: online error private autoconfig... (1 Reply)
Discussion started by: masloff
1 Replies

4. UNIX for Dummies Questions & Answers

Configure disk group with veritas

People i have an a storage i create two virtual disk 1 y 2. In the virtual disk 1 i configure 8 volumes and in the Vd2 configure 5 volumes. Now i want to create a disk group called Prod2 y Dev2 but when i go to vxdiskadm and i choose add disk o encapusalte when i press list to list the disk... (0 Replies)
Discussion started by: enkei17
0 Replies

5. AIX

Remove internal disk from Veritas Control

I installed new internal disks in my p570. They will be part of a new AIX vg. Unfortunately, we have Veritas Volume Manager running on this AIX 5.2 ml 10 box. Veritas has grabbed control of the disks. I want AIX LVM to control the disks. I cannot get these disks free of Veritas: <lspv... (2 Replies)
Discussion started by: BobSmith
2 Replies

6. Solaris

Help needed to find out the disk controller for veritas disks

hi all i am using vxvm 5.1 on my sun blade 150 which is running with solaris 5.10. When i give the command "vxdisk list" it gives the following output # vxdisk list DEVICE TYPE DISK GROUP STATUS c0t0d0s2 auto:none - - online... (2 Replies)
Discussion started by: kingston
2 Replies

7. UNIX and Linux Applications

Veritas silent disk group creation

I am trying to write a kornshell script that will automatically create veritas disk groups. However, the only utility that I can find that will create the diskgroup is vxdiskadd, which prompts with interactive questions. I've tried to pass the answers through to vxdiskadd, but I receive the... (0 Replies)
Discussion started by: jm6601
0 Replies

8. Shell Programming and Scripting

mapping device from an inq output to veritas disk groups

Hi, Does anyone have a clever way of mapping the following from two different files using perl. sample line from vxdisk list output (vxdisk-list.file): emcpower18s2 auto:sliced IDFAG1_1 (IDFAG1_appdg) online sample line from 'inq' output (inq.file): ... (0 Replies)
Discussion started by: csoesan
0 Replies

9. Solaris

Veritas root disk mirroring

Hi there, My task is to replace the two 73 G disks with two 143 G disks , which has vxvm 4.1 running on it. I would like to know whether the steps iam following are correct. 1. Break the sub-disks, plexes of the root mirror. 2. Remove the sub-disks,plexes of the root mirror. 3. Remove one of... (10 Replies)
Discussion started by: Jartan
10 Replies

10. Filesystems, Disks and Memory

FSCK on veritas managed disk

I've had a VXFS filesystem get corrupted and now it won't mount. Can I run a fsck -y on the raw disk device or should something be done within veritas? Veritas does not see the disk at the moment. (2 Replies)
Discussion started by: ozzmosiz
2 Replies
Login or Register to Ask a Question