Operating System - HP-UX
1833053 Members
2423 Online
110049 Solutions
New Discussion

How to remove a disk from a server

 
Andrea LESSI
Occasional Contributor

How to remove a disk from a server

I've some disks from a SAN that i want to remove from my server to dedicate them to other boxes.
I removed the related special files and then I unassigned the relation disks/host from the IBM Storage Specialist (the SAN admin utility). After that an ioscan shows to me a S/W state NO_HW for the disk I want to remove, so iI rebooted the machine, but a new ioscan still shows the disks and a NO_HW state. How can I definitively remove these disks from the system.
2 REPLIES 2
Eugeny Brychkov
Honored Contributor

Re: How to remove a disk from a server

If you physically removed device and rebooted system then this device should dissapear in ioscan output. Where was this disk installed? Disk array?
Please attach 'ioscan -fn' to your next reply
Eugeny
T G Manikandan
Honored Contributor

Re: How to remove a disk from a server

you can use rmsf -H

LIke

for i in `ioscan -funC disk | grep -v grep | grep NO_HW | awk '{ print $3 }'`
do
rmsf -H $i
done

This will remove only the device files.
You have to perform a reboot to take out the entries pointing out to the kernel.


THanks