it-artikel:linux:proxmox-7-installation-and-configuration-with-two-network-interfaces
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
it-artikel:linux:proxmox-7-installation-and-configuration-with-two-network-interfaces [2022-10-30 13:45] – [Configure Storage Space :] axel.werner.1973@gmail.com | it-artikel:linux:proxmox-7-installation-and-configuration-with-two-network-interfaces [2023-08-05 14:01] (current) – axel.werner.1973@gmail.com | ||
---|---|---|---|
Line 9: | Line 9: | ||
{LAN 192.168.0.0/ | {LAN 192.168.0.0/ | ||
|| | || | ||
- | +=========================+ | + | +==========================+ |
- | | [LAN IF 192.168.0.250] | + | | [LAN IF 192.168.0.250] |
- | | | + | | |
- | | pve.lan | + | | pve.lan |
| [DMZ IF 192.168.178.250] | | | [DMZ IF 192.168.178.250] | | ||
- | +=========================+ | + | +==========================+ |
|| | || | ||
{DMZ 192.168.178.0/ | {DMZ 192.168.178.0/ | ||
Line 39: | Line 39: | ||
# has been assigned the /dev/sdx | # has been assigned the /dev/sdx | ||
# device name. | # device name. | ||
- | sudo dd if=/ | + | sudo dd if=/ |
</ | </ | ||
- Unplug USB Drive and plug it into Proxmox Server. Boot from USB drive. A somewhat graphical Grub Bootmenü should be visible. **Choose install** | - Unplug USB Drive and plug it into Proxmox Server. Boot from USB drive. A somewhat graphical Grub Bootmenü should be visible. **Choose install** | ||
Line 156: | Line 156: | ||
It's important to setup automatic email forwarding early on, so the system can notify us on any problem detected. Therefor we entered an email address while we were with the graphical installer. This is ok but it may not be enough to enable proper outbound email. | It's important to setup automatic email forwarding early on, so the system can notify us on any problem detected. Therefor we entered an email address while we were with the graphical installer. This is ok but it may not be enough to enable proper outbound email. | ||
- | Since GMAIL failed us and tools like postfix etc are not " | + | Since GMAIL failed us and tools like postfix etc are not " |
- Make sure you entered a valid (destination) Email Address while Proxmox Installation. If you need to change it you can do this using the Web UI. Therefor ... | - Make sure you entered a valid (destination) Email Address while Proxmox Installation. If you need to change it you can do this using the Web UI. Therefor ... | ||
Line 332: | Line 332: | ||
# - this might take a while | # - this might take a while | ||
# on large volumes | # on large volumes | ||
- | mkfs.xfs -L raid5lv / | + | |
+ | # need this for XFS allignment calculations | ||
+ | # take it from your mdadm details | ||
+ | # | ||
+ | export RAID_DEVICE=/ | ||
+ | export CHUNK_SZ_KB=256 | ||
+ | export PARITY_DRIVE_COUNT=1 | ||
+ | export NON_PARITY_DRIVE_COUNT=2 | ||
+ | |||
+ | mkfs.xfs | ||
+ | | ||
+ | -f \ | ||
+ | -l lazy-count=1 \ | ||
+ | -d sunit=$(($CHUNK_SZ_KB*2)) \ | ||
+ | -d swidth=$(($CHUNK_SZ_KB*2*$NON_PARITY_DRIVE_COUNT)) \ | ||
+ | $RAID_DEVICE | ||
+ | |||
+ | |||
+ | # Check Result / Details: | ||
+ | |||
+ | xfs_info / | ||
+ | |||
+ | # meta-data=/ | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # data | ||
+ | # | ||
+ | # naming | ||
+ | # log =internal log | ||
+ | # | ||
+ | # realtime =none | ||
+ | # | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | # FIXME | ||
+ | # mkfs.xfs -L raid5lv / | ||
+ | |||
+ | |||
+ | # Check Result / Details: | ||
+ | |||
+ | xfs_info | ||
+ | |||
+ | FIXME | ||
+ | |||
+ | |||
</ | </ | ||
Line 386: | Line 436: | ||
df -h / /raid* | df -h / /raid* | ||
+ | |||
+ | </ | ||
+ | - Finally (after the raid is finished syncing) let's do a little performance test (with pvw on board tools) and compare the ssd boot device with the lvm on mdadm raid:< | ||
+ | pveperf # root fs | ||
+ | |||
+ | pveperf /raid5lv/ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | root@pve:~# pveperf # single ssd | ||
+ | |||
+ | CPU BOGOMIPS: | ||
+ | REGEX/ | ||
+ | HD SIZE: | ||
+ | BUFFERED READS: | ||
+ | AVERAGE SEEK TIME: 0.14 ms | ||
+ | FSYNCS/ | ||
+ | DNS EXT: | ||
+ | DNS INT: | ||
+ | |||
+ | |||
+ | root@pve:~# pveperf /raid5lv/ # xfs on lvm on dm raid | ||
+ | |||
+ | CPU BOGOMIPS: | ||
+ | REGEX/ | ||
+ | HD SIZE: | ||
+ | BUFFERED READS: | ||
+ | AVERAGE SEEK TIME: 14.22 ms <<< | ||
+ | FSYNCS/ | ||
+ | DNS EXT: | ||
+ | DNS INT: | ||
+ | |||
+ | |||
</ | </ | ||
Line 463: | Line 550: | ||
} | } | ||
- | mdState=$( / | + | mdState=$( / |
case " | case " | ||
Line 483: | Line 570: | ||
- Make shellscript executable:< | - Make shellscript executable:< | ||
- Activate a cronjob that runs the check script every minute while daytime:< | - Activate a cronjob that runs the check script every minute while daytime:< | ||
- | cat <<' | + | cat <<' |
# | # | ||
# Regular cron jobs to audibly alert admin if | # Regular cron jobs to audibly alert admin if | ||
Line 491: | Line 578: | ||
# | # | ||
# | # | ||
- | * 06-22 * * * root / | + | 5 06-22 * * * root / |
EOF | EOF |
it-artikel/linux/proxmox-7-installation-and-configuration-with-two-network-interfaces.1667137541.txt.gz · Last modified: 2022-10-30 13:45 by axel.werner.1973@gmail.com