Does the vm come back up and do you want to log into it again? If not
then you can do

iscsiadm -m node -T target -p ip -o delete

However, if you run the discovery command and the target returns that
portal again then it will appear in /var/lib/iscsi/nodes again.


On 01/16/2013 06:32 PM, Fred Smit wrote:
> I like to be able to prune the stale ones as the are no longer needed
> after a vm  instance dies.
> 
> On Wed, Jan 16, 2013 at 12:15 AM, Mike Christie <micha...@cs.wisc.edu
> <mailto:micha...@cs.wisc.edu>> wrote:
> 
>     /var/lib/iscsi/nodes is a persistent database of target/portals. When
>     the system reboots the iscsi tools will read it and log into the
>     target/portals using the settings for each target/portal.
> 
>     The /sys/class/iscsi* trees are the files that exist when we are logged
>     in or logging in.
> 
>     On 01/15/2013 10:28 AM, Fred Smit wrote:
>     > As our cloud ages , this directory grows .
>     >
>     >
>     >
>     > --
>     > You received this message because you are subscribed to the Google
>     > Groups "open-iscsi" group.
>     > To view this discussion on the web visit
>     > https://groups.google.com/d/msg/open-iscsi/-/iz8ikSCiq1gJ.
>     > To post to this group, send email to open-iscsi@googlegroups.com 
> <mailto:open-iscsi@googlegroups.com>.
>     > To unsubscribe from this group, send email to
>     > open-iscsi+unsubscr...@googlegroups.com
>     <mailto:open-iscsi%2bunsubscr...@googlegroups.com>.
>     > For more options, visit this group at
>     > http://groups.google.com/group/open-iscsi?hl=en.
> 
> 
> -- 
> 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
> open-iscsi+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/open-iscsi?hl=en.

-- 
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 
open-iscsi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to