We recently moved our netapp disks onto new infrastructure by attaching the new controllers to our fibre switch and netapp migrating the disks. Disks kept the same address. We originally had 4 paths, but after attaching the new controllers we had 8. Now I want to remove the old paths. But can't. I have unconfigured the remote ports eg:
cfgadm -c unconfigure c7::200700a0985d435a
I have disable the ports on the fibre switch. But it still shows 8 paths.
mpathadm list lu
/dev/rdsk/c8t600A0980383034566824487668336B66d0s2
Total Path Count: 8
Operational Path Count: 4
mpathadm show lu /dev/rdsk/c8t6xxx
show the path state as unknown.
luxadm display /dev/dsk/c8t6xxx
only shows the 4 new controllers
Any way to clean this up without a reboot ??
Try the following commands :
cfgadm -c unconfigure -o unusable_SCSI_LUN c7::200700a0985d435a
devfsadm -Cv # to remove unconfigured disks from the system
Check mpathadm output, if this doesn't work, a reboot always should
Can you post entire output of
cfgadm -al
Do notice that even if mpathadm shows 8 paths, only 4 are operational and in use.
So, it has no effect on the system, except displaying data.
Regards
Peasant.
2 Likes
DISREGARD THIS POST. PEASANT HAS CORRECTED TYPO.
@Peasant......Good post but isn't that a typo??? Shouldn't 'devsadm' be 'devfsadm'??
1 Like
Before :
c2::200500a0985d435a disk connected configured unusable
c2::200900a0985d435a disk connected configured unusable
c2::201100a0985d435a disk connected configured unknown
c2::201300a0985d435a disk connected configured unknown
c3 fc-fabric connected configured unknown
c3::200300a0985d435a disk connected configured unusable
c3::200700a0985d435a disk connected configured unusable
c3::201000a0985d435a disk connected configured unknown
c3::201200a0985d435a disk connected configured unknown
After
cfgadm -c unconfigure -o unusable_SCSI_LUN c7::200300a0985d435a
c2::201100a0985d435a disk connected configured unknown
c2::201300a0985d435a disk connected configured unknown
c3 fc-fabric connected configured unknown
c3::201000a0985d435a disk connected configured unknown
c3::201200a0985d435a disk connected configured unknown
Ran devfsadm -C and every variable of cfgadm -c unconfigure.
Still shows the total path count as 8.
Looks like a reboot will be the only option.
No biggy. Just being pedantic.
Thanks for the replies.
Hmmmm.....well I reckon that, if you know the node names of the redundant devices, you could delete them from /dev/dsk
, /dev/rdsk
and /dev/cfg
You might need to use:
# rm -f <full device path>
to achieve that.
You can certainly do that with normal local disk nodes. Can anyone else confirm whether I'm correct with regards FC drives?
I would advise against manual intervention using rm.
It is possible and doable, but i advise against it.
Margin for error is just to great.
There is no harm, and next reboot should clean up everything.
Regards
Peasant.
1 Like