[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Debian 6.0.2 on Power7 LPAR - it work - little howto



Hello,

Many thanks to all who supported me

 

I made a litte howto as PDF (screenshots), if somebody need it

please mail me, I will send you ASAP.

 

 

1. Create a LPAR, make the mapping in LPAR in VIOS Profile(s)

 

2. Download the ISO an map or burn it, map the dvddrive to the LPAR

http://www.debian.org/CD/http-ftp/

goto DVD click the link powerpc

 

3. Start the LPAR in SMS Menu ( 7. ), select CD as bootdevice

 

Welcome to yaboot version 1.3.13

Enter "help" to get some basic usage information

boot: install64 disk-detect/multipath/enable=true

Somtimes do this two times if it not boot!

 

4. Bootparameter

boot: install64 disk-detect/multipath/enable=true

exit the debian-installer to the Shell (use the back button to get this menu)

            after the Point: Loading additional components

 

5. # bash

 

# cd /lib/modules/2.6.xx-x-powerpc64/kernel/drivers/md

# insmod dm-mod.ko

# insmod md-mod.ko

# insmod multipath.ko

 

Go back to Installer with typing exit

 

 

6. do the installation process

 

BUT DO NOT INSTALL THE Yaboot, you have to update the yaboot before !

 

~ # mount

rootfs on / type rootfs (rw)

none on /proc type proc (rw,relatime)

none on /sys type sysfs (rw,relatime)

tmpfs on /dev type tmpfs (rw,relatime,mode=755)

none on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)

none on /sys/kernel/debug type debugfs (rw,relatime)

/dev/mapper/mpath0p2 on /target type ext4 (rw,relatime,errors=remount-ro,barrier=1,data="">

/dev/mapper/mpath0p2 on /dev/.static/dev type ext4 (rw,relatime,errors=remount-ro,barrier=1,data="">

tmpfs on /target/dev type tmpfs (rw,relatime,mode=755)

/dev/sr0 on /cdrom type iso9660 (ro,relatime)

~ # chroot /target/

# bash

# cd /var/tmp

 

Download to another system a newer yaboot

you can get it here: http://ftp.debian.org/pool/main/y/yaboot/

for example: yaboot_1.3.16-3_powerpc.deb

 

 

# scp user@host:/path/to/yaboot/yaboot-1.3.16-3.deb .

# dpkg -i yaboot_1.3.16-3_powerpc.deb

# exit

# exit

# exit   (back to the installer)

 

Welcome to yaboot version 1.3.16

Enter "help" to get some basic usage information

boot:

Linux root=/dev/sda2

 

if I dont not use root=/dev/sda2 the I can not mount the /dev/mapper/mpath0-part2

 

The boot crash and is in intramfs

 

(initramfs) mount

rootfs on / type rootfs (rw)

none on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)

none on /proc type proc (rw,nosuid,nodev,noexec,relatime)

none on /dev type devtmpfs (rw,relatime,size=1013116k,nr_inodes=253279,mode=755)

none on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)

(initramfs) mkdir /mnt

(initramfs) mount /dev/mapper/mpath0-part2 /mnt

(initramfs) mount -o bind /dev/ /mnt/dev/

(initramfs) mount -t proc proc /mnt/proc

(initramfs) chroot /mnt

(initramfs) bash

(initramfs) vi /etc/yaboot.conf

 

my /etc/yaboot.conf look like this:

 

boot="/dev/mapper/mpath0-part1"

#partition=0p2

root="/dev/mapper/mpath0-part2"

timeout=50

install=/usr/lib/yaboot/yaboot

enablecdboot

image=/boot/vmlinux

        label=Linux

        read-only

        initrd=/boot/initrd.img

        append="ipv6.disable=1"

 

image=/boot/vmlinux.old

        label=old

        read-only

        initrd=/boot/initrd.img.old

        append="ipv6.disable=1"

 

I disabled ipv6 if you need, rmove the line: append="ipv6.disable=1"

 

 

Write the new bookblock

root@(none):/# ybin -v -v

[  321.410925] ioctl32(nvsetenv:840): Unknown cmd fd(3) cmd(20007043){t:'p';sz:0} arg(00000009) on /dev/nvram

ybin: Installing primary bootstrap /usr/lib/yaboot/yaboot onto /dev/dm-1...

ybin: Installation successful

root@(none):/#  sync

root@(none):/# exit

 

Power off the LPAR, Power ON the LPAR

 

Boot the LPAR an Login

 

root@localhost:~# multipath -l

mpath0 (360050768018100bb9000000000000186) dm-0 AIX,VDASD

size=10G features='1 queue_if_no_path' hwhandler='0' wp=rw

`-+- policy='round-robin 0' prio=-2 status=active

  |- 0:0:1:0 sda 8:0  active undef running

  `- 1:0:2:0 sdb 8:16 active undef running

 

# vi /etc/apt/sources.list

 

enable this to lines

 

deb http://security.debian.org/ squeeze/updates main contrib

deb http://ftp.debian.org/debian/ squeeze-updates main contrib

 

# apt-get update

# apt-get upgrade

 

Attention: Live Partition Mobility is not possible if the LPAR is running!

 

 

 


Reply to: