Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Veritas Disk Group is disable 1

Status
Not open for further replies.

nguyenb9

Technical User
Apr 1, 2003
55
US
How do I enable disk group in Veritas. My disk is failing and my disk group is currently is disable. Can you help?

Thanks

Urgent....
 
Are you sure it's the disk group that's disabled and not the volume?

If you type vxdg list, what does it say in the STATE column?

Normally a volume will not be disabled by a failing disk unless it is in great jeopardy, i.e. if both plexes (mirrors) of the volume are damaged, etc.

Do you have a replacement disk?

If you type vxprint -v, are all or any of your volumes enabled?

Questions, questions, always questions...

Annihilannic.
 
I have just fixed a smilliar problem. Vxprint was saying the plex was disbaled but having done this many many many many many wonderfull times before I knew what to do.



First umount the file system. I had to use


umount -f /whatever

to force it off line

Then use the vxmend command


vxmend fix stale <plex>
vxmend fix clean <plex>
vxvol start <vol>
mount /whatever

Should do it quite nicley thank you.




 
Can you give me the example: I am very new with Veritas.

What is plex? and do I enter the entire command?

This is how I tried to mount the filesystem and error message follow by it.

mount /RAID-B-qio-db
vxfs mount: Cannot open /dev/vx/dsk/A5200-dg/RAID-B: No such device or address


Thanks,
Bao
 
Whent I did vxprint:

vxprint -v
Disk group: A5100-dg

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
v RAID-D fsgen ENABLED 140509184 - ACTIVE - -
v RAID-E fsgen ENABLED 69206016 - ACTIVE - -

Disk group: A5200-dg

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
v RAID-A fsgen ENABLED 53022720 - ACTIVE - -
v RAID-B fsgen DISABLED 88391680 - ACTIVE - -
v RAID-C fsgen ENABLED 35356672 - ACTIVE - -


Do you have any idea what I need to do?
 
Run this

vxprint -Ath

And stick up the info. Lets have a proper look.


 
Can you post the output of:

[tt]vxprint -th RAID-B
vxdisk list[/tt]

Annihilannic.
 
vxprint -th RAID-B
Disk group: A5200-dg

V NAME USETYPE KSTATE STATE LENGTH READPOL PREFPLEX
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

v RAID-B fsgen DISABLED ACTIVE 88391680 PREFER RAID-B-02
pl RAID-B-01 RAID-B DISABLED NODEVICE 88392861 STRIPE 5/128 RW
sd A5200-r-01-01 RAID-B-01 A5200-r-01 0 17678493 0/0 c1t17d0 ENA
sd A5200-r-04-01 RAID-B-01 A5200-r-04 0 17678493 1/0 - NDEV
sd A5200-r-05-01 RAID-B-01 A5200-r-05 0 17678493 2/0 c1t21d0 ENA
sd A5200-r-06-01 RAID-B-01 A5200-r-06 0 17678493 3/0 c1t22d0 ENA
sd A5200-r-09-01 RAID-B-01 A5200-r-09 0 17678493 4/0 c1t25d0 ENA
pl RAID-B-02 RAID-B DISABLED NODEVICE 88392861 STRIPE 5/128 RW
sd A5200-r-03-01 RAID-B-02 A5200-r-03 0 17678493 0/0 c1t19d0 ENA
sd A5200-r-07-01 RAID-B-02 A5200-r-07 0 17678493 1/0 - RLOC
sd A5200-f-00-01 RAID-B-02 A5200-f-00 0 17678493 2/0 c4t0d0 ENA
sd A5200-f-02-01 RAID-B-02 A5200-f-02 0 17678493 3/0 c4t2d0 ENA
sd A5200-f-05-01 RAID-B-02 A5200-f-05 0 17678493 4/0 c4t5d0 ENA
pl RAID-B-03 RAID-B DISABLED ACTIVE LOGONLY CONCAT - RW
sd A5200-f-09-03 RAID-B-03 A5200-f-09 17678354 44 LOG c4t9d0 ENA




vxdisk list
DEVICE TYPE DISK GROUP STATUS
c0t32d0s2 sliced A5100-f-00 A5100-dg online
c0t33d0s2 sliced A5100-f-01 A5100-dg online
c0t34d0s2 sliced A5100-f-02 A5100-dg online
c0t35d0s2 sliced A5100-f-03 A5100-dg online
c0t36d0s2 sliced A5100-f-04 A5100-dg online
c0t37d0s2 sliced A5100-f-05 A5100-dg online
c0t38d0s2 sliced A5100-f-06 A5100-dg online
c0t48d0s2 sliced A5100-r-00 A5100-dg online
c0t49d0s2 sliced A5100-r-01 A5100-dg online
c0t50d0s2 sliced A5100-r-02 A5100-dg online
c0t51d0s2 sliced A5100-r-03 A5100-dg online
c0t52d0s2 sliced A5100-r-04 A5100-dg online
c0t53d0s2 sliced A5100-r-05 A5100-dg online
c0t54d0s2 sliced A5100-r-06 A5100-dg online
c1t16d0s2 sliced A5200-r-00 rootdg online
c1t17d0s2 sliced A5200-r-01 A5200-dg online
c1t19d0s2 sliced A5200-r-03 A5200-dg online
c1t21d0s2 sliced A5200-r-05 A5200-dg online
c1t22d0s2 sliced A5200-r-06 A5200-dg online
c1t23d0s2 sliced - - online
c1t24d0s2 sliced A5200-r-08 A5200-dg online
c1t25d0s2 sliced A5200-r-09 A5200-dg online
c1t26d0s2 sliced - - error
c2t12d0s2 sliced - - error
c2t13d0s2 sliced - - error
c4t0d0s2 sliced A5200-f-00 A5200-dg online
c4t1d0s2 sliced A5200-f-01 A5200-dg online
c4t2d0s2 sliced A5200-f-02 A5200-dg online
c4t3d0s2 sliced A5200-f-03 A5200-dg online
c4t4d0s2 sliced A5200-f-04 A5200-dg online
c4t5d0s2 sliced A5200-f-05 A5200-dg online
c4t6d0s2 sliced A5200-f-06 A5200-dg online
c4t7d0s2 sliced A5200-f-07 A5200-dg online
c4t8d0s2 sliced A5200-f-08 A5200-dg online
c4t9d0s2 sliced A5200-f-09 A5200-dg online
c4t10d0s2 sliced A5200-f-10 A5200-dg online
- - A5200-r-07 A5200-dg failed was:c1t23d0s2
- - A5200-r-02 A5200-dg failed failing was:c1t18d0s2
- - A5200-r-04 A5200-dg failed failing was:c1t20d0s2
#

 
Right follow these steps.



vxvol stop
umount -f /whereever its mounted
vxmend fix stale RAID-B
vxmend fix clean RAID-B

repeat for each RAID-B-N

then do

vxvol start
mount /whatever mnt point is


I have a little Veritas admin guide that I wrote a bit back that would probably be a lot of help for you. Email me at needsleep64@hotmail.com if you want it.

Cheers
 
It looks bad.

You've lost a disk in both plexes (mirrors). Are you sure the disks have failed completely?

Can you do a prtvtoc /dev/rdsk/c1t23d0s2 on each of the failed disks? If that works, try an analyse/read in format.

If they both work you may be able to replace the &quot;failed&quot; disks with themselves and get your data back, but it's fiddly and I can never remember the exact procedure...

Annihilannic.
 
Do you think I can call you? I am in critical position to the system up, and I am dead stuck with VERITAS.

the filesystem RAID-B-qio-db is not event mounted.

i appreciate if you allow me to call you.

Thanks you very much.
 
I get the error message when I do the following:

prtvtoc /dev/rdsk/c1t20d0s2
prtvtoc: /dev/rdsk/c1t20d0s2: Unable to read Disk geometry
 
Ok here is another way to do it. Luckily I documented the steps last it happened.


vxmend –o force on RAID-B


Now run

vxmend fix clean RAID-B

Now

vxvol start RAID-B


Then run fsck on /dev/bx/dsk/whatever

Then mount the disk.

run df -k to check the disk is online and cool.
 
Sorry matey didn't notice the NODEVICE bit. Run fsck on it and see what that reports.

 
Still have a problem, I did the following:

# vxmend -o force on RAID-B
# vxmend fix clean RAID-B
vxvm:vxmend: ERROR: Plex RAID-B not in configuration
# vxmend fix clean RAID-B-02
# vxvol start RAID-B
vxvm:vxvol: ERROR: Volume RAID-B has no associated data plexes
#
 
Although the prtvtoc output looks bad too. If all three disks are broken like that you'll be restoring from backup. You were unlucky as well that two of the disks contain the same stripe.

Annihilannic.
 
Run

vxmend fix clean RAID-B-01

vxmend fix clean RADI-B-03


then try and start vxvol RAID-B again.





 
Run

vxmend fix clean RAID-B-01

vxmend fix clean RADI-B-03


then try and start vxvol start RAID-B again.





 
I am able to recover one of the failed disk.

when I ran :
prtvtoc /dev/rdsk/c1t23d0s2
* /dev/rdsk/c1t23d0s2 partition map
*
* Dimensions:
* 512 bytes/sector
* 133 sectors/track
* 27 tracks/cylinder
* 3591 sectors/cylinder
* 4926 cylinders
* 4924 accessible cylinders
*
* Flags:
* 1: unmountable
* 10: read-only
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
2 5 01 0 17682084 17682083
3 15 01 0 3591 3590
4 14 01 3591 17678493 17682083
#

How do the format?
 
Try the vxmend commands on each plex a


vxmend fix clean RAID-B-03
vxmend fix clean RAID-B-01


Like you did for RAID-B-02 then run, that one is OK, then run fsck on the /dev/vx/dsk/whatever. Trust me young un. It will work !


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top