Page 1 of 1
Migrate Logs and Data to new drives
Posted: Thu Apr 21, 2016 7:32 am
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?
Re: Migrate Logs and Data to new drives
Posted: Thu Apr 21, 2016 4:59 pm
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.
Re: Migrate Logs and Data to new drives
Posted: Thu Apr 21, 2016 11:39 pm
by nathanplatt
I've added new drives, will open another case for NLS thanks
Re: Migrate Logs and Data to new drives
Posted: Fri Apr 22, 2016 9:40 am
by hsmith
Are you using LVM on the server?
Re: Migrate Logs and Data to new drives
Posted: Tue Apr 26, 2016 5:04 am
by nathanplatt
HI,
Sorry its taken me ages, but it is LVM. Home has its own partition.
Nathan
Re: Migrate Logs and Data to new drives
Posted: Tue Apr 26, 2016 9:35 am
by hsmith
What's the output of an lsblk command?
Re: Migrate Logs and Data to new drives
Posted: Wed Apr 27, 2016 7:20 am
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
Re: Migrate Logs and Data to new drives
Posted: Wed Apr 27, 2016 1:33 pm
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.
Re: Migrate Logs and Data to new drives
Posted: Tue May 03, 2016 6:00 am
by nathanplatt
Brilliant thank you for all the help guys, please close the case.