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 14:13] – 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 336: | Line 336: | ||
# take it from your mdadm details | # take it from your mdadm details | ||
# | # | ||
- | export RAID_DEVICE=/ | + | export RAID_DEVICE=/ |
export CHUNK_SZ_KB=256 | export CHUNK_SZ_KB=256 | ||
export PARITY_DRIVE_COUNT=1 | export PARITY_DRIVE_COUNT=1 | ||
Line 345: | Line 345: | ||
-f \ | -f \ | ||
-l lazy-count=1 \ | -l lazy-count=1 \ | ||
- | -d sunit=$(($CHUNK_SZ_KB*2)),swidth=$(($CHUNK_SZ_KB*2*$NON_PARITY_DRIVE_COUNT)) \ | + | -d sunit=$(($CHUNK_SZ_KB*2)) |
+ | -d swidth=$(($CHUNK_SZ_KB*2*$NON_PARITY_DRIVE_COUNT)) \ | ||
$RAID_DEVICE | $RAID_DEVICE | ||
+ | |||
+ | |||
+ | # Check Result / Details: | ||
+ | |||
+ | xfs_info / | ||
+ | |||
+ | # meta-data=/ | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # data | ||
+ | # | ||
+ | # naming | ||
+ | # log =internal log | ||
+ | # | ||
+ | # realtime =none | ||
+ | # | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
# FIXME | # FIXME | ||
# mkfs.xfs -L raid5lv / | # mkfs.xfs -L raid5lv / | ||
+ | |||
+ | |||
+ | # Check Result / Details: | ||
+ | |||
+ | xfs_info / | ||
+ | |||
+ | FIXME | ||
+ | |||
+ | |||
+ | |||
</ | </ | ||
Line 403: | 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 480: | Line 550: | ||
} | } | ||
- | mdState=$( / | + | mdState=$( / |
case " | case " | ||
Line 500: | 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 508: | Line 578: | ||
# | # | ||
# | # | ||
- | * 06-22 * * * root / | + | 5 06-22 * * * root / |
EOF | EOF |
it-artikel/linux/proxmox-7-installation-and-configuration-with-two-network-interfaces.1667139219.txt.gz · Last modified: 2022-10-30 14:13 by axel.werner.1973@gmail.com