Proxmox installation and tweeks
1) First thing is to decide how you want to partition your drive.
for my personal home server to maximize the server capacity: i settled on the following:
- 1 SSD (120G) for the OS formatted in EXT4.
- 3 HDDs (8T) for data formatted as ZFS in RAIDZ.
- 1 NVMe for VMs and containers that will benefit from the fast read/write speed.
logic behind this setup:
- There are so many discussions over the internet about the fastest and most secure setting for the data drive. After spending hours reading and researching this topic, i have settled on RAIDZ: one drive can fail without losing all the data. in my opinion, since i intend to backup outside of the server, just some files and folders, it didn't make sense to over provision.
2) installation setup:
install proxmox in the SSD default setting except for SWAP that was set to 20G.
- format as EXT 4
- 20G for Swap
- everything else leave default.
1. Use the drive ID when forming the zfs pool, if you change the motherboard or make hardware changes to your system it can miss up the drive letters and cause the pool to act up. when i installed a new server, i thought i would just move all my drives to new system and it should work.
I even kept the drive orders from original setup. The system booted with no issues and pool appears to be still working but there were issues i couldn't explain. i noticed that some my of old files/folder were lost. In short, i learned that i need to start using the drive IDs when forming the zfs pool.
Determine the drives ids and create a zpool on the 3 HDDs:
- ls /dev/disk/by-id
- zpool create -f -o mypool raidz /dev/disk/by-id/id-xxxxxx111 /dev/disk/by-id/id-xxxxxx222 /dev/disk/by-id/id-xxxxxx333
The NVMe will be used later as attached drive and will be keept outside the zpool for more flexibility.
3) tweeks:
to monitor server CPU temperature add the following: ( coming )
4) Commands and tricks:
1. Use wget command to directly download iso images directly to folder
cd ISO-folder
wget https://address-link-iso
2. zpool iostat -v
(more coming)
Comments
Post a Comment