LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > ROCK
User Name
Password
ROCK This forum is for the discussion of ROCK Linux.

Notices

Reply
 
Search this Thread
Old 03-19-2008, 10:49 PM   #1
paragkalra
Member
 
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221

Rep: Reputation: 31
Question Changing the hostname


Hello all,

I have a frontend node and many compute nodes. I want to change the hostname of the nodes across entire cluster. I am planning to use linux specific "hostname" command for this purpose. Is there any special command in ROCK for changing the hostname?
 
Old 03-19-2008, 10:57 PM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
If you are talking about redhat boxes, hostname isn't persistent as far as I know, and you may need to edit /etc/sysconfig/network (I think - from memory). There may be a simpler way though.
 
Old 03-19-2008, 11:18 PM   #3
paragkalra
Member
 
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221

Original Poster
Rep: Reputation: 31
Yes billymayday you are right. If change in hostname has to survive a power cycle then I need to do what you suggested but is there any specific command in ROCK that can make my job easy?

Last edited by paragkalra; 03-19-2008 at 11:20 PM.
 
Old 05-06-2008, 02:54 PM   #4
BlueRidgeMark
LQ Newbie
 
Registered: Dec 2007
Posts: 16

Rep: Reputation: Disabled
Since you have to change the config files, you might want to consider writing a script, if you have a lot of machines to change.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
hostname keeps changing zulfinho Linux - Newbie 3 01-16-2006 05:32 AM
hostname changing rusty_slacker Linux - General 2 04-15-2005 07:49 PM
hostname keeps changing? darkleaf Slackware 3 02-23-2005 04:57 PM
Hostname changing Neorio Linux - Networking 2 01-03-2004 08:11 PM
Changing the hostname. KrazyKid Slackware 6 06-30-2002 10:56 PM


All times are GMT -5. The time now is 11:42 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