On 4/24/23 08:09, Purvesh Parmar wrote:
> thank you, however, because this is change in the data center, the names
> of the servers contain datacenter names as well in its hostname and in
> fqdn as well, hence i have to change both, hostnames as well as ip
> addresses, compulsorily, to given hostnames as per new DC names.
Could your data center be persuaded to introduce DNS CNAME aliases for the
old names to point to the new DC names?
If you're forced to use new DNS names only, then it's simple to change DNS
names of compute nodes and partitions in slurm.conf:
NodeName=...
PartitionName=xxx Nodes=...
as well as the slurmdb server name:
AccountingStorageHost=...
What I have never tried before is to change the DNS name of the slurmctld
host:
ControlMachine=...
The critical aspect here is that you need to stop all batch jobs, plus
slurmdbd and slurmctld. Then you can backup (tar-ball) and transfer the
Slurm state directories:
StateSaveLocation=/var/spool/slurmctld
However, I don't know if the name of the ControlMachine is hard-coded in
the StateSaveLocation files?
I strongly suggest that you try to make a test migration of the cluster to
the new DC to find out if it works or not. Then you can always make
multiple attempts without breaking anything.
Best regards,
Ole
> On Mon, 24 Apr 2023 at 11:25, Ole Holm Nielsen <
Ole.H....@fysik.dtu.dk
> <mailto:
Ole.H....@fysik.dtu.dk>> wrote:
>
> On 4/24/23 06:58, Purvesh Parmar wrote:
> > thank you, but its change of hostnames as well, apart from ip
> addresses
> > as well of the slurm server, database serverver name and slurmd
> compute
> > nodes as well.
>
> I suggest that you talk to your networking people and request that the
> old
> DNS names be created in the new network's DNS for your Slurm cluster.
> Then Ryan's solution will work. Changing DNS names is a very simple
> matter!
>
> My 2 cents,
> Ole
>
>
> > On Mon, 24 Apr 2023 at 10:04, Ryan Novosielski
> <
novo...@rutgers.edu <mailto:
novo...@rutgers.edu>
> > <mailto:
novo...@rutgers.edu <mailto:
novo...@rutgers.edu>>> wrote:
> >
> > I think it’s easier than all of this. Are you actually changing
> names
> > of all of these things, or just IP addresses? It they all
> resolve to
> > an IP now and you can bring everything down and change the
> hosts files
> > or DNS, it seems to me that if the names aren’t changing,
> that’s that.
> > I know that “scontrol show cluster” will show the wrong IP
> address but
> > I think that updates itself.
> >
> > The names of the servers are in slurm.conf, but again, if the names
> > don’t change, that won’t matter. If you have IPs there, you
> will need
> > to change them.
> >
> > Sent from my iPhone
> >
> > > On Apr 23, 2023, at 14:01, Purvesh Parmar
> <
purves...@gmail.com <mailto:
purves...@gmail.com>
> > <mailto:
purves...@gmail.com