cancel
Showing results for 
Search instead for 
Did you mean: 

Having issues attempting to reduce the size of a disk group.

ACPRATICO
Level 2

I am attempting to reduce the size of my disk group as an excersize and unable to do so. I believe the issue to be that my plex is in a DISABLED REMOVED state and my volume is in a DISABLED ACTIVE state.

Doing research I did not do a vxresize before doing a vxdg rmdisk and now trying to get it back and I keep seeing different suggestions but nothing exactly on a DISABLED REMOVED state.

Any assistance would be appreciated...

 

bash-3.2# vxprint -g dg_acpdev                                                                                                  
TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0                                                 
dg dg_acpdev    dg_acpdev    -        -        -        -        -       -                                                      
                                                                                                                                
dm dg_acpdev_d01 emc1_3ac1   -        35281408 -        -        -       -                                                      
dm dg_acpdev_d02 -           -        -        -        REMOVED  -       -                                                      
dm dg_acpdev_d03 emc1_3a7c   -        70640128 -        -        -       -                                                      
dm dg_acpdev_d04 -           -        -        -        REMOVED  -       -                                                      
dm dg_acpdev_d05 emc1_3860   -        35281408 -        -        -       -                                                      
                                                                                                                                
pl dgacpdev-01  -            DISABLED 141201408 -       REMOVED  -       -                                                      
sd dg_acpdev_d01-01 dgacpdev-01 ENABLED 35281408 0      -        -       -                                                      
sd dg_acpdev_d03-01 dgacpdev-01 ENABLED 70640128 35281408 -      -       -                                                      
sd dg_acpdev_d04-01 dgacpdev-01 DISABLED 35279872 105921536 REMOVED -    -                                                      
                                                                                                                                
v  dgacpdev     fsgen        DISABLED 141201408 -       ACTIVE   -       -  

6 REPLIES 6

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

You firstly need to add removed disks back to the diskgroup before trying to fix volume state.

Please show us output of 'vxdisk -o alldgs list'
and tell us which OS disk was dg_acpdev_d02 and which one dg_acpdev_d04.

ACPRATICO
Level 2

It was dg_acpdev_d04 but I re-added it as d05...

bash-3.2# vxdisk -eo alldgs list                                                                                              
DEVICE       TYPE           DISK        GROUP        STATUS               OS_NATIVE_NAME   ATTR                               
cciss/c0d0   auto:none      -            -           online invalid       cciss/c0d0       -                                  
emc1_2c0b    auto:sliced    dg_devcd01_d05  dg_devcd01  online thin          sdb              tdev                            
emc1_2c0f    auto:sliced    dg_devcd01_d06  dg_devcd01  online thin          sdc              tdev                            
emc1_2c1b    auto:sliced    dg_devcd01_d07  dg_devcd01  online thin          sdf              tdev                            
emc1_2c1f    auto:sliced    dg_devcd01_d08  dg_devcd01  online thin          sdg              tdev                            
emc1_2c2b    auto:sliced    dg_devcd01_d01  dg_devcd01  online thin          sdj              tdev                            
emc1_2c2f    auto:cdsdisk   dg_local_d01  dg_suy_dev_clsta online thin          sdk              tdev                         
emc1_2c07    auto:sliced    dg_devcd01_d09  dg_devcd01  online thin          sda              tdev                            
emc1_2c13    auto:sliced    dg_devcd01_d10  dg_devcd01  online thin          sdd              tdev                            
emc1_2c17    auto:sliced    dg_devcd01_d11  dg_devcd01  online thin          sde              tdev                            
emc1_2c23    auto:sliced    dg_devcd01_d02  dg_devcd01  online thin          sdh              tdev                            
emc1_2c27    auto:sliced    dg_devcd01_d03  dg_devcd01  online thin          sdi              tdev                            
emc1_3ac1    auto:cdsdisk   dg_acpdev_d01  dg_acpdev   online thin          sdz              tdev                             
emc1_3ac3    auto           -            -           error                sdaa             tdev                               
emc1_3ac4    auto:cdsdisk   dg_devcd01_d12-01  dg_devcd01  online thin          sdag             tdev                         
emc1_3a7c    auto:cdsdisk   dg_acpdev_d03  dg_acpdev   online thin          sdae             tdev                             
emc1_3860    auto:cdsdisk   dg_acpdev_d05  dg_acpdev   online thin          sdy              tdev                             
-            -         dg_acpdev_d02 dg_acpdev    removed was:emc1_3a7c                                                       
-            -         dg_acpdev_d04 dg_acpdev    removed was:emc1_3860

 

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

You need to re-add the disk to the diskgroup using -k option to force VxVM to add the OS name as the removed disk media name:

vxdg -g <dgname> -k adddisk <medianame=accessname> 

vxdisk list shows that d04 was emc1_3860.

So, remove dg_acpdev_d05 from the diskgroup, then add it with -k option.

vxdg -g dg_acpdev -k adddisk dg_acpdev_d04=emc1_3860

Try vxrecover after this, then check volume status with vxprint. 

ACPRATICO
Level 2

Thanks Marianne,

I was able to get the original drive back in place but seems the vxrecover does not want to cooperate...am I miising someghint in my vxrecover command?

 

bash-3.2# vxdg -g dg_acpdev rmdisk dg_acpdev_d05

bash-3.2# vxdg -g dg_acpdev -k adddisk dg_acpdev_d04=emc1_3860                                                                 
bash-3.2# vxprint -g dg_acpdev                                                                                                 
TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0                                                
dg dg_acpdev    dg_acpdev    -        -        -        -        -       -                                                     
                                                                                                                               
dm dg_acpdev_d01 emc1_3ac1   -        35281408 -        -        -       -                                                     
dm dg_acpdev_d02 -           -        -        -        REMOVED  -       -                                                     
dm dg_acpdev_d03 emc1_3a7c   -        70640128 -        -        -       -                                                     
dm dg_acpdev_d04 emc1_3860   -        35281408 -        -        -       -                                                     
                                                                                                                               
pl dgacpdev-01  -            DISABLED 141201408 -       RECOVER  -       -                                                     
sd dg_acpdev_d01-01 dgacpdev-01 ENABLED 35281408 0      -        -       -                                                     
sd dg_acpdev_d03-01 dgacpdev-01 ENABLED 70640128 35281408 -      -       -                                                     
sd dg_acpdev_d04-01 dgacpdev-01 ENABLED 35279872 105921536 -     -       -                                                     
                                                                                                                               
v  dgacpdev     fsgen        DISABLED 141201408 -       ACTIVE   -       -  

 

bash-3.2# vxrecover -g dg_acpdev dgacpdev                                                                                      
bash-3.2# vxprint -g dg_acpdev                                                                                                 
TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0                                                
dg dg_acpdev    dg_acpdev    -        -        -        -        -       -                                                     
                                                                                                                               
dm dg_acpdev_d01 emc1_3ac1   -        35281408 -        -        -       -                                                     
dm dg_acpdev_d02 -           -        -        -        REMOVED  -       -                                                     
dm dg_acpdev_d03 emc1_3a7c   -        70640128 -        -        -       -                                                     
dm dg_acpdev_d04 emc1_3860   -        35281408 -        -        -       -                                                     
                                                                                                                               
pl dgacpdev-01  -            DISABLED 141201408 -       RECOVER  -       -                                                     
sd dg_acpdev_d01-01 dgacpdev-01 ENABLED 35281408 0      -        -       -                                                     
sd dg_acpdev_d03-01 dgacpdev-01 ENABLED 70640128 35281408 -      -       -                                                     
sd dg_acpdev_d04-01 dgacpdev-01 ENABLED 35279872 105921536 -     -       -                                                     
                                                                                                                               
v  dgacpdev     fsgen        DISABLED 141201408 -       ACTIVE   -       - 

Faysal
Level 3
Partner Accredited

 the “Recovering an Unstartable Volume with a Disabled Plex in the RECOVER State” procedure in the Volume Manager Troubleshooting Guide.

1. Force plex vol01-01 into the OFFLINE state.
# vxmend -g appsdg -o force off vol01-01
2. Place plex vol01-01 into the STALE state.
# vxmend -g appsdg on vol01-01

3. There are no other clean plexes in the volume, so make plex vol01-01 DISABLED and CLEAN.
# vxmend -g appsdg fix clean vol01-01

4. Start the volume, and perform resynchronization of the plexes in the background.
# vxvol -g appsdg -o bg start vol01
At this point, the file system is unmounted, checked for file system consistency, and remounted.
# umount /files
# mount /files
UX:vxfs mount: ERROR: V-3-21268: /dev/vx/dsk/appsdg/vol01 is corrupted. needs checking
# fsck -F vxfs /dev/vx/rdsk/appsdg/vol01
log replay in progress
replay complete – marking super-block as CLEAN
# mount /files

Faysal
Level 3
Partner Accredited

 the “Recovering an Unstartable Volume with a Disabled Plex in the RECOVER State” procedure in the Volume Manager Troubleshooting Guide.

1. Force plex vol01-01 into the OFFLINE state.
# vxmend -g appsdg -o force off vol01-01
2. Place plex vol01-01 into the STALE state.
# vxmend -g appsdg on vol01-01

3. There are no other clean plexes in the volume, so make plex vol01-01 DISABLED and CLEAN.
# vxmend -g appsdg fix clean vol01-01

4. Start the volume, and perform resynchronization of the plexes in the background.
# vxvol -g appsdg -o bg start vol01
At this point, the file system is unmounted, checked for file system consistency, and remounted.
# umount /files
# mount /files
UX:vxfs mount: ERROR: V-3-21268: /dev/vx/dsk/appsdg/vol01 is corrupted. needs checking
# fsck -F vxfs /dev/vx/rdsk/appsdg/vol01
log replay in progress
replay complete – marking super-block as CLEAN
# mount /files