Operating System - Linux
1755151 Members
5585 Online
108830 Solutions
New Discussion юеВ

reflecting new lun size from storage w/o rebooting

 
glennn
Advisor

reflecting new lun size from storage w/o rebooting

hi.

has anyone here experienced doing this:

you have a lun connected thru FC to an eva or msa or any storage device for that matter, and you increased the lun in the storage device, then you're able to reflect the new lun size w/o rebooting? i've tried tools like hp_rescan and qlogic's rescan_scsi_bus.sh tool w/c doesn't help. what i do is to check the scsi path, for example 0:0:0:1, then do this: echo "remove-single-device 0 0 0 1" > /proc/scsi/scsi && echo "add-single-device 0 0 0 1" > /proc/scsi/scsi. It does work. But naturally, the /dev/sd* mapped to it will change. I use the multipath mapped /dev/dm* device w/ lvm2, so i'm able to get away with the changing /dev/sd.

But if any of you guys have a better way of doing it, i'd be happy to check it out. Mine is an SLES9 SP4. I've checked out other forums, and most say that you really need a reboot for sles9 and even 10.

thanks and best regards.
3 REPLIES 3
Michael Leu
Honored Contributor

Re: reflecting new lun size from storage w/o rebooting

For new LUNs in SLES10 we do a
echo "- - -" > /sys/class/scsi_host/host0/scan
echo "- - -" > /sys/class/scsi_host/host1/scan
as described here:
http://www.novell.com/documentation/sles10/stor_evms/?page=/documentation/sles10/stor_evms/data/scandev.html

I have never tried to grow a LUN, just added new ones.. not sure if this helps.
Ivan Ferreira
Honored Contributor

Re: reflecting new lun size from storage w/o rebooting

As Michael said, normally with the use of LVM you will add new LUNs to existing volume groups instead of increasing the LUN size. Have you also tried the partprobe command?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
skt_skt
Honored Contributor

Re: reflecting new lun size from storage w/o rebooting

is there a specific reason to strict to grow the existing LUN? I have seen some doc with EMC and LINUX combination talking describing how to do this online.