Page 1 of 2
Nagios backups file size =biggun's
Posted: Mon Feb 03, 2014 1:00 pm
by benhank
Hello all.
When I run
Code: Select all
/usr/local/nagiosxi/scripts/backup_xi.sh script
I run out of space on teh root dir.
I have modified the files to be backed up and added a few directories, but they aren't big. I tried to change the default backup folder to
, which runs fine. I changed the default dir in
Code: Select all
/usr/local/nagiosxi/scripts/restore_xi.sh
to
to but then when I run it fails because the restore script can find the file in
.
So, is there another line or something i need to modify, or is there a way to increase the size of the root "/" not "/root"directory on my machine?
I attached the two files that create the backup that causes the disk space error.
Thanks in advance.
ps. I woulda cracked a coupla jokes, but i am dog tired.
Re: Nagios backups file size =biggun's
Posted: Mon Feb 03, 2014 1:37 pm
by abrist
XI backups include the rrds, databases, configs, logs. Think about that for a moment, specifically the rrds. Depending on the number of checks, they may use gigs, if not 10s of gigs in the largest of installs. Logs can also get crazy big. You will probably need to increase the volume size, or backup to an external location (as you were trying). If you are running a vm, you can increase the volume size by following the document below:
http://assets.nagios.com/downloads/nagi ... M_Disk.pdf
Re: Nagios backups file size =biggun's
Posted: Mon Feb 03, 2014 1:53 pm
by benhank
All righty bro! Thanks!
On a side note, the restore_xi.sh script does not restore plugins. Is there a reason for that? I mean is backing up the plugins problematic? I wanna know because I want to add the plugins to that backup_xi.sh script.
Sorry man, one more is it possible to increase the size of "/"? right now its using 50gb on a 500gb drive ....I was stupid back then when I set up the server...
Re: Nagios backups file size =biggun's
Posted: Mon Feb 03, 2014 2:05 pm
by abrist
So I assume this is not a virtual machine?
Re: Nagios backups file size =biggun's
Posted: Mon Feb 03, 2014 2:05 pm
by tmcdonald
benhank wrote:On a side note, the restore_xi.sh script does not restore plugins. Is there a reason for that? I mean is backing up the plugins problematic? I wanna know because I want to add the plugins to that backup_xi.sh script.
Shouldn't hurt anything. Could be that when we wrote the script it was assumed that stock plugins would be used and nothing needs to be backed up.
benhank wrote:Sorry man, one more is it possible to increase the size of "/"? right now its using 50gb on a 500gb drive
Probably just fdisk it if a physical machine. If virtual:
http://assets.nagios.com/downloads/nagi ... M_Disk.pdf
benhank wrote:....I was stupid back then when I set up the server...
So was I, bro. So was I...
Re: Nagios backups file size =biggun's
Posted: Mon Feb 03, 2014 2:33 pm
by benhank
no not a vm. vm's are for ppl who plan properly...
Re: Nagios backups file size =biggun's
Posted: Mon Feb 03, 2014 2:37 pm
by abrist
Re: Nagios backups file size =biggun's
Posted: Mon Feb 03, 2014 3:02 pm
by benhank
yes:
Code: Select all
[root@lkennagiost01 ~]# fdisk -l
Disk /dev/sda: 293.5 GB, 293496628224 bytes
255 heads, 63 sectors/track, 35682 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000dbfb7
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 35683 286104576 8e Linux LVM
Disk /dev/sdb: 500.1 GB, 500074307584 bytes
255 heads, 63 sectors/track, 60797 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00050cbe
Device Boot Start End Blocks Id System
/dev/sdb1 1 60798 488352768 8e Linux LVM
Disk /dev/sdc: 500.1 GB, 500074307584 bytes
255 heads, 63 sectors/track, 60797 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001f125
Device Boot Start End Blocks Id System
/dev/sdc1 1 60798 488352768 8e Linux LVM
Disk /dev/sdd: 500.1 GB, 500074307584 bytes
255 heads, 63 sectors/track, 60797 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e106f
Device Boot Start End Blocks Id System
/dev/sdd1 1 60798 488352768 8e Linux LVM
Disk /dev/mapper/vg_lkennagiost01-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_lkennagiost01-lv_swap: 19.0 GB, 19008585728 bytes
255 heads, 63 sectors/track, 2310 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_lkennagiost01-lv_home: 1720.5 GB, 1720482529280 bytes
255 heads, 63 sectors/track, 209170 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
[root@lkennagiost01 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_lkennagiost01-lv_root 50G 40G 7.6G 84% /
tmpfs 7.8G 12K 7.8G 1% /dev/shm
/dev/sda1 485M 144M 317M 32% /boot
/dev/mapper/vg_lkennagiost01-lv_home 1.6T 1.1G 1.5T 1% /home
[root@lkennagiost01 ~]#
Re: Nagios backups file size =biggun's
Posted: Mon Feb 03, 2014 3:09 pm
by abrist
Alright, and it looks like you have a giant, unused /home partition. We will have to decrease that as well. This is real sticky business. If it7 is messed up, there is no recover path. Do a full rsync or system back up before trying to do this. I would be partial to helping through a remote session once you have taken the absolutely necessary precautions.
Re: Nagios backups file size =biggun's
Posted: Mon Feb 03, 2014 3:17 pm
by benhank
ok Ill get a backup. on a side side note, you have a doc that shows how to use rysinc 4 this? I have googled it, but the replies have me googled..

if not dont sweat it ill let you know when I ha backup and tested it.