Increasing Storage

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
Locked
User avatar
jenglish
Posts: 59
Joined: Sat Jun 09, 2018 3:51 pm
Location: Boyers, PA

Increasing Storage

Post by jenglish »

Hello,

I was testing out NNA and needed to add more storage. I did so using a method I am familiar with and works with most Linux use-cases.

I added an additional VMDK to the VM and increased the logical volume via LVM.

Looking at the instructions here, it appears that it wants me to increase sda as opposed to adding sdb,sdc, etc.
https://assets.nagios.com/downloads/nag ... M-Disk.pdf

Is the following disk configuration supported?

Code: Select all

[root@boyvlp-nonna01 conf.d]# pvs
  PV         VG   Fmt  Attr PSize     PFree
  /dev/sda2  vg00 lvm2 a--   <199.50g       0
  /dev/sdb   vg00 lvm2 a--  <1024.00g <544.00g

[root@boyvlp-nonna01 conf.d]# df -hP /usr/local/nagiosna/
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg00-usr  500G   19G  482G   4% /usr
Capture.PNG
What provoked this question were the numerous errors here:

Code: Select all

Apr 15 14:50:03 boyvlp-nonna01.our.domain nfcapd[74087]: Process ipfix: buffer overrun!! input_offset: 8 > size left data buffer: 4
Apr 15 14:50:03 boyvlp-nonna01.our.domain nfcapd[74087]: Process ipfix: buffer overrun!! input_offset: 25 > size left data buffer: 24
Apr 15 14:50:03 boyvlp-nonna01.our.domain nfcapd[74087]: Process ipfix: buffer overrun!! input_offset: 48 > size left data buffer: 44
Apr 15 14:50:03 boyvlp-nonna01.our.domain nfcapd[74087]: Process ipfix: buffer overrun!! input_offset: 81 > size left data buffer: 60
Apr 15 14:50:03 boyvlp-nonna01.our.domain nfcapd[74087]: Process ipfix: buffer overrun!! input_offset: 81 > size left data buffer: 60
Apr 15 14:50:03 boyvlp-nonna01.our.domain nfcapd[74087]: Process ipfix: buffer overrun!! input_offset: 81 > size left data buffer: 60
Apr 15 14:50:03 boyvlp-nonna01.our.domain nfcapd[74087]: Process ipfix: buffer overrun!! input_offset: 81 > size left data buffer: 60
Apr 15 14:50:03 boyvlp-nonna01.our.domain nfcapd[74087]: Process ipfix: buffer overrun!! input_offset: 81 > size left data buffer: 60
Apr 15 14:50:03 boyvlp-nonna01.our.domain nfcapd[74087]: Process ipfix: buffer overrun!! input_offset: 81 > size left data buffer: 60
Apr 15 14:50:03 boyvlp-nonna01.our.domain nfcapd[74087]: Process ipfix: buffer overrun!! input_offset: 54 > size left data buffer: 52
Apr 15 14:50:03 boyvlp-nonna01.our.domain nfcapd[74087]: Process ipfix: buffer overrun!! input_offset: 48 > size left data buffer: 44
Apr 15 14:50:03 boyvlp-nonna01.our.domain nfcapd[74087]: Process ipfix: buffer overrun!! input_offset: 40 > size left data buffer: 36
Apr 15 14:50:03 boyvlp-nonna01.our.domain nfcapd[74087]: Process ipfix: buffer overrun!! input_offset: 44 > size left data buffer: 40
Apr 15 14:50:03 boyvlp-nonna01.our.domain nfcapd[74087]: Process ipfix: buffer overrun!! input_offset: 20 > size left data buffer: 16
Apr 15 14:50:03 boyvlp-nonna01.our.domain nfcapd[74087]: Process ipfix: buffer overrun!! input_offset: 44 > size left data buffer: 40
Apr 15 14:50:03 boyvlp-nonna01.our.domain nfcapd[74087]: Process ipfix: buffer overrun!! input_offset: 81 > size left data buffer: 60
Apr 15 14:50:03 boyvlp-nonna01.our.domain nfcapd[74087]: Process ipfix: buffer overrun!! input_offset: 81 > size left data buffer: 60
Apr 15 14:50:03 boyvlp-nonna01.our.domain nfcapd[74087]: Process ipfix: buffer overrun!! input_offset: 44 > size left data buffer: 40
Apr 15 14:50:03 boyvlp-nonna01.our.domain nfcapd[74087]: Process ipfix: buffer overrun!! input_offset: 40 > size left data buffer: 36
Apr 15 14:50:03 boyvlp-nonna01.our.domain nfcapd[74087]: Process ipfix: buffer overrun!! input_offset: 36 > size left data buffer: 32
You do not have the required permissions to view the files attached to this post.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Increasing Storage

Post by dchurch »

What's the output from the following command? I want to make sure your logical volume is properly resized.

Code: Select all

lsblk
To answer your question, that file system setup is totally supported. Totally fine.

The PDF guide you linked to doesn't appear to address LVM at all, instead assuming you're using primary partitions. It tells you to increase the size of the disk in the hypervisor, then tells you how to make Linux resize the primary partition. In your case, you added a whole new hard disk, created a PV out of the new disk's primary partition and added it to logical volume group's pool, all of which should work.

Both primary partitions and logical partition setups are supported. I think if you even wanted to store all of Nagios XI on an NFS mount or a ram (tmpfs) mount, I think you could do it. With issues, but it still might work.

I think the nfcapd error logs you're seeing are unrelated to the hard disk partitions.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
User avatar
jenglish
Posts: 59
Joined: Sat Jun 09, 2018 3:51 pm
Location: Boyers, PA

Re: Increasing Storage

Post by jenglish »

Code: Select all

[jenglish@boyvlp-nonna01 ~]$ lsblk
NAME                 MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                    8:0    0   200G  0 disk
├─sda1                 8:1    0   512M  0 part /boot
└─sda2                 8:2    0 199.5G  0 part
  ├─vg00-root        253:0    0 116.5G  0 lvm  /
  ├─vg00-swap        253:1    0     4G  0 lvm  [SWAP]
  ├─vg00-usr         253:2    0   500G  0 lvm  /usr
  ├─vg00-varlogaudit 253:3    0    10G  0 lvm  /var/log/audit
  ├─vg00-varlog      253:4    0    10G  0 lvm  /var/log
  ├─vg00-var         253:5    0    10G  0 lvm  /var
  ├─vg00-vartmp      253:6    0     1G  0 lvm  /var/tmp
  ├─vg00-tmp         253:7    0    10G  0 lvm  /tmp
  ├─vg00-opt         253:8    0    10G  0 lvm  /opt
  └─vg00-home        253:9    0     8G  0 lvm  /home
sdb                    8:16   0     1T  0 disk
└─vg00-usr           253:2    0   500G  0 lvm  /usr
sr0                   11:0    1  1024M  0 rom
[jenglish@boyvlp-nonna01 ~]$
I think the nfcapd error logs you're seeing are unrelated to the hard disk partitions.
Is there anything we can do to investigate those errors closer?

Thank you!
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Increasing Storage

Post by dchurch »

Looks like your "usr" logical volume still is sized at 500GB, and in your "vg00" volume group, there's 500GB of space that's not spoken for.

(To be honest, at 4% used on your /usr mount, maybe you want to delay adding more storage...?)

Anyhoo, your new hard drive isn't properly utilized until you run the following commands.

I'll assume you'll want to be adding the new disk space to the /usr mount point because that's where NNA stores the mainstay of its data.

Code: Select all

lvextend -l 100%FREE /dev/mapper/lv00-usr
resize2fs /dev/mapper/lv00-usr
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
User avatar
jenglish
Posts: 59
Joined: Sat Jun 09, 2018 3:51 pm
Location: Boyers, PA

Re: Increasing Storage

Post by jenglish »

Thanks. :)

This can be closed.
Locked