ROCK This forum is for the discussion of ROCK Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-19-2008, 09:49 PM
|
#1
|
Member
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221
Rep:
|
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?
|
|
|
03-19-2008, 09:57 PM
|
#2
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
|
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.
|
|
|
03-19-2008, 10:18 PM
|
#3
|
Member
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221
Original Poster
Rep:
|
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 10:20 PM.
|
|
|
05-06-2008, 01:54 PM
|
#4
|
LQ Newbie
Registered: Dec 2007
Posts: 16
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 02:14 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|