On Jun 17, 7:00 am, Konrad Rzeszutek <[EMAIL PROTECTED]> wrote:
> You can delete the old block devices that have changed and do a SCSI rescan:
>
> You have to delete the old devices (well, this script deletes _ALL_ so that 
> might
> not be that good):
>
> for disk in `find 
> /sys/class/iscsi_session/session*/device/target*/*:*:*:*/delete `
> do
>  echo 1 > $disk
> done
>
> And then do the rescan:
> #iscsiadm -m session --rescan
--snip--
> Oh, please be carefull. These scripts will delete your block devices, so if 
> you delete your
> root one or any other one that is used - you are screwed.  Make sure you 
> first unmount
> any of the filesystems on those block devices and sync it so that there are no
> outstanding I/Os.

Excellent! This was exactly what I needed!

As you said, removing devices blindly is quite dangerous, so I
certainly won't be automating this in any way. :)

It's a one-off operation that happens maybe once every 3 weeks or so,
and there are a number of other steps that happen before and after the
disk resize that require quite a bit of care to be taken so I'll be
doing it manually and with proper safety precautions. (doing an LVM
snapshot on the target side prior to doing anything just in case, etc)

Thanks very much for the help!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~----------~----~----~----~------~----~------~--~---

Reply via email to