New CSC Machine: Difference between revisions

From CSCWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 23: Line 23:
apt-get install lvm2
apt-get install lvm2


You should see an update-initramfs update.
You should see an update-initramfs update. Reboot.

Change Ubuntu mirror to mirror.csclub.uwaterloo.ca, and add debian.csclub.uwaterloo.ca via /etc/apt/sources.list.d. apt-key add the key from mirror (TODO: make this easier to find)

Revision as of 14:24, 18 January 2012

Draft of how to set up a new CSC machine

Netboot:

  • Put the TFTP image in place (if dist-arch pair installed before, you may skip this).

e.g. extract http://mirror.csclub.uwaterloo.ca/ubuntu/dists/oneiric/main/installer-amd64/current/images/netboot/netboot.tar.gz to caffeine:/srv/tftp/oneiric-amd64

  • Configure DHCP server; see caffeine:/etc/dhcp/dhcpd.conf

[todo: example]

  • Force network boot

Else boot CD


For Ubuntu installer to have lvm support, apt-get install lvm2. If you still can't see the partitions (even if lvscan sees them, but no devices exist), just rename a logical volume something else and back. This makes LVM tell udev about the device. Now the partitioner should be able to see them. We prefer to use LVM for partitions (except /boot, which GRUB prefers not to be on LVM).

Regenerate the initramfs.

mount /dev/vg0/root /mnt mount /dev/sda1 /mnt/boot chroot /mnt apt-get install lvm2

You should see an update-initramfs update. Reboot.

Change Ubuntu mirror to mirror.csclub.uwaterloo.ca, and add debian.csclub.uwaterloo.ca via /etc/apt/sources.list.d. apt-key add the key from mirror (TODO: make this easier to find)