1748256 Members
3757 Online
108760 Solutions
New Discussion юеВ

Re: rmsf

 
SOLVED
Go to solution
Nath_3
Frequent Advisor

rmsf

Hi All,

I need to decom the old luns.

Instead of using rmsf -H .

I am using rmsf -a /dev/dsk/c82t5d1. My Q is would it be enough i do on primary path or do i need to do it on secondary path to...

Please clarify.

Thanks
Ravi
9 REPLIES 9
Solution

Re: rmsf

you need to do it on secondary path too

you'll still see entries in ioscan (probably with NO_HW status) until your next reboot.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Ganesan R
Honored Contributor

Re: rmsf

Hi,

You should run it on all the paths. Because the device files are different for every available paths.
Best wishes,

Ganesh.
James R. Ferguson
Acclaimed Contributor

Re: rmsf

Hi:

Do both primary and secondary. They are different files.

Regards!

...JRF...
Nath_3
Frequent Advisor

Re: rmsf

Thanks to all.

Hope my command is correct.

rmsf -a /dev/dsk/c127t2d4 /dev/dsk/

or
Individually.
rmsf -a /dev/dsk/c127t2d4

rmsf -a /dev/dsk/c7t2d4

i have about 500 devices. I am going use a script for this.

Thanks
Ravi
Armin Kunaschik
Esteemed Contributor

Re: rmsf

Why do you don't want to use rmsf -H?
It removes automatically all devices associated with this hardware path (primary path and all secondary paths, if there is more than one). I guess, this is what you want to do.

My 2 cents,
Armin
And now for something completely different...
Sajjad Sahir
Honored Contributor

Re: rmsf



Dear Nath

in case of primary and secondry path u have to use rmsf -H on both they are different files'

second thing if u rebooting server it will get rid of all no need to remove
becuase it is not loaded kernel thats why
during booting kernel reads all possible devices connect to the system.

thanks and regards

Sajjad Sahir
Viktor Balogh
Honored Contributor

Re: rmsf

hi,

i use this one-liner to remove luns showing NO_HW in ioscan:

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

but after a reboot they'll disappear.
****
Unix operates with beer.
Avinash20
Honored Contributor

Re: rmsf

Removing via rmsf will only remove the device files but ioscan will still show NO_HW.

The io devices tree is built at boot time and NO_HW entries cannot be dynamically removed without rebooting the system.
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Armin Kunaschik
Esteemed Contributor

Re: rmsf

@Avinash: This is only true for ext_bus devices (like virtual SCSI controlers behind FC adapter). If you "rmsf -H" a disk,a tape or a NIC, it is gone... even with "ioscan -k" it is not visible anymore. If you issue an "ioscan" again (and the disk is still there), it will reappear.

My 2 cents,
Armin

PS: Please assign points!
And now for something completely different...