SLES9 auf einem 1und1 Root-Server

1und1 Server Hardware Info

  • 3ware7006-2/8006-2 Series

Auszug aus dmesg

Adaptec aacraid driver (1.1-4 Dec 7 2005 12:16:57) 3ware Storage Controller device driver for Linux v1.26.02.001. ACPI: PCI Interrupt Link [APC3] enabled at IRQ 18 ACPI: PCI Interrupt 0000:01:09.0[A] → Link [APC3] → GSI 18 (level, low) → IRQ 17 scsi0 : 3ware Storage Controller 3w-xxxx: scsi0: Found a 3ware Storage Controller at 0xd800, IRQ: 17. isa bounce pool size: 16 pages Vendor: 3ware Model: Logical Disk 0 Rev: 1.2 Type: Direct-Access ANSI SCSI revision: 00 3ware 9000 Storage Controller device driver for Linux v2.26.02.004.

Hardware/Treiber

Systemanpassungen

inittab

Um einen Login auf der Seriellen Konsole zu ermöglichen, müssen Einträge in der inittab und der sercuretty gemacht werden.

add this line to /etc/securetty

ttyS0

add this line to /etc/inittab

T0:12345:respawn:/sbin/agetty -L ttyS0 57600 vt100 vt102

lilo.conf

/etc/lilo.conf

boot=/dev/sda
root=/dev/sda1

install=/boot/boot.b
vga=normal
timeout=60
prompt
lba32

read-only

default=lxser

serial=0,57600n8
append="console=ttyS0,57600 console=tty0 panic=30"

image=/boot/vmlinuz
        label=lxser
        append="console=tty0 console=ttyS0,57600 panic=30"

image=/boot/vmlinuz
        label=lx

image=/boot/vmlinuz-2.6.14.3-051207a
        label=1und1lx

menu.lst

grub - menu.lst

serial --unit 0 --speed 57600
terminal serial console --timeout=5

default=0
timeout=5

title linux with serial console
   root (hd0,0)
   kernel /boot/vmlinuz ro root=/dev/sda1 console=tty1 console=ttyS0,57600

title linux
   root (hd0,0)
   kernel /boot/vmlinuz ro root=/dev/sda1 console=ttyS0,57600 console=tty1

Installation Boot Image

lilo -v -v -C /etc/lilo.conf

LILO version 22.3.4, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2002 John Coffman
Released 01-Nov-2002 and compiled at 13:51:00 on Jul  1 2004.

raid_setup returns offset = 00000000  ndisk = 0
Reading boot sector from /dev/sda
Using MENU secondary loader
Calling map_insert_data
Secondary loader: 19 sectors (0x3600 dataend).

Boot image: /boot/vmlinuz -> vmlinuz-2.6.5-7.244-smp
Setup length is 10 sectors.
Mapped 3409 sectors.
Added lxser *

Boot image: /boot/vmlinuz -> vmlinuz-2.6.5-7.244-smp
Setup length is 10 sectors.
Mapped 3409 sectors.
Added lx

Boot image: /boot/vmlinuz-2.6.14.3-051207a
Setup length is 10 sectors.
Mapped 3760 sectors.
Added 1und1lx

Backup copy of boot sector in /boot/boot.0800
Map file size: 70144 bytes.
Writing boot sector.

Partitionstabelle

sfdisk -d /dev/sda

# partition table of /dev/sda
unit: sectors

/dev/sda1 : start=       32, size=   393184, Id=83
/dev/sda2 : start=   393216, size=  3907584, Id=82
/dev/sda3 : start=        0, size=        0, Id= 0
/dev/sda4 : start=  4300800, size=484093952, Id= 5
/dev/sda5 : start=  4300832, size=484093920, Id=8e

Dateisysteme anlegen

rescue:~# mkfs.ext3 /dev/sda1
mke2fs 1.37 (21-Mar-2005)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
49152 inodes, 196592 blocks
9829 blocks (5.00%) reserved for the super user
First data block=1
24 block groups
8192 blocks per group, 8192 fragments per group
2048 inodes per group
Superblock backups stored on blocks: 
        8193, 24577, 40961, 57345, 73729

Writing inode tables: done                            
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
rescue:~# tune2fs -c0 /dev/sda1
tune2fs 1.37 (21-Mar-2005)
Setting maximal mount count to -1
rescue:~# mkswap /dev/sda2
Setting up swapspace version 1, size = 2000678 kB
rescue:~# 

LVM2

rescue:~# pvcreate /dev/sda5
  Physical volume "/dev/sda5" successfully created
rescue:~# vgcreate rootvg /dev/sda5
  Volume group "rootvg" successfully created
rescue:~# vgchange -a y
  0 logical volume(s) in volume group "rootvg" now active
rescue:~# 
rescue:~# lvcreate -L2G -n rootlv rootvg
  Logical volume "rootlv" created
rescue:~# lvcreate -L2G -n varlv rootvg
  Logical volume "varlv" created
rescue:~# lvcreate -L2G -n datalv rootvg
  Logical volume "datalv" created
rescue:~# mkfs.reiserfs /dev/rootvg/rootlv 
mkfs.reiserfs 3.6.19 (2003 www.namesys.com)

A pair of credits:
Alexander  Lyamin  keeps our hardware  running,  and was very  generous  to our
project in many little ways.

Yury Umanets  (aka Umka)  developed  libreiser4,  userspace  plugins,  and  all
userspace tools (reiser4progs) except of fsck.


Guessing about desired format.. Kernel 2.6.14-051111b is running.
Format 3.6 with standard journal
Count of blocks on the device: 524288
Number of blocks consumed by mkreiserfs formatting process: 8227
Blocksize: 4096
Hash function used to sort names: "r5"
Journal Size 8193 blocks (first block 18)
Journal Max transaction length 1024
inode generation number: 0
UUID: 18164ca2-91bd-4224-8e77-cee925441a92
ATTENTION: YOU SHOULD REBOOT AFTER FDISK!
        ALL DATA WILL BE LOST ON '/dev/rootvg/rootlv'!
Continue (y/n):y
Initializing journal - 0%....20%....40%....60%....80%....100%
Syncing..ok

Tell your friends to use a kernel based on 2.4.18 or later, and especially not a
kernel based on 2.4.9, when you use reiserFS. Have fun.

ReiserFS is successfully created on /dev/rootvg/rootlv.
rescue:~# mkfs.reiserfs -q /dev/rootvg/datalv 

rescue:~# mkfs.reiserfs -q /dev/rootvg/varlv  

rescue:~# mkdir -p /mnt/{sys,home}
rescue:~# mount /dev/rootvg/rootlv /mnt/sys
rescue:~# mkdir -p /mnt/sys/{boot,var,data}
rescue:~# mount /dev/rootvg/varlv /mnt/sys/var  
rescue:~# mount /dev/sda1 /mnt/sys/boot

rescue:~# mount /dev/rootvg/datalv /mnt/home

rescue:~# cd /mnt/sys
rescue:/mnt/sys# tar xpf /mnt/home/sles9-amd64.tar
rescue:/mnt/sys# cd 
rescue:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/ram0             380M  227M  154M  60% /
tmpfs                 1.9G  4.0K  1.9G   1% /dev/shm
/dev/mapper/rootvg-rootlv
                      2.0G  512M  1.6G  25% /mnt/sys
/dev/mapper/rootvg-varlv
                      2.0G   61M  2.0G   3% /mnt/sys/var
/dev/mapper/rootvg-datalv
                      2.0G  195M  1.9G  10% /mnt/home
/dev/sda1             186M   15M  162M   9% /mnt/sys/boot
rescue:~# 

Bootloader im Chroot Environment installieren

rescue:~# chroot /mnt/sys
rescue:/# lilo -v -v -v
LILO version 22.3.4, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2002 John Coffman
Released 01-Nov-2002 and compiled at 13:51:00 on Jul  1 2004.

raid_setup returns offset = 00000000  ndisk = 0
Reading boot sector from /dev/sda
Device 0x0801: BIOS drive 0x80, 64 heads, 368 cylinders,
               32 sectors. Partition offset: 32 sectors.
Using MENU secondary loader
Calling map_insert_data
Secondary loader: 19 sectors (0x3600 dataend).

Boot image: /boot/vmlinuz -> vmlinuz-2.6.5-7.244-smp
Device 0x0801: BIOS drive 0x80, 64 heads, 368 cylinders,
               32 sectors. Partition offset: 32 sectors.
Setup length is 10 sectors.
Mapped 3409 sectors.
Mapping RAM disk /boot/initrd -> initrd-2.6.5-7.244-smp
Device 0x0801: BIOS drive 0x80, 64 heads, 368 cylinders,
               32 sectors. Partition offset: 32 sectors.
RAM disk: 3003 sectors.
Added lxser *
    <dev=0xe0,hd=0,cyl=34,sct=133>
    "ro root=fd00 console=tty0 console=ttyS0,57600 panic=30"

Boot image: /boot/vmlinuz -> vmlinuz-2.6.5-7.244-smp
Device 0x0801: BIOS drive 0x80, 64 heads, 368 cylinders,
               32 sectors. Partition offset: 32 sectors.
Setup length is 10 sectors.
Mapped 3409 sectors.
Mapping RAM disk /boot/initrd -> initrd-2.6.5-7.244-smp
Device 0x0801: BIOS drive 0x80, 64 heads, 368 cylinders,
               32 sectors. Partition offset: 32 sectors.
RAM disk: 3003 sectors.
Added lx-single
    <dev=0xe0,hd=0,cyl=34,sct=199>
    "ro root=fd00 console=tty0 console=ttyS0,57600 panic=30 1"

Boot image: /boot/vmlinuz -> vmlinuz-2.6.5-7.244-smp
Device 0x0801: BIOS drive 0x80, 64 heads, 368 cylinders,
               32 sectors. Partition offset: 32 sectors.
Setup length is 10 sectors.
Mapped 3409 sectors.
Mapping RAM disk /boot/initrd -> initrd-2.6.5-7.244-smp
Device 0x0801: BIOS drive 0x80, 64 heads, 368 cylinders,
               32 sectors. Partition offset: 32 sectors.
RAM disk: 3003 sectors.
Added lx
    <dev=0xe0,hd=0,cyl=35,sct=9>
    "ro root=fd00 console=ttyS0,57600 console=tty0 panic=30"

Boot image: /boot/vmlinuz-2.6.14.3-051207a
Device 0x0801: BIOS drive 0x80, 64 heads, 368 cylinders,
               32 sectors. Partition offset: 32 sectors.
Setup length is 10 sectors.
Mapped 3760 sectors.
Added 1und1lx
    <dev=0xe0,hd=0,cyl=35,sct=75>
    "ro root=fd00 console=tty0 console=ttyS0,57600 panic=30 1"

Boot image: /boot/vmlinuz-2.6.14.3-051207a
Device 0x0801: BIOS drive 0x80, 64 heads, 368 cylinders,
               32 sectors. Partition offset: 32 sectors.
Setup length is 10 sectors.
Mapped 3760 sectors.
Mapping RAM disk /boot/initrd-2.6.14.3-051207a
Device 0x0801: BIOS drive 0x80, 64 heads, 368 cylinders,
               32 sectors. Partition offset: 32 sectors.
RAM disk: 2536 sectors.
Added 1und1lxinitrd
    <dev=0xe0,hd=0,cyl=35,sct=115>
    "ro root=fd00 console=tty0 console=ttyS0,57600 panic=30 1"

/boot/boot.0800 exists - no backup copy made.
Map file size: 168448 bytes.
Writing boot sector.
Failsafe check:  boot_dev_nr = 0x0800 0xfff0
rescue:/# exit
rescue:~#

fstab anpassen

/dev/rootvg/rootlv   /                    ext3       acl,user_xattr        1 1
/dev/sda1            /boot                ext3       acl,user_xattr        1 2
/dev/sda2            swap                 swap       pri=42                0 0
/dev/rootvg/varlv    /var                 reiserfs   acl,user_xattr        1 1
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
tmpfs                /tmp                 tmpfs      noauto                0 0

/etc/sysconfig/kernel anpassen (LVM2)

INITRD_MODULES="3w-xxxx aacraid 3w-9xxx jbd ext3 dm_mod reiserfs"

initd neu erstellen (LVM2)

Root device:    /dev/rootvg/rootlv (mounted on / as ext3)
Module list:    3w-xxxx aacraid 3w-9xxx jbd ext3 dm_mod reiserfs dm-mod dm-snapshot

Kernel image:   /boot/vmlinuz-2.6.5-7.244-smp
Initrd image:   /boot/initrd-2.6.5-7.244-smp
Shared libs:    lib64/ld-2.3.3.so lib64/libacl.so.1.1.0 lib64/libattr.so.1.1.0 lib64/libblkid.so.1.0 lib64/libc.so.6 lib64/libdevmapper.so.1.01 lib64/libdl.so.2 lib64/libpthread.so.0 lib64/librt.so.1 lib64/libselinux.so.1 lib64/libuuid.so.1.2 
Modules:        kernel/drivers/scsi/scsi_mod.ko kernel/drivers/scsi/sd_mod.ko kernel/drivers/scsi/3w-xxxx.ko kernel/drivers/scsi/aacraid/aacraid.ko kernel/drivers/scsi/3w-9xxx.ko kernel/fs/jbd/jbd.ko kernel/fs/ext3/ext3.ko kernel/drivers/md/dm-mod.ko kernel/fs/reiserfs/reiserfs.ko kernel/drivers/md/dm-snapshot.ko 
Including:      udev dm/lvm2

UP

Jetzt wird es spannend

 
wissen/tips_und_tricks/rootserver/1und1_rootserver_mit_sles9.txt · Zuletzt geändert: 05.09.2010 20:31
 
Recent changes RSS feed Donate Valid XHTML 1.0 Valid CSS Recent cached RSS feed cacert-signed web site: inhalt.serviert.de