Operating System - HP-UX
1833861 Members
2574 Online
110063 Solutions
New Discussion

Re: Delete Disks from server - vgremove - pvremove - and after?

 
SOLVED
Go to solution
hboo
Frequent Advisor

Delete Disks from server - vgremove - pvremove - and after?

Hello all

I want to delete 2 disks from hpux server, i delete vg (vgremove), after delete pv (pvremove) but when i run ioscan -fnC disk i see this:

Class I H/W Path Driver S/W State H/W Type Description
======================================================================
disk 0 0/0/1/0.1.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c0t1d0 /dev/rdsk/c0t1d0
disk 1 0/0/1/1.0.0 sdisk CLAIMED DEVICE SEAGATE ST318203LC
/dev/dsk/c1t0d0 /dev/rdsk/c1t0d0
disk 3 0/0/2/0.0.0 sdisk CLAIMED DEVICE SEAGATE ST318203LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 4 0/0/2/0.2.0 sdisk CLAIMED DEVICE SEAGATE ST318203LC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 6 0/4/0/0.2.0.255.0.0.0 sdisk NO_HW DEVICE HP OPEN-9*8
/dev/dsk/c5t0d0 /dev/rdsk/c5t0d0
disk 7 0/4/0/0.2.0.255.0.0.1 sdisk NO_HW DEVICE HP OPEN-9*3
/dev/dsk/c5t0d1 /dev/rdsk/c5t0d1
disk 5 0/4/0/0.2.1.255.0.0.0 sdisk NO_HW DEVICE HP OPEN-9*8
/dev/dsk/c6t0d0 /dev/rdsk/c6t0d0
disk 8 0/4/0/0.2.1.255.0.0.1 sdisk NO_HW DEVICE HP OPEN-9*3
/dev/dsk/c6t0d1 /dev/rdsk/c6t0d1

The disk are in status No Hardware

I want delete this 2 disks /dev/rdsk/c5t0d0 and /dev/rdsk/c5t0d1 because /dev/rdsk/c6t0d0 and /dev/rdsk/c6t0d1 was alternate paths
4 REPLIES 4
Luk Vandenbussche
Honored Contributor
Solution

Re: Delete Disks from server - vgremove - pvremove - and after?

use the command rmsf to remove the device files.

Read the man page first
Bill Hassell
Honored Contributor

Re: Delete Disks from server - vgremove - pvremove - and after?

The LVM commands (vgremove and pvremove) take care of the software-based partitioning. ioscan is showing the hardware status and since the disks are physically removed, you see NO_HW, perfectly normal. To remove the kernel's knowledge of the disks, use the rmsf command, specifically:

rmsf -H 0/4/0/0.2.0.255.0.0.0
...

and so on. This removes the entry in the kernel's table and also the device files.


Bill Hassell, sysadmin
Matti_Kurkela
Honored Contributor

Re: Delete Disks from server - vgremove - pvremove - and after?

You must remove all four NO_HW entries using rmsf, as already described.

At this level, each path to disk is identical. The "understanding" of alternate paths comes at the LVM level.

A while ago, we did a large SAN migration. As a result, all our SAN-connected servers had lots of NO_HW disk entries in the ioscan listings. I made a quick script to remove *all* NO_HW disk entries in one fell swoop. This script is attached here. Use it at your own risk.
MK
hboo
Frequent Advisor

Re: Delete Disks from server - vgremove - pvremove - and after?

Thank´s all of you.
I delete the disks and everythings si OK.

Thank´s again

Hayse :)