LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-08-2011, 04:53 AM   #1
axicos
LQ Newbie
 
Registered: Mar 2011
Posts: 1

Rep: Reputation: 0
Question DRBD resource data move


Hi all,

I have a two node DRBD + Heartbeat setup. I'm running an email server on them and have sync between the email server storage resource. I need to move this to new disks (15k instead of 7200).

Currently the config is:

/etc/drbd.conf:

global { usage-count no; }
resource MailDataDir {
protocol C;
startup { wfc-timeout 120; degr-wfc-timeout 120; }
disk { on-io-error pass_on; no-disk-barrier; no-disk-flushes; no-disk-drain; }
syncer { rate 2000; al-extents 257; }
net { max-buffers 2048; cram-hmac-alg "sha1"; shared-secret "something-here"; unplug-watermark 2048; }
on server1.x.net { device /dev/drbd0; disk /dev/sdb1; address 10.0.0.11:7788; meta-disk internal; }
on server2.x.net { device /dev/drbd0; disk /dev/sdb1; address 10.0.0.12:7788; meta-disk internal; }
}

/etc/ha.d/ha.cf

keepalive 2
deadtime 30
warntime 10
initdead 30
bcast eth0
node server1.x.net
node server2.x.net
crm no
auto_failback on
respawn hacluster /usr/lib/heartbeat/ipfail
ping 10.0.0.1
stonith_host server2.x.net external/ipmi server1.x.net 10.0.0.10 root something-interesting lan
stonith_host server1.x.net null server2.x.net

/etc/ha.d/haresources

server1.x.net \
drbddisk::MailDataDir \
Filesystem::/dev/drbd0::/var/opt/MailDataDir \
IPaddr2::10.0.0.7/24/eth2 \
mail

Now i made the new disks available for each node as sdc partition sdc1. No filesystem is present on them.

My question is what would be the most elegant method to move the data from the current sdb1 partition to sdc1 and replace the sdb with sdc in the drbd conf?

Right now i'm thinking of defining a separate resource for drbd that uses the new disks, sync the /dev/drbd1 (/dev/sdc1) disks between the two nodes and then format sdc1 with ext3 on both nodes. After this stop heartbeat & drbd & mail services, copy the data from the sdb1 to sdc1. After this replace in the config files everything with drbd0 to drbd1 and sdb1 to sdc1, remove the new resource, while keeping only the old one with the new params, then start the resources back up.

Any thoughts?
 
Old 03-08-2011, 05:12 AM   #2
PankajRasuni
LQ Newbie
 
Registered: Nov 2009
Posts: 18

Rep: Reputation: 0
Rsync The existing data, & thereafter disable the primary disks, & thereafter configure drbd on the new ones.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Data available without DRBD layer ? bobby953 Linux - Software 3 04-11-2010 04:04 PM
[SOLVED] Mail server blocks me: warning: numeric domain name in resource data of MX record deathsfriend99 Linux - Server 1 02-04-2010 10:53 AM
Move all old 9.04 data to 9.10 SanjiSasuke Linux - Newbie 11 12-14-2009 07:26 PM
removing a DRBD resource alirezan1 Linux - Software 0 10-08-2008 05:04 PM
Clonning data, fifo/pipe/tee problem : Resource temporarily unavailable rmarco Linux - General 2 05-05-2005 11:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration