Not able to remove thin provision disk from diskgroup after the media was physically removed from the array.

book

Article ID: 100007024

calendar_today

Updated On:

Description

Error Message

[root@test] #vxdg -g testdg rmdisk remove_1
VxVM vxdg ERROR V-5-1-553 Disk remove_1 is used by one or more subdisks

[root@test]# vxdg -g testdg -k rmdisk remove_1
VxVM vxdg ERROR V-5-1-549 Disk remove_1 is already removed

[root@test]# vxedit -g testdg -rf rm remove_1
VxVM vxedit ERROR V-5-1-10127 deleting remove_1:
Disk or disk group is not empty

 

Cause

The media was physically removed from the array causing all attempts to reclaim the space to fail.

Resolution

#vxprint -ly will show subdisks that are in reclaim_pnd state

Subdisk: testdg1-1-03
info: disk=remove_2 offset=157473056 len=660602880
assoc: vol=(dissoc) plex=(dissoc)
flags: disabled removed reclaim_pnd
device: device=(no device)
mediatype: unknown 
 

Use vxedit to remove the vxvm object such as subdisks, plex and volumes:

[root@test]# vxedit -g testdg rm testdg1-1-05
[root@test]# vxedit -g testdg rm testdg1-1-06
[root@test]# vxedit -g testdg rm testdg1-1-07
[root@test]# vxedit -g testdg rm testdg1-1-08
[root@test]# vxedit -g testdg rm testdg1-1-09
[root@test]# vxedit -g testdg rm testdg1-1-10
[root@test]# vxedit -g testdg rm remove_2
[root@test]# vxedit -g testdg rm testdg1-4-01
[root@test]# vxedit -g testdg rm testdg1-4-02
[root@test]# vxedit -g testdg rm remove_1

 

 

Issue/Introduction

Unable to remove a disk or reclaim space from a disk that was physically removed from the array.