cancel
Showing results for 
Search instead for 
Did you mean: 

Removing UNUSED disks

Dave Cast
Frequent Advisor

Removing UNUSED disks

Hello all,

 

I need to remove a disk that's gone bad (not in use) -

here's the output of ioscan:

ioscan -fnC disk
Class     I  H/W Path      Driver         S/W State   H/W Type     Description
===============================================================================
disk      1  0/0/2/1.0.16  UsbScsiAdaptor   CLAIMED     DEVICE       USB SCSI Stack Adaptor
                          /dev/deviceFileSystem/Usb/MassStorage/dsk/disk@hp-1008+294=A60020000001
                          /dev/deviceFileSystem/Usb/MassStorage/rdsk/disk@hp-1008+294=A60020000001
disk      3  0/1/1/0.0.0.0.0  sdisk            CLAIMED     DEVICE       HP      DG146BB976
                          /dev/dsk/c0t0d0   /dev/rdsk/c0t0d0
disk      2  0/1/1/0.0.0.1.0  sdisk            CLAIMED     DEVICE       HP      DG146BB976
                          /dev/dsk/c0t1d0   /dev/rdsk/c0t1d0
disk      4  0/1/1/0.0.0.2.0  sdisk            CLAIMED     DEVICE       HP      DG146BB976
                          /dev/dsk/c0t2d0   /dev/rdsk/c0t2d0
****** disk      6  0/1/1/0.0.0.3.0  sdisk            NO_HW       DEVICE       HP      DG146BB976******
                          /dev/dsk/c0t3d0   /dev/rdsk/c0t3d0
disk      9  0/1/1/0.0.0.4.0  sdisk            CLAIMED     DEVICE       HP      DG146BB976
                          /dev/dsk/c0t4d0   /dev/rdsk/c0t4d0
disk      8  0/1/1/0.0.0.5.0  sdisk            CLAIMED     DEVICE       HP      DG146BB976
                          /dev/dsk/c0t5d0   /dev/rdsk/c0t5d0
disk      5  0/1/1/0.0.0.6.0  sdisk            CLAIMED     DEVICE       HP      DG146BB976
                          /dev/dsk/c0t6d0     /dev/rdsk/c0t6d0  
                          /dev/dsk/c0t6d0s1   /dev/rdsk/c0t6d0s1
                          /dev/dsk/c0t6d0s2   /dev/rdsk/c0t6d0s2
                          /dev/dsk/c0t6d0s3   /dev/rdsk/c0t6d0s3
disk      7  0/1/1/0.0.0.7.0  sdisk            CLAIMED     DEVICE       HP      DG146BB976
                          /dev/dsk/c0t7d0     /dev/rdsk/c0t7d0  
                          /dev/dsk/c0t7d0s1   /dev/rdsk/c0t7d0s1
                          /dev/dsk/c0t7d0s2   /dev/rdsk/c0t7d0s2
                          /dev/dsk/c0t7d0s3   /dev/rdsk/c0t7d0s3

c0t3d0 is the bad disks....marked w/ asterisks - I was told by HP tech support that i can just remove the drive w/ the server on and put the new one in.....however that just seems a little to simple for HPUX....

 

Can anyone confirm this?  What about lingering device files, etc. etc.????

 

Today is different and tomorrow the same.
5 REPLIES
Patrick Wallek
Honored Contributor

Re: Removing UNUSED disks

What model server is it?  What operating system are you running?  What t ype of disk?

 

Typically you can remove a disk, replace it, restore the VG configuration to it, and you are back going again.

 

If it is a newer Itanium based server with SAS disks, and no integrated RAID controller, then there are some additional scsimgr commands that will need to be run.

Tim Nelson
Honored Contributor

Re: Removing UNUSED disks

rmsf -H 0/1/1/0.0.0.3.0

Pramod M
Regular Advisor

Re: Removing UNUSED disks

Hi

 

Which Server you have and what OS? Is it have a RAID controller?

The sautil /dev/cissx command will show the RAID volume & disk status. If this disk is configured in a hardware raid you can replace it simply by unplug and plug the new disk. It will start the rebuilding aautomatically.

 

Pramod

PGRaja
Occasional Visitor

Re: Removing UNUSED disks

Hi Dave,

 

Seems that bad disk is belongs to a DISK STATION or MSA connected to that server.

Make sure NO_HW device has been physically removed.

 

Make sure the device /dev/dsk/c0t3d0 is not a part of any VG, check from # vgdisplay -v or  # strings /etc/lvmtab 

As you said that disk is not in use !!. I can understand you need to remove only the device file

To remove the device file you can execute the below command for that particular H/W Path.

 

#  rmsf -H  0/1/1/0.0.0.3.0

#  ioscan -fnC disk

Torsten.
Acclaimed Contributor

Re: Removing UNUSED disks

Don't do "rmsf" now!!!

 

This could get a bit complicated.

I assume you run an older version of 11.31 (hey, you still using the old USB 1.1 driver for your CD ROM!!!).


The disk in question is a SAS disk and NOT on a hardware RAID, so a new disk in the same slot will get a new device file.


Get this guide and follow the instructions:

HP 8 Internal Port SAS Controller and HP
Multi-Port Internal SAS Controller Support
Guide
HP-UX 11iv2, 11iv3

You need to use "sasmgr replace_tgt" and "io_redirect_dsf" to get this working.

please post

# model

# strings /etc/lvmtab

# strings /etc/lvmtab_p

# ioscan -fn
(complete output)




Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!