Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3655
  • Last Modified:

Replace removed disk VxVM

I want to correct the error below and add Disk_18 as Disk2

root@clyde:/etc/vx/diag.d # vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
Disk_0       auto:sliced     rootdisk     rootdg       online
Disk_1       auto:sliced     rootmirror   rootdg       online nohotuse
Disk_17      auto:cdsdisk    Disk1        oradg        online
Disk_18      auto:cdsdisk            -            -            online
-            -         Disk2        oradg        removed was:Disk_18

root@clyde:/etc/vx/diag.d # vxprint -thg oradg
DG NAME         NCONFIG      NLOG     MINORS   GROUP-ID
ST NAME         STATE        DM_CNT   SPARE_CNT         APPVOL_CNT
DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   STATE
RV NAME         RLINK_CNT    KSTATE   STATE    PRIMARY  DATAVOLS  SRL
RL NAME         RVG          KSTATE   STATE    REM_HOST REM_DG    REM_RLNK
CO NAME         CACHEVOL     KSTATE   STATE
VT NAME         NVOLUME      KSTATE   STATE
V  NAME         RVG/VSET/CO  KSTATE   STATE    LENGTH   READPOL   PREFPLEX UTYPE
PL NAME         VOLUME       KSTATE   STATE    LENGTH   LAYOUT    NCOL/WID MODE
SD NAME         PLEX         DISK     DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
SV NAME         PLEX         VOLNAME  NVOLLAYR LENGTH   [COL/]OFF AM/NM    MODE
SC NAME         PLEX         CACHE    DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
DC NAME         PARENTVOL    LOGVOL
SP NAME         SNAPVOL      DCO

dg oradg        default      default  56000    1225853879.12.clyde

dm Disk1        Disk_17      auto     2048     71097376 -
dm Disk2        -            -        -        -        REMOVED

v  optapp       -            DISABLED CLEAN    20971520 SELECT    -        fsgen
pl optapp-01    optapp       DISABLED REMOVED  20971520 CONCAT    -        RW
sd Disk2-03     optapp-01    Disk2    41943040 20971520 0         -        RMOV

v  optoracle    -            DISABLED CLEAN    41943040 SELECT    -        fsgen
pl optoracle-01 optoracle    DISABLED REMOVED  41943040 CONCAT    -        RW
sd Disk1-04     optoracle-01 Disk1    52428800 3477648  0         Disk_17  ENA
sd Disk2-05     optoracle-01 Disk2    104857600 38465392 3477648  -        RMOV

v  oraarchive   -            DISABLED CLEAN    41943040 SELECT    -        fsgen
pl oraarchive-01 oraarchive  DISABLED REMOVED  41943040 CONCAT    -        RW
sd Disk2-04     oraarchive-01 Disk2   62914560 41943040 0         -        RMOV

v  orats1       -            DISABLED CLEAN    20971520 SELECT    -        fsgen
pl orats1-01    orats1       DISABLED REMOVED  20971520 CONCAT    -        RW
sd Disk2-01     orats1-01    Disk2    0        20971520 0         -        RMOV

v  orats2       -            ENABLED  ACTIVE   20971520 SELECT    -        fsgen
pl orats2-01    orats2       DISABLED STALE    20971520 CONCAT    -        RW
sd Disk1-02     orats2-01    Disk1    10485760 20971520 0         Disk_17  ENA

v  redo1        -            DISABLED CLEAN    20971520 SELECT    -        fsgen
pl redo1-01     redo1        DISABLED REMOVED  20971520 CONCAT    -        RW
sd Disk2-02     redo1-01     Disk2    20971520 20971520 0         -        RMOV

v  redo2        -            ENABLED  ACTIVE   20971520 SELECT    -        fsgen
pl redo2-01     redo2        ENABLED  ACTIVE   20971520 CONCAT    -        RW
sd Disk1-03     redo2-01     Disk1    31457280 20971520 0         Disk_17  ENA

v  varoptoracle -            ENABLED  ACTIVE   10485760 SELECT    -        fsgen
pl varoptoracle-01 varoptoracle DISABLED OFFLINE 10485760 CONCAT  -        RW
sd Disk1-01     varoptoracle-01 Disk1 0        10485760 0         Disk_17  ENA

0
p0sreed
Asked:
p0sreed
  • 5
  • 4
1 Solution
 
awa2008Commented:
Hello ,

the syntax for rename a disk is :

vxedit -g oradg -rf rename Disk_18 Disk2


I hope that  help you

Regards
0
 
p0sreedAuthor Commented:
Disk_18 = Lun name assigned by veritas

Disk2 is the name given by me.


0
 
awa2008Commented:
Hello,

for add disk

do

vxdg -g oradg adddisk Disk_18

and restart vol oradg if not

Regards
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
p0sreedAuthor Commented:
i want to add it as vxdg -g oradg adddisk Disk2=Disk_18

It is not letting me add Disk_18 as Disk2, which means Disk2 is still in the configuration reserved by veritas.

I want veritas to release that.
0
 
awa2008Commented:
That because your new disk must be  initialize before that operation

then you can use  this command :   vxdiskadm

Select menu item  5 (Replace a failed or removed disk) from the  vxdiskadm main menu.

Regards

0
 
p0sreedAuthor Commented:

Select an operation to perform: 5


Replace a failed or removed disk
Menu: VolumeManager/Disk/ReplaceDisk
  Use this menu operation to specify a replacement disk for a disk
  that you removed with the "Remove a disk for replacement" menu
  operation, or that failed during use.  You will be prompted for
  a disk name to replace and a disk device to use as a replacement.
  You can choose an uninitialized disk, in which case the disk will
  be initialized, or you can choose a disk that you have already
  initialized using the Add or initialize a disk menu operation.

Select a removed or failed disk [<disk>,list,q,?] list

Disk group: rootdg

DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   STATE


Disk group: oradg

DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   STATE

dm Disk2        -            -        -        -        REMOVED


Select a removed or failed disk [<disk>,list,q,?] Disk2
  VxVM  ERROR V-5-2-1985 No devices are available as replacements for Disk2.

0
 
awa2008Commented:
Hello,

you can try that

vxdg -k -g <group> adddisk <disk>=<device>

-k = forces vxvm to take media name of the failed disk & assign it to the new disk

then for you

vxdg -k -g oradg adddisk Disk2=Disk_18


I hope that help

0
 
p0sreedAuthor Commented:
Excellent!! Exactly what i was looking for and it worked.

Good job!.

Thank you very much.
0
 
p0sreedAuthor Commented:
Excellent Work!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now