Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dell 2650 Setup (or any SCSI Server) Documentation How-To
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
EvilCartman
n00b
n00b


Joined: 25 Nov 2004
Posts: 6

PostPosted: Tue Nov 30, 2004 7:50 pm    Post subject: Dell 2650 Setup (or any SCSI Server) Documentation How-To Reply with quote

How to Setup Gentoo on DELL PowerEdge 2650
----------------------------------------------------------------

This is a step-by-step guide on how to setup Gentoo on the Dell PowerEdge 2650. This same setup should still work for other servers with a SCSI setup.

Boot Gentoo LiveCD 2004.3 on system.

Get the internet going by editing the /etc/conf.d/net file and set the IP address and Gateway of the server.

Code:

iface_eth0="10.0.0.3 broadcast 10.0.0.255 netmask 255.255.255.0"
gateway="eth0/10.0.0.254”
#Then setup the resolv.conf with
nameserver 10.0.2.1
nameserver 10.0.2.6


Then activate eth0 with the following command:
Code:

/etc/init.d/net.eth0 start

Use fdisk to partiton the hard drive into three primary partitions.
/dev/sda1 will be the boot
/dev/sda2 will be the swap
/dev/sda3 will be the root

Here is a sequence of steps to create the partitions.

Create primary partition 1 (/dev/sda1) for booting and set for raid autodetect (fd).
Code:

n
p
1
(press Enter)
+100M
a
1
t
1
fd

Create primary partition 2 for swap. Set the size of the swap to two times the amount of RAM.

Code:

n
p
2
(press Enter)
+2048M
t
2
82


Create primary partition 3 for file system root and set for raid autodetect (fd).
Code:

N
p
3
(press Enter)
(press enter, again)
t
3
fd


Write partition data to disk, and exit fdisk
Code:

w


Create the file systems in the new partitions.

Code:

#Create file system of type ext2 on /dev/sda1
mke2fs /dev/sda1

#Create file system of type reiserfs on /dev/sda3
mkreiserfs /dev/sda3

#make and activate swap
mkswap /dev/sda2
swapon /dev/sda2


Prepare future file system root under /mnt/gentoo. After preperations, chroot to it.
Code:

#Mount the new root and boot partitions
mount /dev/sda3 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/sda1 /mnt/gentoo/boot

#Extract the stage 3 tarball into the future root.
cd /mnt/gentoo
tar -xvjpf /mnt/cdrom/stages/stage2-i686-2004.3.tar.bz2

#save the settings in the future filesystem.
cp -L  /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
cp -L /etc/conf.d/net /mnt/gentoo/etc/conf.d/net

#mount the /proc filesystem, so that
#it is available after chroot operation
mount -t proc none /mnt/gentoo/proc

#Since it is scsi, you can make it remember the mount points by mounting the /dev
#to the server
mount -o bind /dev /mnt/gentoo/dev

#chroot into new environment
chroot /mnt/gentoo /bin/bash


Setup a bootable system in the chrooted environment.
Code:

#update environmental variables
env-update
source /etc/profile

#Set the root password again, so that it is written into /etc/password
passwd

#Set the time zone
ln -sf /usr/share/zoneinfo/PST8PDT /etc/localtime

#download the portage tree
emerge sync

#update portage
emerge portage
#Install the Linux kernel sources
emerge vanilla-sources


Hardware that is on the 2650 you need to know for the kernel setup.

By looking at other forums, I have found out:
Ethernet: Tigon3, intel eepro1000
SCSI Adapter: aacraid, Adaptec AIC7xxx
Filesystems: ext2, reiserfs, Virtual memory fs support, /proc fs support, /dev fs support, Automatically mount at boot

Do NOT select /dev/pts [ ]
Do NOT select any scsi stuff you do not have in your machine.

Code:

cd /usr/src/linux
make menuconfig


    Select Code maturity level options
      Turn on Prompt for development and/or incomplete code/drivers

      Select Processor type and features

      Select (Pentium-III/Celeron(Coppermine)) Processor family

      Select your processor from the list.



    Select SCSI Support
      Select low-level support

      Compile (with *) AACRAID Support

      Compile (with *) Adaptec AIC7xxx Support (do not select anything below it)



    Select Networking options (See Iptables Tutorial 1.1.19)
      Turn on Network packet filtering (replaces ipchains)

      Select IP: Netfilter Configuration

      Compile as module Connection tracking (required for masq/NAT) (NEW)

      Compile as module IP tables support (required for filtering/masq/NAT) (NEW)

      Compile as module Packet filtering (NEW)

      Compile as module REJECT target support

      Compile as module Full NAT (NEW)

      Compile as module REDIRECT target support (NEW)

      Compile as module LOG target support



    Select Network device support
      Select Ethernet (10 or 100Mbit)

      Select support for your ethernet card from the list. (compile as a module)



    Select File systems
      Deselect /dev/pts (It will not work if selected)

      Select Ext3 journalling file system support

      Select /dev file system support (EXPERIMENTAL)

      Select Automatically mount at boot

      Select Reiserfs




    Select Sound
      Turn off Sound card support



    Exit and save.



Code:

#Compile the kernel
make dep
make bzImage
make modules
make modules_install
cp arch/i386/boot/bzImage /boot/kernel-2.4.28
cp System.map /boot/System.map-2.8.28

#Install an editor.
emerge vim


Replace the contents of /etc/fstab with the following.
Code:

/dev/sda1           /boot       ext2   defaults  1 2
/dev/sda2           none        swap   sw                0 0
/dev/sda3           /           reiserfs   noatime           1 1

none                /proc       proc   defaults          0 0
none                /dev/shm    tmpfs  defaults          0 0

/dev/cdroms/cdrom0  /mnt/cdrom  auto   noauto,user       0 0


Replace the contents of /etc/hosts with something like the following.
Code:

127.0.0.1     localhost
10.0.0.3      billy


Set your host name and domain name by running something like the following.
Code:

echo billy > /etc/hostname
echo drturner.net > /etc/dnsdomainname
rc-update add domainname default


Install the grub boot loader.
Code:

emerge grub

Configure grub by creating the file /boot/grub/grub.conf with the following contents.
Code:

default 0
timeout 5
title=Gentoo Linux 2.4.28
root (hd0,0)
kernel /kernel-2.4.28


Prepare to install grub, and install grub.
Code:

cp /proc/mounts /etc/mtab
grub-install --root-directory=/boot /dev/sda
# Add initialization scripts for networking and sshd
# to the default runlevel.
rc-update add net.eth0 default
rc-update add sshd default


Exit the chroot environment, unmount new filesystems, and reboot.
Code:

exit
cd /
umount /mnt/gentoo/boot
umount /mnt/gentoo/proc
umount /mnt/gentoo/dev
umount /mnt/gentoo
reboot

Make sure to take out the cdrom and enjoy!!

:D :D
_________________
---------------------------------------
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Wed Dec 15, 2004 3:38 pm    Post subject: Reply with quote

Nice Guide! I'll be referencing it several times in the next few weeks.

I have one problem I don't see addressed that maybe you can help on.

With the following NICs I'm using the tg3 driver, but It doesn't get an IP unless I start it manually with
Code:

ifconfig eth0 dynamic up
dhcpcd eth0

The NICs are listed as this in /proc/pci
Code:

  Bus  3, device   6, function  0:
    Ethernet controller: Broadcom Corporation NetXtreme BCM5703X Gigabit Ethernet (rev 2).
      IRQ 28.
      Master Capable.  Latency=64.  Min Gnt=64.
      Non-prefetchable 64 bit memory at 0xfcf10000 [0xfcf1ffff].
  Bus  3, device   8, function  0:
    Ethernet controller: Broadcom Corporation NetXtreme BCM5703X Gigabit Ethernet (#2) (rev 2).
      IRQ 29.
      Master Capable.  Latency=64.  Min Gnt=64.
      Non-prefetchable 64 bit memory at 0xfcf00000 [0xfcf0ffff].


Any idea how I can get an IP address when I run /etc/init.d/net.ethX?
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
EvilCartman
n00b
n00b


Joined: 25 Nov 2004
Posts: 6

PostPosted: Wed Dec 15, 2004 6:54 pm    Post subject: Reply with quote

Hi,

Did you copy the /etc/conf.d/net to the /mnt/gentoo/etc/conf.d before chrooting and/or booting into new system?

Did you set the file with (use whatever number you use for your ethX):

Code:

iface_eth0="dhcp"


And set DNS (resolv.conf), gateway(the net file), etc. correctly?

Also did you set the rc-update to boot the card at default:

Code:

rc-update add net.eth0 default


If this does not solve it, can I see your /etc/conf.d/net file?

Hope this helps
_________________
---------------------------------------
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Wed Dec 15, 2004 7:14 pm    Post subject: Reply with quote

Yeah, did that.

# /etc/conf.d/net:

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
iface_eth0="dhcp"
#dhcpcd_eth0="..."
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
BillyBob-SA1
n00b
n00b


Joined: 17 Nov 2004
Posts: 53

PostPosted: Thu Dec 23, 2004 9:24 pm    Post subject: Reply with quote

Can't help with the DHCP issue but, can someone tell me why /dev/pts won't work? I am a SA at an ISP and I have 3 2650's I am going to be upgrading to Gentoo in the next couple months from an earlier RH distro. Never heard of pts's not functioning.

Enlighten me please.

Thanks in advance...
Back to top
View user's profile Send private message
Flying_Horse
n00b
n00b


Joined: 22 Aug 2004
Posts: 33
Location: Wohmbrechts, Germany

PostPosted: Wed Dec 29, 2004 1:03 pm    Post subject: Reply with quote

Hmm, I can be totaly wrong, but perhaps it helps to acitvate the BSD-Style PTY in the kernel config:

[*] Legacy (BSD) PTY support
(64) Maximum number of legacy PTY in use

I can't test it on my servers right now, but I have /dev/pts/* so maybe it's worth trying.

Cheers, Klaus
Back to top
View user's profile Send private message
BillyBob-SA1
n00b
n00b


Joined: 17 Nov 2004
Posts: 53

PostPosted: Wed Dec 29, 2004 1:56 pm    Post subject: Reply with quote

I would suspect that is the issue. :lol:

Can't imagine why else it would not work...

I'll have to come back here and drop a note when I get started on mine...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum