Metainformationen zur Seite
Installation von Proxmox VE per Rescue-System und debootstrap
Partitionierung
Standard (2 Disks):
Device Start End Sectors Size Type /dev/sdb1 2048 6143 4096 2M BIOS boot <- BIOS Boot /dev/sdb2 6144 530431 524288 256M Linux RAID <- /boot /dev/sdb3 530432 2099199 1568768 766M Linux RAID <- swap /dev/sdb4 2099200 104859647 102760448 49G Linux RAID <- /root /dev/sdb5 104859648 5860533134 5755673487 2.7T Linux RAID <- LUKS /data
3 Disks (2x HDD, 1xSSD): HDD:
Device Start End Sectors Size Type /dev/sda1 2048 6143 4096 2M BIOS boot /dev/sda2 6144 530431 524288 256M Linux RAID /dev/sda3 530432 2099199 1568768 766M Linux RAID /dev/sda4 2099200 106956799 104857600 50G Linux RAID /dev/sda5 106956800 987760639 880803840 420G Linux RAID /dev/sda6 987760640 15628053134 14640292495 6.8T Linux RAID
SSD:
Device Start End Sectors Size Type /dev/sdc1 2048 6143 4096 2M BIOS boot /dev/sdc2 6144 530431 524288 256M Linux RAID /dev/sdc3 530432 2099199 1568768 766M Linux RAID /dev/sdc4 2099200 106956799 104857600 50G Linux RAID /dev/sdc5 106956800 987760639 880803840 420G Linux RAID
Disks erstellen
cgdisk sgdisk --replicate=/dev/sdb /dev/sda sgdisk -G /dev/sdb
Raids erstellen
2 Disks:
mdadm --create /dev/md0 --level=mirror --raid-devices=2 /dev/sda2 /dev/sdb2 mdadm --create /dev/md1 --level=mirror --raid-devices=2 /dev/sda3 /dev/sdb3 mdadm --create /dev/md2 --level=mirror --raid-devices=2 /dev/sda4 /dev/sdb4 mdadm --create /dev/md3 --level=mirror --raid-devices=2 /dev/sda5 /dev/sdb5
3 Disks:
mdadm --create /dev/md0 --level=mirror --raid-devices=3 /dev/sdc2 --write-mostly /dev/sdb2 --write-mostly /dev/sda2 mdadm --create /dev/md1 --level=mirror --raid-devices=3 /dev/sdc3 --write-mostly /dev/sdb3 --write-mostly /dev/sda3 mdadm --create /dev/md2 --level=mirror --raid-devices=3 /dev/sdc4 --write-mostly /dev/sdb4 --write-mostly /dev/sda4 mdadm --create /dev/md3 --level=mirror --raid-devices=3 /dev/sdc5 --write-mostly /dev/sdb5 --write-mostly /dev/sda5 mdadm --create /dev/md4 --level=mirror --raid-devices=2 /dev/sda6 /dev/sdb6
Installation
watch cat /proc/mdstat mkswap /dev/md1 swapon /dev/md1 mkfs.ext2 -m0 /dev/md0 mkfs.ext4 -m0 /dev/md2 mount /dev/md2 /mnt mkdir /mnt/boot mount /dev/md0 /mnt/boot debootstrap --arch=amd64 --variant=minbase buster /mnt mount -t proc none /mnt/proc mount -o bind /dev /mnt/dev mount -o bind /sys /mnt/sys chroot /mnt
sources.list:
deb http://mirror.hetzner.de/debian/packages buster main contrib non-free deb http://mirror.hetzner.de/debian/packages buster-updates main contrib non-free deb http://mirror.hetzner.de/debian/security buster/updates main contrib non-free deb http://ftp.de.debian.org/debian buster-backports main non-free contrib deb http://download.proxmox.com/debian/pve buster pve-no-subscription deb [arch=amd64] https://download.docker.com/linux/debian buster stable
passwd apt update apt install wget gnupg wget http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg wget -O- https://download.docker.com/linux/debian/gpg | apt-key add - apt install dialog vim locales apt-transport-https dpkg-reconfigure locales apt update apt dist-upgrade -V apt install postfix openssh-server mdadm iproute2 ntp man-db init ifupdown less htop cryptsetup lvm2 apt install ksmtuned --no-install-recommends apt install pve-kernel-5.4 apt install intel-microcode dpkg-reconfigure tzdata echo -n > /etc/motd
/etc/fstab:
UUID=... /boot ext2 defaults 0 2 UUID=... none swap sw 0 0 UUID=... / ext4 errors=remount-ro 0 1
/etc/network/interfaces:
auto lo iface lo inet loopback auto eth0 iface eth0 inet static address ... netmask 255.255.255.255 gateway ... pointopoint ...
/etc/default/grub:
GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0"
update-grub
update-initramfs -u
/etc/hosts:
... 1.2.3.4 hostname.domain.de hostname ...
/etc/hostname:
hostname
cd mkdir .ssh chmod 700 .ssh cd .ssh vi authorized_keys2
reboot
Rest-Installation
apt install proxmox-ve open-iscsi --no-install-recommends rm /etc/apt/sources.list.d/pve-enterprise.list apt clean apt autoremove --purge cryptsetup luksFormat /dev/md3 cryptsetup luksOpen /dev/md3 md3_crypt mkfs.ext4 -m0 /dev/mapper/md3_crypt systemctl disable pve-guests.service
/etc/fstab:
UUID=... /data ext4 noauto 0 0
mkdir /data mount /data