User Tools

Site Tools


proc:bare_metal_server_provisioning

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
proc:bare_metal_server_provisioning [2026/07/22 07:35] – [17. First boot and unlock] philproc:bare_metal_server_provisioning [2026/07/23 15:10] (current) – [18. (EXTRA) hugepage & swap configuration] phil
Line 395: Line 395:
    
 After few seconds, normal SSD become available. After few seconds, normal SSD become available.
 +
 +==== 18. (EXTRA) hugepage & swap & LVM thin configuration ====
 +
 +<code bash>
 +sudo lvcreate -L 4G -n swap vg0
 +sudo mkswap /dev/vg0/swap
 +sudo swapon /dev/vg0/swap
 +echo "/dev/vg0/swap none swap sw 0 0" | sudo tee -a /etc/fstab
 +</code>
 +
 +If you want to configure hugepage for a qemu hypervisor:
 +
 +<code bash>
 +sudo tee /etc/sysctl.d/10-hugepages.conf > /dev/null <<'EOF'
 +vm.nr_hugepages = 13312 # EXAMPLE FOR 26GB/32GB
 +EOF
 +</code>
 +
 +LVM Thin initialization to store VM storage
 +
 +<code bash>
 +sudo lvcreate --type thin-pool -L 250G -n thin vg0
 +</code>
proc/bare_metal_server_provisioning.1784705716.txt.gz · Last modified: by phil