View previous topic :: View next topic |
Author |
Message |
stardotstar l33t
Joined: 10 Feb 2006 Posts: 887 Location: 2074/SYD/NSW/AU
|
Posted: Mon Aug 11, 2008 9:17 am Post subject: Want 2008 on an HI ProLiant to replace Debian - need guide |
|
|
Hi guys,
while I search and research here and on the broader net community I wonder if someone could indulge me and help me step through a sound server gentoo build on my new ProLiant
I am moving an existing debian server and want to use gentoo since I am so familiar with portage and so on - but only on normal disk setups (sd*,hd* etc) and laptops, desktops etc.
I had a bit of a look around for server build documentation but couldn't find anything off hand - saw the server project...
When I boot the 2008 minimal CD I am wondering where I jump into the handbook and deal with the drives - two fast scsi 36G in raid
Code: |
livecd ~ # cat /proc/partitions
major minor #blocks name
7 0 44592 loop0
104 0 35561280 cciss/c0d0
104 1 248976 cciss/c0d0p1
104 2 1 cciss/c0d0p2
104 5 35310838 cciss/c0d0p5
livecd ~ #
|
I assume I need to get modules sorted and know exactly what sort of disks they are and so on because the raid wiki left me still confused...
http://gentoo-wiki.com/HOWTO_Install_on_Software_RAID
I would really appreciate someone pointing me to a good wiki article, documentation or stepping me through the first critical stages...
TIA
\\' _________________ ]8P |
|
Back to top |
|
|
ianw1974 Guru
Joined: 18 Oct 2006 Posts: 387 Location: UK and Poland
|
Posted: Mon Aug 11, 2008 9:33 am Post subject: |
|
|
First of all, these disks are pretty normal, it's just the naming convention that's slightly different. Looks like you have the Compaq/HP raid controller installed in this machine. Therefore you are just substituting the normal /dev/sdax or /dev/hdax with the ones here.
The /dev/cciss/c0d0 is effectively the same as /dev/sda and the partitions are the p1, p2 and p5 equivalents. When you compile the kernel, just make sure it's got the controller built into it. Use lspci to see what hardware you've got and note down the controller for when you compile the kernel.
Your partitions would be /dev/cciss/c0d0p1 which is like /dev/sda1 or /dev/hda1, and so on. _________________ Ian Walker
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
Linux Systems Limited | Masternode Monitoring |
|
Back to top |
|
|
stardotstar l33t
Joined: 10 Feb 2006 Posts: 887 Location: 2074/SYD/NSW/AU
|
Posted: Mon Aug 11, 2008 9:35 am Post subject: |
|
|
Thanks heaps Ian, I am away! _________________ ]8P |
|
Back to top |
|
|
stardotstar l33t
Joined: 10 Feb 2006 Posts: 887 Location: 2074/SYD/NSW/AU
|
Posted: Mon Aug 11, 2008 9:51 am Post subject: |
|
|
How much swap should I assign - I have been not using swap on most of my boxes - but for a server it may be advisable.
The box currently has 2G in 2 of four slots so I may increase this to 4G or more if I can afford it.
It will be a web, mail, secondary dns, mysql database
So, how much swap - 2G?
Current partition scheme I am considering is:
Code: |
Disk /dev/cciss/c0d0: 36.4 GB, 36414750720 bytes
255 heads, 63 sectors/track, 4427 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 5 40131 83 Linux
/dev/cciss/c0d0p2 6 979 7823655 83 Linux
/dev/cciss/c0d0p3 980 1223 1959930 82 Linux swap / Solaris
/dev/cciss/c0d0p4 1224 4427 25736130 5 Extended
/dev/cciss/c0d0p5 1224 2440 9775521 83 Linux
/dev/cciss/c0d0p6 2441 3170 5863693+ 83 Linux
/dev/cciss/c0d0p7 3171 4427 10096821 83 Linux
|
That should give me about :
30M for /boot,
8G for /var,
2G for swap,
10G for /var,
6G for /usr and
10G for /home
seem reasonable?
BTW and for the record here is lspci
Code: |
livecd ~ # lspci
00:00.0 Host bridge: Intel Corporation E7520 Memory Controller Hub (rev 0c)
00:02.0 PCI bridge: Intel Corporation E7525/E7520/E7320 PCI Express Port A (rev 0c)
00:04.0 PCI bridge: Intel Corporation E7525/E7520 PCI Express Port B (rev 0c)
00:06.0 PCI bridge: Intel Corporation E7520 PCI Express Port C (rev 0c)
00:1c.0 PCI bridge: Intel Corporation 6300ESB 64-bit PCI-X Bridge (rev 02)
00:1d.0 USB Controller: Intel Corporation 6300ESB USB Universal Host Controller (rev 02)
00:1d.1 USB Controller: Intel Corporation 6300ESB USB Universal Host Controller (rev 02)
00:1d.4 System peripheral: Intel Corporation 6300ESB Watchdog Timer (rev 02)
00:1d.5 PIC: Intel Corporation 6300ESB I/O Advanced Programmable Interrupt Controller (rev 02)
00:1d.7 USB Controller: Intel Corporation 6300ESB USB2 Enhanced Host Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 0a)
00:1f.0 ISA bridge: Intel Corporation 6300ESB LPC Interface Controller (rev 02)
00:1f.1 IDE interface: Intel Corporation 6300ESB PATA Storage Controller (rev 02)
01:03.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27)
01:04.0 System peripheral: Compaq Computer Corporation Integrated Lights Out Controller (rev 01)
01:04.2 System peripheral: Compaq Computer Corporation Integrated Lights Out Processor (rev 01)
02:01.0 RAID bus controller: Compaq Computer Corporation Smart Array 64xx (rev 01)
02:02.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet (rev 10)
02:02.1 Ethernet controller: Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet (rev 10)
06:00.0 PCI bridge: Intel Corporation 6700PXH PCI Express-to-PCI Bridge A (rev 09)
06:00.2 PCI bridge: Intel Corporation 6700PXH PCI Express-to-PCI Bridge B (rev 09)
livecd ~ #
|
_________________ ]8P |
|
Back to top |
|
|
steveb Advocate
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Mon Aug 11, 2008 11:02 am Post subject: |
|
|
I assume the disks in your Proliant are connected to the Smart Array Controller (else they would not show up under cciss). So you need to enable the Smart Array driver in your Kernel: Code: | .config - Linux Kernel v2.6.26.2 Configuration
─────────────────────────────────────────────────────────────────────────────────
┌────────────────────────────── Block devices ───────────────────────────────┐
│ Arrow keys navigate the menu. <Enter> selects submenus --->. │
│ Highlighted letters are hotkeys. Pressing <Y> includes, <N> excludes, │
│ <M> modularizes features. Press <Esc><Esc> to exit, <?> for Help, </> │
│ for Search. Legend: [*] built-in [ ] excluded <M> module < > module │
│ ┌────────────────────────────────────────────────────────────────────────┐ │
│ │ --- Block devices │ │
│ │ < > Normal floppy disk support │ │
│ │ < > Parallel port IDE device support │ │
│ │ <*> Compaq SMART2 support │ │
│ │ < > Compaq Smart Array 5xxx support │ │
│ │ < > Mylex DAC960/DAC1100 PCI RAID Controller support │ │
│ │ < > Micro Memory MM5415 Battery Backed RAM support (EXPERIMENTAL) │ │
│ └────v(+)────────────────────────────────────────────────────────────────┘ │
├────────────────────────────────────────────────────────────────────────────┤
│ <Select> < Exit > < Help > │
└────────────────────────────────────────────────────────────────────────────┘ |
// SteveB |
|
Back to top |
|
|
stardotstar l33t
Joined: 10 Feb 2006 Posts: 887 Location: 2074/SYD/NSW/AU
|
Posted: Mon Aug 11, 2008 11:11 am Post subject: |
|
|
Thank you that is very good guidance.
Anyone give me the low down on the swap question please? _________________ ]8P |
|
Back to top |
|
|
steveb Advocate
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Mon Aug 11, 2008 11:21 am Post subject: |
|
|
2GB should be way enough for Swap. You could start with less and add more Swap if needed. You could as well add Swap to an LVM volume and then increase it if needed.
// SteveB |
|
Back to top |
|
|
stardotstar l33t
Joined: 10 Feb 2006 Posts: 887 Location: 2074/SYD/NSW/AU
|
Posted: Tue Aug 12, 2008 1:34 am Post subject: |
|
|
Best base use settings for the server?
Here is where I am at;
I have installed stage3 2008 and latest portage snapshot, proceeded as normal to chrooted environment and switched to the 2008 server profile which I note is:
Quote: | * This profile has not been tested thoroughly and is not considered to be
* a supported server profile at this time. For a supported server
* profile, please check the Hardened project (http://hardened.gentoo.org).
* This profile is merely a convenience for people who require a more
* minimal profile, yet are unable to use hardened due to restrictions in
* the software being used on the server. This profile should also be used
* if you require GCC 4.1 or Glibc 2.4 support. If you don't know if this
* applies to you, then it doesn't and you should probably be using
* Hardened, instead.
* If you are upgrading from a previous kernel, you may be interested
* in the following document:
* - General upgrade guide: http://www.gentoo.org/doc/en/kernel-upgrade.xml
* GNU info directory index is up-to-date.
|
so should I switch back to the normal profile, go the hardened route or what??
Code: |
...emerge -sync
...
>>> Updating Portage cache: 100%
(chroot) livecd / # ls -FGg /etc/make.profile/
total 20
drwxr-xr-x 2 4096 Apr 1 18:07 desktop/
drwxr-xr-x 2 4096 Apr 1 18:07 developer/
drwxr-xr-x 2 4096 Jul 17 09:37 no-nptl/
-rw-r--r-- 1 31 May 1 00:07 parent
drwxr-xr-x 2 4096 Apr 9 19:06 server/
(chroot) livecd / # ls -FGg /etc/make.profile
lrwxrwxrwx 1 48 Aug 12 09:54 /etc/make.profile -> ../usr/portage/profiles/default/linux/x86/2008.0/
...
(chroot) livecd / # ln -snf /usr/portage/profiles/default/linux/x86/2008.0/server /etc/make.profile
(chroot) livecd / # ls -l /etc/make.profile/
total 8
-rw-r--r-- 1 portage portage 33 Apr 1 17:40 parent
-rw-r--r-- 1 portage portage 1024 Apr 9 18:40 profile.bashrc
(chroot) livecd / #
(chroot) livecd / #
(chroot) livecd / # ls -l /etc/make.profile
lrwxrwxrwx 1 root root 53 Aug 12 11:23 /etc/make.profile -> /usr/portage/profiles/default/linux/x86/2008.0/server
(chroot) livecd / # nano -w /etc/locale.gen
(chroot) livecd / # locale-gen
* Generating 2 locales (this might take a while) with 1 jobs
* (1/2) Generating en_US.ISO-8859-1 ... [ ok ]
* (2/2) Generating en_US.UTF-8 ... [ ok ]
* Generation complete
(chroot) livecd / #
|
Make.conf needs use flags set - here it is so far:
Code: |
(chroot) livecd / # cat /etc/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CXXFLAGS="-O2 -march=i686 -pipe"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i686-pc-linux-gnu"
MAKEOPTS="-j5"
GENTOO_MIRRORS="http://mirror.pacific.net.au/linux/Gentoo ftp://mirror.pacific.net.au/linux/Gentoo ftp://ftp.swin.edu.au/gentoo http://ftp.swin.edu.au/gentoo "
(chroot) livecd / # |
Obviously I need to investigate use flags for my main apps -
mysql
php4
apache2
bind8 (9?)
exim4 (?> is what I am currently using in debian but may consider changing for this platform)
imagemagik
thats the main set I think...
Any tips on other base configs that would be good for this server
It is a :
Code: |
ProLiant DL360 G4
Proc 1: 3000 MHz
Processor 1 Internal L1 Cache: 16 KB
Processor 1 Internal L2 Cache: 1024 KB
Proc 2: 3000 MHz
Processor 2 Internal L1 Cache: 16 KB
Processor 2 Internal L2 Cache: 1024 KB
DIMM 01 : 1024 MB 333 MHz
DIMM 02 : 1024 MB 333 MHz
DIMM 03 : not installed
DIMM 04 : not installed
PCI Slot 1 : PCI-X 64 bit
PCI Slot 2 : PCI-X 64 bit
|
Guidance most appreciated. The wiki has little in a real sense - lspci and cpuinfo - perhaps I can contribute after slashing this one out...
TIA
\\' _________________ ]8P |
|
Back to top |
|
|
steveb Advocate
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Tue Aug 12, 2008 6:52 am Post subject: |
|
|
I go normally the hardened path with servers. But the hardened profile is stuck at GCC 3.4.6 and this is sometime not the best option. For some new servers I went now the path without hardened. For example my ML370G3 is now running without hardened. I did as well install all the HP/Compaq tools in order to get full control of the system. Without them the fans turn all the time on the full speed. This is disturbing and the ML370G3 even has two power supply connectors. Can you imagine the noise? But with the HP/Compaq agents things go down to normal
I recommend installing and configuring them.
// SteveB |
|
Back to top |
|
|
stardotstar l33t
Joined: 10 Feb 2006 Posts: 887 Location: 2074/SYD/NSW/AU
|
Posted: Tue Aug 12, 2008 7:44 am Post subject: |
|
|
That's great SteveB
as things have progressed I have gone the genkernel first; using that to get into a base system that I can configure the kernel for.
some of the device drivers are still a bit of a mystery to me.
I have got grub sorted after finding the hard way about the non bios drive and handling things like /dev/cciss/c0d0* as /dev/cciss!c0d0* and so on.
this article helped me in case someone is searching and finds this thread:
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c00639638&jumpid=reg_R1002_USEN
I am now in the new system and using the default 2008.0 profile, genkernel, grub and emerging things like vim, bind, proftpd, gentoolkit, bind-tools and so on...
I will further look into the HP/C tools and agents and install them and see how I go - the fans are quite loud - I too have dual power and although the noise is not like the full burst on startup it is persistent.
Thanks again
\\' _________________ ]8P |
|
Back to top |
|
|
ianw1974 Guru
Joined: 18 Oct 2006 Posts: 387 Location: UK and Poland
|
Posted: Mon Sep 22, 2008 1:04 pm Post subject: |
|
|
If it's a rack mount, 1u server - which I think the DL360 is from memory, then this will be why the fans are loud. They usually are on 1u servers like this. When I wanted a quiet server that sits next to me in the office, I tend to go for a vertical server like the ML370's - or in my particular case a Dell PowerEdge 840 and this is really nice and quiet. _________________ Ian Walker
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
Linux Systems Limited | Masternode Monitoring |
|
Back to top |
|
|
stardotstar l33t
Joined: 10 Feb 2006 Posts: 887 Location: 2074/SYD/NSW/AU
|
Posted: Wed Sep 24, 2008 10:04 am Post subject: |
|
|
Yep it is a 1RU but I am not in the colocation yet - just building and want the fans under control even then -- found some debian packages free from HP which I am giving a go.
\\' _________________ ]8P |
|
Back to top |
|
|
|