... | ... | @@ -253,26 +253,6 @@ the [storage servers documentation](howto/new-machine-cymru#storage-servers) for |
|
|
filesystem in `/etc/default/ganeti-instance-debootstrap` via the
|
|
|
`PARTITION_SIZE` variable.
|
|
|
|
|
|
7. log in to the instance via the console (see [next steps](#next-steps)) and
|
|
|
add the swap and `/srv` partitions then reboot:
|
|
|
|
|
|
echo ",8G,S," | sfdisk --no-reread -N2 /dev/sda
|
|
|
echo ",+,L," | sfdisk --no-reread -N3 /dev/sda
|
|
|
reboot
|
|
|
|
|
|
8. replace the default swap file with a swap partition:
|
|
|
|
|
|
swapoff /swapfile && rm /swapfile
|
|
|
mkswap /dev/sda2
|
|
|
sed -i "s#/swapfile#$(blkid /dev/sda2 | grep -Po '\bUUID=\S+')#" /etc/fstab
|
|
|
swapon -a
|
|
|
|
|
|
9. create a `/srv` filesystem:
|
|
|
|
|
|
mkfs.ext4 -j /dev/sda3
|
|
|
echo "$(blkid /dev/sda3 | grep -Po '\bUUID=\S+') /srv ext4 defaults 0 2" >> /etc/fstab
|
|
|
mount /srv
|
|
|
|
|
|
From here on, follow the [next steps](#next-steps) above.
|
|
|
|
|
|
TODO: This would ideally be automated by an external storage provider,
|
... | ... | |