Operating System - HP-UX
1820591 Members
1834 Online
109626 Solutions
New Discussion юеВ

Problem removing disk from vxdisk list

 
Leslie Fischer
Frequent Advisor

Problem removing disk from vxdisk list

Receiving errors running the command:
# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c2t1d0 simple - - LVM
c3t0d0 simple - - LVM
c6t12d5 simple disk01 rootdg online
c6t13d1 simple - - LVM
c6t13d6 simple - - error
c6t13d7 simple - - error
c6t15d0 simple - - LVM
c6t15d1 simple prsrlapp dg_prap online
c6t15d2 simple - - online invalid
c6t15d3 simple - - error
c6t15d4 simple - - error
c6t15d5 simple - - error
c6t15d6 simple - - error
c6t15d7 simple - - error
c17t0d0 simple pwork dg03 online
c17t0d3 simple prapps dg_prap online
c17t0d4 simple - - online
c17t0d5 simple - - online
c17t0d6 simple - - online
c17t0d7 simple - - online
c17t1d0 simple - - online
c17t1d1 simple - - online

Trying to get rid of these disks permanently.

Tried following other suggestions from this forums posts to remove these disk from the vxdisk list but they keep coming back.

What I have tried:
# ioscan -fnC disk #Does not show the disks.
# vdisk rm c6t13d6 #Removes it temporary.
# rmsf -a /dev/vx/[r]dmp/c6t13d6

Works temporary until I run:

# vxdisk scandisks

This will bring them back with the error again in the #vxdisk list command. I also noticed that they will reappear under the /dev/vx/[r]dmp directory too.

These disks have been removed from the SAN. What else needs to be done to keep them from coming back. The Error Disk names do appear under the /dev/[r]dsk. Any suggestions?
7 REPLIES 7
Robert-Jan Goossens_1
Honored Contributor

Re: Problem removing disk from vxdisk list

There is no data on the disk right?

clear the privat region of the disk with a dd before removing the device files.

# ioscan -fnC disk
# vdisk rm c6t13d6
# dd if=/dev/zero of=/dev/rdsk/c6t13d6 bs=512k count=1
# rmsf -a /dev/vx/[r]dmp/c6t13d6

Robert-Jan
Leslie Fischer
Frequent Advisor

Re: Problem removing disk from vxdisk list

Correct, there is no data on disk.

Thank you, but this did not work. After using these commands, it looks as though it is gone, but when you run a "vxdisk scandisks" it comes back to the vxdisk list as an error.

Robert-Jan Goossens_1
Honored Contributor

Re: Problem removing disk from vxdisk list

Hi,

Try next command
# /etc/vx/bin/vxdiskunsetup -C c6t13d6

Otherwise you might need to exclude the disk from veritas in the /etc/vx/disks.exclude file.

Just add c6t13d6 in the file after the vxdiskunsetup or your own procedure.

Robert-Jan
Leslie Fischer
Frequent Advisor

Re: Problem removing disk from vxdisk list

Sorry the vxdiskunsetup command did not work either. Tried as suggested to add to the vxdmp.exclude - c6t13d6 - and this did not help..

Help!
MikeL_4
Super Advisor

Re: Problem removing disk from vxdisk list

To remove a obsolete devices, a reboot may be necessary as it is more likely would be stuck in the kernel until a reboot, however you can try the following:

1. Remove the hardware path via rmsf (so ioscan won't see the path at all).
2. Remove the device from /dev/vx/dmp and /dev/vx/rdmp
3. Restart vxconfigd daemon: vxconfigd -k

Now if you still sees the device(s) in error state, a reboot can't be avoided.
Phil_2
Occasional Advisor

Re: Problem removing disk from vxdisk list

Use the 'vxdisk rm "device" ' command to remove the devices from VxVM use.

Verify that 'vxdisk' does not see them using 'vxdisk list'

Then remove the actual device files from the /dev directory using the 'find' command. An example of this using c8t0d0 as a subject disk is:

find /dev -name c8t0d0 -exec lssf {} \; -exec rmsf {} \; -exec lssf {} \;

The only -exec you really need is the 'rmsf' - the others are there to show the existence of the device file - then the non-existence.
Whether you think you can or you can't, you're right!
Leslie Fischer
Frequent Advisor

Re: Problem removing disk from vxdisk list

Thank you the vxconfigd -k worked.