LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 02-22-2013, 03:49 PM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,320

Rep: Reputation: 36
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?
 
Old 02-22-2013, 07:03 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,563

Rep: Reputation: 410Reputation: 410Reputation: 410Reputation: 410Reputation: 410
You could reinstall the package or get a clean copy of the config file /etc/iscsi/iscsid.conf and replace the current one.
 
1 members found this post helpful.
Old 02-23-2013, 12:23 PM   #3
pix9
Member
 
Registered: Jan 2010
Location: Kalyan, Mumbai, Maharashtra, India
Distribution: Red Hat (RHEL 6.0)
Posts: 124

Rep: Reputation: 19
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

Last edited by pix9; 02-23-2013 at 12:25 PM.
 
1 members found this post helpful.
Old 02-25-2013, 07:55 AM   #4
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,320

Original Poster
Rep: Reputation: 36
Thanks for the replies guys!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Normal to wipe linux each year and start over? xmrkite Linux - Software 23 08-04-2013 01:10 PM
best os to start linux from scratch kiyoshi7 Linux From Scratch 21 05-21-2012 03:08 PM
xfs problem? X Server won't start after system wipe browny_amiga Linux - General 3 09-22-2003 08:06 AM
want to start from scratch gravy21 Linux - General 5 09-03-2003 10:03 PM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 05:11 AM


All times are GMT -5. The time now is 03:51 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration