Re: why are /var/lib/iscsi/nodes/ left behind after a disconnect ?

2013-01-16 Thread Mike Christie
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 Smi

Re: why are /var/lib/iscsi/nodes/ left behind after a disconnect ?

2013-01-16 Thread Fred Smit
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 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 > targ

Re: why are /var/lib/iscsi/nodes/ left behind after a disconnect ?

2013-01-15 Thread Mike Christie
/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