Migrate Logs and Data to new drives

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Migrate Logs and Data to new drives

Post by nathanplatt »

Hi Guys,

I've installed a new raid onto the server and want to transfer the data from the current drive to the new raid, can i just move the RRD files and and logs rather than re-installing the whole program to the other drive? I also want to do this for LogServer as well... is this nice and easy or a lot of time and effort?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Migrate Logs and Data to new drives

Post by rkennedy »

When you mention you've installed a new raid onto the server, can you please clarify? Are you deploying a new core server, or have you just added additional disks?

As we're in the Core section here, could you please make a new post in the NLS forum relating to it? We do like to keep things isolated to one issue per thread.
Former Nagios Employee
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: Migrate Logs and Data to new drives

Post by nathanplatt »

I've added new drives, will open another case for NLS thanks
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Migrate Logs and Data to new drives

Post by hsmith »

Are you using LVM on the server?
Former Nagios Employee.
me.
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: Migrate Logs and Data to new drives

Post by nathanplatt »

HI,

Sorry its taken me ages, but it is LVM. Home has its own partition.

Nathan
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Migrate Logs and Data to new drives

Post by hsmith »

What's the output of an lsblk command?
Former Nagios Employee.
me.
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: Migrate Logs and Data to new drives

Post by nathanplatt »

Code: Select all

NAME            MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda               8:0    0 232.9G  0 disk
├─sda1            8:1    0   500M  0 part  /boot
└─sda2            8:2    0 232.4G  0 part
  ├─centos-root 253:0    0    50G  0 lvm   /
  ├─centos-swap 253:1    0   7.9G  0 lvm   [SWAP]
  └─centos-home 253:2    0 174.5G  0 lvm   /home
sdb               8:16   0 465.8G  0 disk
└─sdb1            8:17   0 465.8G  0 part
  └─md0           9:0    0 465.7G  0 raid1
sdc               8:32   0 465.8G  0 disk
└─sdc1            8:33   0 465.8G  0 part
  └─md0           9:0    0 465.7G  0 raid1
sr0              11:0    1  1024M  0 rom
Last edited by tmcdonald on Wed Apr 27, 2016 9:56 am, edited 1 time in total.
Reason: Please use [code][/code] tags around terminal output
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Migrate Logs and Data to new drives

Post by tmcdonald »

As long as the paths remain the same, nagios should not care (or know) which drive it is stored on, as this is handled as an abstraction by the filesystem.
Former Nagios employee
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: Migrate Logs and Data to new drives

Post by nathanplatt »

Brilliant thank you for all the help guys, please close the case.
Locked