... | ... | @@ -4,7 +4,7 @@ |
|
|
|
|
|
Boot the FreeBSD installation CD on the machine you will use as your `ops` server. You will want to do an "Install" and then select your keymap and hostname. When it asks about optional components, only select "lib32" and "src", you do not want "ports" since you will be loading pre-built packages from Emulab.
|
|
|
|
|
|
Next it will ask you about disk partitioning. There are a variety of ways to partition disk space depending on how many disks the server has and whether you might want to enforce disk space quotas. For now we just create a single partition in which to install the base system; other partitions will be created as needed later.
|
|
|
Next it will ask you about disks and disk partitioning. There are a variety of ways to partition disk space depending on how many disks the server has and whether you might want to enforce disk space quotas. For now we just choose the first disk, probably /dev/ada0, and create a single partition in which to install the base system; other partitions will be created as needed later.
|
|
|
|
|
|
From the menu choose "Auto (UFS)", and then "Entire Disk", confirm erasing the disk and then choose either MBR or GPT. If your disk is over 2TB and the server BIOS supports UEFI boot, select GPT. Otherwise it is probably easiest to stick with MBR and a "legacy boot" BIOS setting. At this point it will want you to review the partitioning. If you are dedicating the entire disk to the OS, then just select "Finish". If you are using a single disk for everything, then you will need to shrink the FreeBSD partition to leave for Emulab. Unfortunately, doing this requires you "Delete" the existing "freebsd-ufs" and "freebsd-swap" partitions and "Create" new ones. The "freebsd-ufs" partition should be 50-100GB and should have a mountpoint of "/". The swap partition you can make 16GB or smaller. Once you have recreated these partitions select "Finish".
|
|
|
|
... | ... | @@ -89,6 +89,38 @@ If you have a second disk (/dev/ada1) available for just Emulab, then the proces |
|
|
```
|
|
|
gpart create -s GPT /dev/ada1
|
|
|
```
|
|
|
The remaining steps are very similar to the above, but note the change in device names.
|
|
|
```
|
|
|
# 50G for /usr/testbed
|
|
|
gpart add -t freebsd-ufs -s 50G ada1
|
|
|
# 10G for /share
|
|
|
gpart add -t freebsd-ufs -s 10G ada1
|
|
|
# the rest for /z (/users, /proj, /groups)
|
|
|
gpart add -t freebsd-ufs ada1
|
|
|
|
|
|
# create the filesystems and mountpoints
|
|
|
newfs -n -j /dev/ada1p1
|
|
|
mkdir /usr/testbed
|
|
|
newfs -n -j /dev/ada1p2
|
|
|
mkdir /share
|
|
|
newfs -n -j /dev/ada1p3
|
|
|
mkdir /z
|
|
|
|
|
|
# add to fstab and mount
|
|
|
echo '/dev/ada1p1 /usr/testbed ufs rw 1 2' >> /etc/fstab
|
|
|
mount /usr/testbed
|
|
|
echo '/dev/ada1p2 /share ufs rw 1 3' >> /etc/fstab
|
|
|
mount /share
|
|
|
echo '/dev/ada1p3 /z ufs rw 1 4' >> /etc/fstab
|
|
|
mount /z
|
|
|
|
|
|
# make sure /users, /proj, and /groups exist
|
|
|
mkdir /z/users /z/proj /z/groups
|
|
|
ln -s /z/users /users
|
|
|
ln -s /z/proj /proj
|
|
|
ln -s /z/groups /groups
|
|
|
```
|
|
|
|
|
|
### Using ZFS
|
|
|
|
|
|
TBD.
|
... | ... | |