1832488 Members
4052 Online
110043 Solutions
New Discussion

removing a disk

 
SOLVED
Go to solution
Shawn Miller_2
Frequent Advisor

removing a disk

If a disk has already been removed from a system and lvremove and vgremove where down but nothing else. What is the best way to clean the system up so ioscan no longer shows NO_HW. the /dev/dsk and /dev/rdsk which corresponded to this drive still exist.
5 REPLIES 5
Sanjay_6
Honored Contributor
Solution

Re: removing a disk

Hi Shawn,

If the disk has been removed from the vg and also removed from the system, a reboot of system will make the NO_HW in ioscan to go away. Did you reboot the system after removing this disk, if the disk was hot swappable and waas plugged out.

Hope this helps.

Regds
James R. Ferguson
Acclaimed Contributor

Re: removing a disk

Hi Shawn:

Having properly removed the disk from any LVM configuration (and 'vgexport' is the fastest way to destroy all knowledge) you can use 'rmsf' to remove the device files. See the man pages for more information and options. Upon reboot, all further traces of the hardware should disappear.

Regards!

...JRF...
Sridhar Bhaskarla
Honored Contributor

Re: removing a disk

Shawn,

If the disk is physically removed from the system, then you will need to reboot the system to get rid of NO_HW in ioscan output. If it is not part of a volume group anymore, then it doesn't do any harm.

To get rid of the device files, use rmsf command.



-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Helen French
Honored Contributor

Re: removing a disk

Hi,

The best way is to reboot. Be careful if you are using the 'rmsf' command to remove the device files. You need to make sure that you are removing the right one. Also specify the complete path of the file:

# rmsf /dev/xxx/xxxx

HTH,
Shiju
Life is a promise, fulfill it!
Magdi KAMAL
Respected Contributor

Re: removing a disk

Hi ,

1. Delete the configuration from Logical Volume Manager.
2. Applay vgexport
3. Remove special file "rmsf /dev/..."
4. Physicaly remove the disk ( Plug-out ).
5. ioscan "without options"

Magdi