[DRBD-user] Swaping drbd harddrive for bigger size

Groups Account junk at lexoncom.com
Mon Sep 6 21:23:48 CEST 2010

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


So nobody know how to swap the drives for bigger ones with drbd?

On 08/26/2010 10:50 AM, Groups Account wrote:
> On 08/04/2010 04:23 PM, Groups Account wrote:
>> Currently I use 160G harddrives for drbd resources.
>> Those are sata hds with 3 partitions, one for meta data, 2 for drbd 
>> resource data.
>> I want to swap those drives to 1T.
>> How do i do that?
>> Can I simply:
>> - shutdown the secondary resource
>> - replaced the drive
>> - reformat with bigger partitions
>> - do i have to format again as drbd?
>>
>> What are the steps?
>> Are there any guides explaining how to do that?
>>
>> thx
>>
>> Bart
>>
>> the resource is configured as:
>>
>> resource r0 {
>>   protocol C;
>>   startup { wfc-timeout 0; degr-wfc-timeout     120; }
>>   disk { on-io-error detach; } # or panic, ...
>>   net {}
>>
>>  syncer { rate 10M;}
>>    on node1 {#
>>     device /dev/drbd0;
>>     disk /dev/sdc2;
>>     address 192.168.2.252:7788;
>>     meta-disk /dev/sdc1[0];
>>  }
>>   on node2 {
>>     device /dev/drbd0;
>>     disk /dev/sdc2;
>>     address 192.168.2.253:7788;
>>     meta-disk /dev/sdc1[0];
>>   }
>> }
>>
>> resource r1 {
>>   protocol C;
>>   startup { wfc-timeout 0; degr-wfc-timeout     120; }
>>   disk { on-io-error detach; } # or panic, ...
>>   net {}
>>
>>
>>   syncer { rate 10M;}
>>   on node1 {
>>     device /dev/drbd1;
>>     disk /dev/sdc3;
>>     address 192.168.2.252:7788;
>>     meta-disk /dev/sdc1[0];
>>   }
>>   on node2 {
>>     device /dev/drbd1;
>>     disk /dev/sdc3;
>>     address 192.168.2.253:7788;
>>     meta-disk /dev/sdc1[0];
>>   }
>> }
>>
>> and partitions on both servers look like:
>>
>> Disk /dev/sdc: 160.0 GB, 160041885696 bytes
>> 255 heads, 63 sectors/track, 19457 cylinders
>> Units = cylinders of 16065 * 512 = 8225280 bytes
>>
>>    Device Boot      Start         End      Blocks   Id  System
>> /dev/sdc1               1          50      401593+  83  Linux
>> /dev/sdc2              51        7399    59030842+  83  Linux
>> /dev/sdc3            7400       19457    96855885   83  Linux
>>
>>
> anyone knows what is the correct procedure to accomplish above?
>
> thx




More information about the drbd-user mailing list