Adding a new disk to store logs
Posted: Mon Aug 17, 2015 9:23 am
Hello,
I'm in the process of adding a new disk to my NLS nodes to get some extra storage and wanted to be sure I'm following 'best' practices.
So I added a new 250 GB eager zeroed disk on a separate SCSI controller in VMware.
hen I did
It seems like the disk is correctly mounted. Is my above procedure for adding a new virtual disk plus minus how you guys would add a new disk to a NLS node? I made it ext4 as the sda1 is also ext4. I guess I should add it to /etc/fstab so it stays mounted afetr a reboot?
Then I would just need to follow http://assets.nagios.com/downloads/nagi ... erver.pdf and add /mnt/data to DATA_DIR?
Thanks for confirming or 'suggesting' a better way.
Willem
I'm in the process of adding a new disk to my NLS nodes to get some extra storage and wanted to be sure I'm following 'best' practices.
So I added a new 250 GB eager zeroed disk on a separate SCSI controller in VMware.
hen I did
Code: Select all
fdisk -l
fidks /dev/sdb
n
p
1
<enter>
<enter>
w
mkfs.ext4 /dev/sdb1
mkdir /mnt/data
mount /dev/sdb1 /mnt/dataThen I would just need to follow http://assets.nagios.com/downloads/nagi ... erver.pdf and add /mnt/data to DATA_DIR?
Thanks for confirming or 'suggesting' a better way.
Willem