On 23/12/10 18:11, James Gray wrote:
Hi All,

I have a home server, it's name is jester.  Jester is a behemoth compared to 
what I actually need.  It's a quad-core, 4GB, 2x500GB RAID on LVM with GB 
ethernet, to serve a few files + CUPS, run a squid proxy, some small MySQL DBs, 
do some basic DHCP/DNS and poll a weather station and solar inverter pumping 
the results into cacti.  Consequently I've shouted myself a new toy: a QNAP 
TS-459 Pro (see http://bit.ly/eTKLCq) with 4x2TB in RAID5.  Here's the plan:

1. Migrate all the file sharing duties to the QNAP
2. Migrate DHCP to the QNAP (or the router...don't really care)
3. Migrate the DBs to the QNAP (yes it does MySQL!)
4. Move the printer over to the QNAP
5. This leaves DNS, SNMP/Cacti, and Squid on Jester.

Now migrating my remaining setup (#5) to a single 8GB SSD is where I'm a little 
stuck.

The QNAP supports both iSCSI and NFS, so I was thinking I could use the SSD for 
/boot and the root fs, then mount the rest from NFS and/or iSCSI.  The kicker 
is; how?  How do I migrate this stuff with minimal fuss?  I was considering 
just creating the iSCSI/NFS mounts, rsync all the data over (permissions and 
everything of course), then drop to single user (or busybox etc) and change the 
mounts to use the iSCSI/NFS instead of the LVM mirror.
Any particular reason for using iscsi or nfs to mount local data? (your going to have to mount stuff to share it over nfs anyway, might as well use it) I mean all the drives are inside the box just mount/symlink them where you want.
no overhead and simpler on your brain.
So, now we have all the non-rootFS and non-/boot stuff taken care of.  Next I 
rsync the rootFS and /boot onto the SSD (yes, they will fit inside 8GB...with 
room to spare):
I'd just make / the SSD and include boot with it, then symlink out any actual data storage needs (/var/lib/mysql say), perhaps make a partition on your raid for /home.
(personally I'd use a larger than 8gb SSD but your call)
also I'd think about making a few small non raided partitions on your drives, I use them for the various tables for mythtv (different tables different spindles), complete overkill to be sure but ey, why not ;->

This leaves GRUB and swap.  How the heck do I tell GRUB that the SSD is now 
"groot=(hd0,0)"?? Or is this not important once I rip out the 2x500GB drives 
leaving only the SSD??
just reconfig grub, if its grub2 under ubuntu there is a nice menu system that lets you install it on all drives, you just need to tell it where /boot is, its a bit of a sequence, booting off a livecd or some such generally.
Next swap - anyone with experience running swap over iSCSI??  Currently swap 
barely gets tickled, and removing file/print/SQL duties should significantly 
reduce the memory footprint so I'm not expecting any serious I/O here.

Lastly, iSCSI - anyone feel like pointing me in the direction of a neat iSCSI-on-Ubuntu 
primer? (don't say "google", I've done that - just want to know if there's a 
kick-butt-doco I missed :)

Thanks in advance and Merry Christmas/New Year to you all!

Cheers,

James

PS - once jester is doing basic snmp/cacti/squid/etc and the QNAP doing the 
"heavy-lifting", I intend under-clocking the little dear from 2.66GHz to about 
1.6GHz :)  Save the planet and all that.
I wouldn't under clock it, it should support dynamic clocking (one presumes) that will drop the clock pretty low when idle, then bump it up when in use. This often will save power as the CPU can stay in low power "sleep" states for longer, at least on the smaller end of the scale.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to