Xen + lvm on Dell PowerEdge 2950 with Debian 4.0r3 AMD64 

There are a couple things to watch out with this install. When installing the system, the installer switches eth0 and eth1 and also detects the first drive as /dev/sdb not /dev/sda. This requires you to edit the grub conf at boot and switch sdb with sda. That will allow the system to boot up properly, but /etc/fstab is still incorrect and needs to fixed as well.

For this install I broke the existing virtual disks on the raid and created a 10G disk for the system and created a second virtual disk with the remaining space allocated for xen servers.

Create a 3T lvm partition:
myxenserver:~# fdisk -l /dev/sdb

Disk /dev/sdb: 3737.2 GB, 3737292636160 bytes
255 heads, 63 sectors/track, 454366 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
myxenserver:~# parted /dev/sdb mklabel gpt
Information: Don't forget to update /etc/fstab, if necessary.

myxenserver:~# parted /dev/sdb print

Disk /dev/sdb: 3737GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags

Information: Don't forget to update /etc/fstab, if necessary.

myxenserver:~# parted /dev/sdb mkpart ext2 0 3737GB
myxenserver:~# parted /dev/sdb print

Disk /dev/sdb: 3737GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 17.4kB 3737GB 3737GB ext2

Information: Don't forget to update /etc/fstab, if necessary.

myxenserver:~# vgcreate xen /dev/sdb1
Volume group "xen" successfully created

myxenserver:~# vgdisplay
--- Volume group ---
VG Name xen
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 3.40 TB
PE Size 4.00 MB
Total PE 891039
Alloc PE / Size 0 / 0
Free PE / Size 891039 / 3.40 TB
VG UUID kZ260M-qv13-7unz-Rwd8-TfbM-qIUF-7PSHaB



Now install some packages that we will need:

myxenserver:~# apt-get install bridge-utils iproute linux-image-2.6.18-6-xen-amd64 nmap tcpdump xen-hypervisor-3.0.3-1-amd64 xen-ioemu-3.0.3-1 xen-linux-system-2.6.18-6-xen-amd64 xen-tools xen-utils-3.0.3-1 xen-utils-common

now, reboot into the new xen enabled kernel.

edit your /etc/xen-tools/xen-tools.conf to relect your local setting, the ones I use are :
#start xen-tools.conf
lvm = xen

size = 4Gb # Disk image size.
memory = 256Mb # Memory size
swap = 128Mb # Swap size
fs = ext3 # use the EXT3 filesystem for the disk image.
dist = etch # Default distribution to install.
image = sparse # Specify sparse vs. full disk images.

gateway = 10.1.2.1
netmask = 255.255.255.0

kernel = /boot/vmlinuz-2.6.18-6-xen-vserver-amd64
initrd = /boot/initrd.img-2.6.18-6-xen-vserver-amd64

mirror = http://ftp.us.debian.org/debian/

## end xen-tools.conf

now, edit /etc/xen/xend-config.sxp and uncomment:
(network-script network-bridge)
and I set:
(dom0-cpus 2)

now restart xen:

/etc/init.d/xend

now to create a xen instance
xen-create-image --hostname=xensever01 --size=300G --ip=10.1.2.100 -netmask=255.255.255.0


start the xen instance:
xm create /etc/xen/xenserver01.cfg

and you can now connect to it:
xm console xensever01

Log in with root, no password should be set at this time, so now would be a good time to set it.

Congrats! you now have a xen server up and running ready to get what ever software you want.

[ view entry ] ( 605 views ) [ 0 trackbacks ]
First Snow! 






[ view entry ] ( 730 views ) [ 0 trackbacks ]
T61 grub framebuffer resolution 

Here's an easy way to figure out the correct resolution for your T61, or pretty much anything else:

hwinfo --framebuffer

In the output, you should see something like this:
Mode 0x036e: 1680x1050 (+6720), 24 bits

Take that mode for your vga= on your kernel line:
title Debian GNU/Linux, kernel 2.6.21-2-686
root (hd0,0)
kernel /boot/vmlinuz-2.6.21-2-686 root=/dev/sda1 ro vga=0x036e
initrd /boot/initrd.img-2.6.21-2-686
savedefault

then, when you reboot, it should come up with the correct resolution.

[ view entry ] ( 427 views ) [ 0 trackbacks ]
Apache2 + php on Debian Lenny  

This is a short howto on setting up apache2 on Lenny, it will set up the basics on getting apache2 and php5 up and running on your Deian/Lenny box:

apt-get update
apt-get install apache2

apache2 should start now, you can check to make sure like so:
lsof -i:80

Now to install the php module for apache2:

apt-get install libapache2-mod-php5

apt should enable the module for you, you can always check to make sure:
a2enmod php5

Now, we have to restart our server:
/etc/init.d/apache2 stop
/etc/init.d/apache2 start


To verify, you can put a php file in /var/www , say /var/www/test.php

Now point your browser to http://your.server/test.php , and you should see the phpinfo page.

Thats it.

[ view entry ] ( 456 views ) [ 0 trackbacks ]
MD Ate My Acid 

Just messing around tonight with my Machine Drum and a Novation Nova.
Take a listen
[ view entry ] ( 316 views ) [ 0 trackbacks ]
On my way  


[ view entry ] ( 199 views ) [ 0 trackbacks ]
Sad day! No, wait, disaster avoided! 

Looks like I just lost all of my mp3s. The drive I have all of them stored on just took a dive:


May 2 13:22:10 proto kernel: ata2: no sense translation for status: 0x40
May 2 13:22:10 proto kernel: ata2: status=0x40 { DriveReady }
May 2 13:22:10 proto kernel: sd 1:0:0:0: SCSI error: return code = 0x08000002
May 2 13:22:10 proto kernel: sdb: Current: sense key: Aborted Command
May 2 13:22:10 proto kernel: Additional sense: No additional sense information
May 2 13:22:10 proto kernel: end_request: I/O error, dev sdb, sector 501481551
May 2 13:23:55 proto kernel: ata2: no sense translation for status: 0x40
May 2 13:23:55 proto kernel: ata2: status=0x40 { DriveReady }
May 2 13:23:55 proto kernel: sd 1:0:0:0: SCSI error: return code = 0x08000002
May 2 13:23:55 proto kernel: sdb: Current: sense key: Aborted Command
May 2 13:23:55 proto kernel: Additional sense: No additional sense information
May 2 13:23:55 proto kernel: end_request: I/O error, dev sdb, sector 0
May 2 13:24:25 proto kernel: ata2: no sense translation for status: 0x40
May 2 13:24:25 proto kernel: ata2: status=0x40 { DriveReady }
May 2 13:24:25 proto kernel: sd 1:0:0:0: SCSI error: return code = 0x08000002
May 2 13:24:25 proto kernel: sdb: Current: sense key: Aborted Command
May 2 13:24:25 proto kernel: Additional sense: No additional sense information
May 2 13:24:25 proto kernel: end_request: I/O error, dev sdb, sector 0


Already tried to do a fsck on it, no luck with that. Hm, maybe it's a bad cable..


UPDATE:
Turns out, yes, it was the cable. I replaced the sata cable with a different one, the one that was in there had 90deg angel connectors and didn't really seem like they fit too well. It was all I had at the time I put the drive in. But, with a new cable the drive is nice and happy. whew!

Time to do a backup.
[ view entry ] ( 262 views ) [ 0 trackbacks ]
Bring your own big wheel stop animation! 

Every Easter, theres a big race in San Francisco, the Bring Your Own Big Wheel . I took all of these photos with my D200, then put them all together in this nifty movie. It covers 3 of the races that went on that day and is made up of almost 600 individual pictures!
[ view entry ] ( 260 views ) [ 0 trackbacks ]
Rub your body remix  

Just started to remix Deep Cuts Rub Your Body track. He's put up the ableton file for it as well. This is the first part of it I just got done and thought I'd share. I swear I will finish some of these tracks some day!
[ view entry ] ( 316 views ) [ 0 trackbacks ]
SMOKE!! 

I recently got a new flash, this thing is great!

Here's a test shot from the first day with it.



If you want to see a hi-res version check here.
[ view entry ] ( 237 views ) [ 0 trackbacks ]

| 1 | 2 | Next> Last>>