LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Is there a way to wipe out all the iscsiadm configuration to start over from scratch? (http://www.linuxquestions.org/questions/linux-server-73/is-there-a-way-to-wipe-out-all-the-iscsiadm-configuration-to-start-over-from-scratch-4175451321/)

rjo98 02-22-2013 03:49 PM

Is there a way to wipe out all the iscsiadm configuration to start over from scratch?
 
Is there a way to wipe out all the iscsiadm configuration to start over from scratch?

I have a server that someone has royally screwed up the iscsi stuff with, that we use to have the server talk to the SAN, so I'd just start over if possible.

Is there a way to just wipe it all out?

Kustom42 02-22-2013 07:03 PM

You could reinstall the package or get a clean copy of the config file /etc/iscsi/iscsid.conf and replace the current one.

pix9 02-23-2013 12:23 PM

If deleting just the data associated discovered targets is what you want then following command can help you without reinstalling I guess
Code:

iscsiadm --mode node --portal=<IP_ADD_OF_SERVER> --logoutall

iscsiadm --mode node --portal=<IP_ADD_OF_SERVER> --op=delete

Note: if --logoutall doesn't work well try adding another option that is "--target=<IQN_NAME_OF_TARGET>" in that command

hope that helps you

regards

rjo98 02-25-2013 07:55 AM

Thanks for the replies guys!


All times are GMT -5. The time now is 11:12 AM.