LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 09-30-2014, 09:19 AM   #1
terryls
LQ Newbie
 
Registered: Aug 2014
Posts: 8

Rep: Reputation: Disabled
How can you rename a loadbalancer


Greetings
I have 2 LVS load balancers and cloned the drive of one. The 2nd system is developing drive failure. What are the steps to rename the cloned system to replace the failing machine?

In other words: LB1 drive was cloned. LB2 is now failing. How do I rename the cloned LB1 drive now in an identical computer to LB2 and replace the now failing LB2 with the cloned LB1 computer renamed to LB2? I don't want to attempt to clone the failing drive. Thank you
Ubuntu 10.04
 
Old 10-01-2014, 06:47 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
A start is to find all config files that contain the name:
Code:
find /etc -type f -exec grep -Hi lb1 \{} \;
You'll probably get some false positives due to the short names. You usually have to change 5 or 6 places depending on what's installed. I don't know how you would do this once systemd takes over and converts everything to binary files.
 
Old 10-02-2014, 11:18 AM   #3
terryls
LQ Newbie
 
Registered: Aug 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thank you for your response.
It seems the command either has an issue or I'm interpreting
the line literally and need to change something.

from a sudo prompt: find /etc -type f -exec grep -Hi lb1 \{} \;

returns the following:

missing argument to '-exec'
No command 'lb1' found

Thanks again for your help.
T
 
Old 10-02-2014, 11:33 AM   #4
terryls
LQ Newbie
 
Registered: Aug 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
I was right.
My literal input needed to be the actual name of the existing server, not my example of lb1.
After I changed the command from lb1 to the server name, I found several entries.
Now to start looking for what to change.
Thanks again!!
T
 
  


Reply

Tags
rename, server, ubuntu 10.04



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Make a script to check loadbalancer with Nagios NerdGZ Linux - Newbie 5 02-19-2014 02:15 AM
HTTPS and LoadBalancer (WEB) helptonewbie Linux - General 4 10-15-2010 04:19 PM
DNS or loadbalancer Ammad Linux - General 3 12-13-2009 02:16 AM
Loadbalancer: telnetd: ttloop: peer died: EOF Muddoll Linux - Enterprise 0 11-18-2008 04:10 AM
LXer: Apache: Creating A Session-Aware Loadbalancer Using mod_proxy_balancer (Debian Etch) LXer Syndicated Linux News 0 05-31-2007 08:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration