From 0a7aabb112cdc298805b0c2ec2dc36a94e3e0a5e Mon Sep 17 00:00:00 2001 From: Jens True Date: Mon, 17 May 2021 16:20:58 +0200 Subject: [PATCH] Added Netdata to selfhosting. Warning notice on formatting commands --- content/post/grub-trampoline/index.md | 22 ++++++++++++++-------- content/selfhosted/stats.md | 15 +++++++++++++++ go.mod | 2 +- go.sum | 2 ++ 4 files changed, 32 insertions(+), 9 deletions(-) create mode 100644 content/selfhosted/stats.md diff --git a/content/post/grub-trampoline/index.md b/content/post/grub-trampoline/index.md index 3854261..e417b6a 100644 --- a/content/post/grub-trampoline/index.md +++ b/content/post/grub-trampoline/index.md @@ -1,23 +1,29 @@ --- -# Documentation: https://wowchemy.com/docs/managing-content/ - title: "GRUB Trampoline" subtitle: "Install GRUB on a spare drive" summary: "Using a spare drive to act as a trampoline during the boot process." date: 2021-05-03T15:28:14+02:00 -lastmod: 2021-05-03T15:28:14+02:00 -highlight: true +lastmod: 2021-05-17T15:28:14+02:00 --- # Background -Due to a BIOS bug in my HP MicroServer I have applied this workaround. The MicroServer Gen8 has a bug that prevents the use of the 5th SATA port as the primary boot device. It will automatically attempt to boot from SATA port 1 if a drive is inserted, then port 2 and so forth. By removing all the fixed drives it is possible to make the system boot from port 5. +Due to a BIOS bug in my HP MicroServer I have been forced to applied a workaround. -It is however possible to boot from the internal USB port or the internal MicroSD slot. So to solve this issue we are going to install GRUB onto a spare MicroSD card or a USB stick. The size or quality of the drive should not matter since we only need it for GRUB to jump to the drive present on the 5th SATA port. +The MicroServer Gen8 has a bug that prevents the use of the 5th SATA port as the primary boot device. It will automatically attempt to boot from SATA port 1 if a drive is inserted, then port 2 and so forth. By removing all the fixed drives it is possible to make the system boot from port 5. + +It is however possible to boot from the internal USB port or the internal MicroSD slot by default. So to solve this issue we are going to install GRUB onto a spare MicroSD card or a USB stick. The size or quality of the drive should not matter since it is only needed for GRUB to jump to the drive present on the 5th SATA port. # Steps ## Format the USB/SD Card +First we need to correctly format the new disk as a bootable FAT drive. + +{{% callout warning %}} +Be very cautious when formatting storage drives. Executing a command on the wrong drive could have disastrous consequences. +{{% /callout %}} + Find the correct device identifier. + ```shell lsblk ``` @@ -53,7 +59,7 @@ Create a mount point mkdir /tmp/mysub ``` -Mount the new parition +Mount the new partition ```shell sudo mount /dev/sdX1 /tmp/myusb @@ -83,4 +89,4 @@ Finally unmount and reboot ```shell sudo unmount /tmp/myusb sudo reboot -``` +``` \ No newline at end of file diff --git a/content/selfhosted/stats.md b/content/selfhosted/stats.md new file mode 100644 index 0000000..e15eb41 --- /dev/null +++ b/content/selfhosted/stats.md @@ -0,0 +1,15 @@ +--- +widget: hero +headless: true +cta: + url: 'https://stats.jcktrue.dk' + label: Statistics + icon_pack: fas + icon: chart-line +cta_alt: + url: 'https://www.netdata.cloud/' + label: Netdata +cta_note: + label: 'Troubleshoot slowdowns and anomalies in your infrastructure with thousands of per-second metrics, meaningful visualizations, and insightful health alarms with zero configuration.' +--- +System statistics for monitoring performance so issues can be resolved before they become problems. \ No newline at end of file diff --git a/go.mod b/go.mod index 73a4d0c..0726af4 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,6 @@ module code.jcktrue.dk/jct/jcktrue.dk go 1.15 require ( - github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210425191248-0afcc81296de // indirect + github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210516101231-84e462a5a149 // indirect github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms v0.0.0-20210425191248-0afcc81296de // indirect ) diff --git a/go.sum b/go.sum index 4a6e54b..404f004 100644 --- a/go.sum +++ b/go.sum @@ -34,5 +34,7 @@ github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210422192724-bfa3808 github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210422192724-bfa3808cb6ec/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8= github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210425191248-0afcc81296de h1:mHQIJmHZXFEqPmH4cUCFfNVUds1hBPUtTHVMMYeopn0= github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210425191248-0afcc81296de/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8= +github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210516101231-84e462a5a149 h1:yyRK2E6tQ4LZ0PMpzBv3GhKZ/tEF8OBBhsXCSN0AIhQ= +github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20210516101231-84e462a5a149/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8= github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms v0.0.0-20210425191248-0afcc81296de h1:J7MkieFVezVdQHtAvCOvAAaUv83oVMRqWzt7qkkUlPw= github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms v0.0.0-20210425191248-0afcc81296de/go.mod h1:AKpYbqUVlj0VYsc7Jsxe1o8Ko2yV31A5ZPdfpACcXJw=