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 - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-27-2009, 02:07 PM   #1
jesmith
LQ Newbie
 
Registered: Nov 2007
Posts: 12

Rep: Reputation: 1
Putting Slackware on 50 Servers


I'm a big Slackware fan (I came to it via Slax), so when we started thinking of what O/S to use in a big data center we're building, choosing Slackware was a no-brainer. My 3-server prototype is running Slackware x64 -current, and it all works great.

Now I'm planning for when the boss throws the big money switch and I need to deploy Slackware on 50 servers, with as little pain and time spent as possible.

Since there is no up-to-date "kickstart" project, I'm thinking that the best way to do this is to write a bash script to do all the things I did by hand on the three servers I got running. I can prompt for the few things that will differ between servers (ip addr, hostname, etc.).

These servers do not have CD drives, so the way I installed was:
1) Boot from UFD
2) Mount a second (big) UFD with the Slackware distro on it
3) cfdisk the hard drives the way I like them
4) run setup, answer lots of questions

Does it seem feasible to automate steps 3 & 4 with bash?

Anybody here ever done this?
 
Old 08-27-2009, 03:10 PM   #2
merer
LQ Newbie
 
Registered: Jul 2007
Location: Vilnius,Lithuania
Distribution: Slackware 12.2
Posts: 20

Rep: Reputation: 1
Hello,
I may have some suggestions for you, but I'm just a simple home user, so they may not be suited for you.
If UFD means USB flash drive, you could try PXE boot (if your servers support that). It loads setup environment via tftp, setup packages can be downloaded using NFS,FTP or HTTP. Just tried it myself - preparing for Slackware 13 install on my home LAN. The upside is - no more physical media.
AFAIK there is a thing called tagfiles, which will help you automate package selection.
 
Old 08-27-2009, 03:28 PM   #3
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Rep: Reputation: 41
I haven't tried this, but couldn't you create a disk image of one of the current servers and clone it on all the 50 servers? dd should do just that. I think that would be easier to automate that doing an actual install. When I upgrade systems, I simply take the boot/root disk out of the old one and put in the new one and off I go. I hate installing OSes.

Last edited by tux_dude; 08-27-2009 at 03:48 PM.
 
Old 08-27-2009, 04:12 PM   #4
dwr1
Member
 
Registered: Aug 2009
Distribution: slack-current
Posts: 46

Rep: Reputation: 17
No experience here either, but I thought I'd show you this, from slackpkg's manpage, which you may find useful if you're not aware of it already:

Quote:
generate-template
This action creates a new template with all official packages that
are installed in your system. The template is stored at
/etc/slackpkg/templates

install-template
This action install the required template in the system. The tem-
plate must be in /etc/slackpkg/templates. If the template
"includes" other templates, all of them needs to be in
/etc/slackpkg/templates. You can disable the "includes" in
slackpkg.conf or in command-line.
It won't copy over your configs though.

The dd idea sound the best so far imho.
 
Old 08-27-2009, 05:04 PM   #5
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
using g4l you could do the image over the network... once set up just pxe boot the servers and done.

http://sourceforge.net/projects/g4l/
 
Old 08-27-2009, 05:39 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

I'm sure you know what you want to install on the servers. I suggest that you create 'tagfiles' (tagfile_generator.sh) from the current installed server. Then do a install using tagfiles either from the 'USB Flash Drive' or copy the iso image file to one of your servers then mount it via the 'loop device' or mount the '/slackware' which you can copy from your dvd/ufd source on the remote computer then utilize the 'usb-and-pxe-installers'.

By booting each system with either USB or PXE you can insure the source media to be valid over the number of installs you need to make. I really don't like the image idea for that number of installs. By using source media you will insure a valid install independent of a single install. If you do decide to use the image method then be sure to validate the copy for each install.
 
Old 08-27-2009, 06:02 PM   #7
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by jesmith View Post
1) Boot from UFD
2) Mount a second (big) UFD with the Slackware distro on it
3) cfdisk the hard drives the way I like them
4) run setup, answer lots of questions
Instead of installing system on all these machines from the scratch do this:

1) Install and configure the system on the first machine.

2) Prepare the copy of the partition table on the first machine:

sfdisk -d /dev/sda > partitions.txt

3) Store backup copy of the system on the first machine:

tar czf backup.tgz *

4) Prepare partition tables on the other machines:

sfdisk --force /dev/sda < partitions.txt

5) Create filesystems on the other machines (consider to perform it with a short script).

6) Restore the system from the backup copy on the other machines:

tar xzf backup.tgz

7) Customize restored systems using short script which modifies these files:

/etc/HOSTNAME
/etc/exports
/etc/fstab
/etc/lilo.conf
/etc/rc.d/rc.M
/etc/rc.d/rc.firewall
/etc/rc.d/rc.inet1.conf
/etc/rc.d/rc.local

8) Restart lilo.

9) Reboot 50 machines!

***

Comments:

In 2) and 4) I assume all these machines use the same disks. In 3) and 6) I suggest to use rather tar than dd because that method is faster and less inconvenient.
 
Old 08-29-2009, 04:24 AM   #8
con
Member
 
Registered: Jul 2005
Location: Finland
Distribution: Slackware
Posts: 213

Rep: Reputation: 30
Quote:
Originally Posted by mRgOBLIN View Post
using g4l you could do the image over the network... once set up just pxe boot the servers and done.

http://sourceforge.net/projects/g4l/
That is probably your best bet. Did this at work for 24 laptops with norton ghost. Fast and easy.
 
Old 08-29-2009, 04:43 AM   #9
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello together,

I'd prefer what w1k0 wrote.

I often work with images of windows-machines and this images are much more data then the size of a tar-file. So I think that it will be faster to copy tar-files over the network. It is one of the advantages of linux that one has not to handle with images. Be aware that Slackware is much more flexible than windows.

Markus
 
Old 08-29-2009, 09:24 AM   #10
rg3
Member
 
Registered: Jul 2007
Distribution: Fedora
Posts: 527

Rep: Reputation: Disabled
If you do any kind of "clone" process, either with dd or with tar or whatever, be sure to take into account /etc/udev/rules.d/, as part of those files are generated by udev if they do not exist and contain information which is machine specific, like the names of the network interfaces based on the MAC address.

For cloning, I'd go with partimage, no doubt. It's available as part of the SystemRescueCd and it can restore disk images over the network very very easily. Good way to transfer the same system to many other machines.
 
  


Reply



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
Mirroring Slackware 12.1 servers Zafoid Linux - Newbie 3 12-10-2008 05:48 AM
Newb Needs Help Putting Slackware on an old laptop Azide Slackware - Installation 14 03-11-2006 04:26 PM
Chat Servers for Slackware ? martyc Slackware 1 07-21-2004 11:00 PM
slackware servers naflan Slackware 3 02-24-2004 11:30 AM
Slackware servers somnium Slackware 3 07-12-2003 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:54 PM.

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