[DRBD-user] Upgrade kernel+drbd from 0.7 to 8.0

Jure Čelešnik jure at sonce.net
Tue Feb 27 11:44:52 CET 2007

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


Could someone confirm these steps to upgrade from 0.7 to 8.0?
 
#######################  upgrade steps ########################
You will find our existing configuration below. Basically we have two nodes
with two drbd devices. Meta data is internal.
What we want to do is upgrade kernel (2.6.8 to 2.6.20) and drbd (0.74 to
8.0) at the same time.
 
This is how I see it:
 
1. Install new kernel, kernel module and drbd tools on both nodes
2. Shut down both nodes
3. Start primary node with upgraded kernel
Convert meta data on primary
drbdmeta /dev/drbd0 v08 /dev/sda3 0 create-md
drbdmeta /dev/drbd1 v08 /dev/sdb1 0 create-md
4. Shutdown primary
5.Start secondary with upgraded kernel
6. Convert metadata on secondary
drbdmeta /dev/drbd0 v08 /dev/sda3 0 create-md
drbdmeta /dev/drbd1 v08 /dev/sdb1 0 create-md
7. Shutdown secondary
8. Start both nodes
 
#######################  questions  #######################
1. What is  the correct syntax for metadata dump/backup and where is the
dump file created ?
I assume something like this:
drbdmeta /dev/drbd0 v07 /dev/sda3 dump-md
 
####################### configuration #####################
 
resource drbd0 {
  protocol C;
  startup {
    degr-wfc-timeout 120;    # 2 minutes.
  }
 
  disk {
    on-io-error detach;
  }
 
  net {
    timeout 60         ; # 6 seconds   (unit = 0.1 seconds)
    connect-int 10      ;# 10 seconds  (unit = 1 second)
    ping-int 10         ;# 10 seconds  (unit = 1 second)
  }
 
  syncer {
    al-extents 257;
  }
 
  on enajstka{
    device /dev/drbd0;
    disk /dev/sda3;
    address 192.168.1.11:7788;
    meta-disk internal;
  }
 
  on dvanajstka {
    device /dev/drbd0;
    disk /dev/sda3;
    address 192.168.1.12:7788;
    meta-disk internal;
  }
}
 
resource drbd1 {
  protocol C;
  startup {
    degr-wfc-timeout 120;    # 2 minutes.
  }
 
  disk {
    on-io-error detach;
  }
 
  net {
    timeout 60         ; # 6 seconds   (unit = 0.1 seconds)
    connect-int 10      ;# 10 seconds  (unit = 1 second)
    ping-int 10         ;# 10 seconds  (unit = 1 second)
  }
 
  syncer {
    rate 1000M;
    al-extents 257;
  }
 
  on enajstka{
    device /dev/drbd1;
    disk /dev/sdb1;
    address 192.168.1.11:7789;
    meta-disk internal;
  }
  
  on dvanajstka {
    device /dev/drbd1;
    disk /dev/sdb1;
    address 192.168.1.12:7789;
    meta-disk internal;
  }
}

#################### Thanks for response ##################
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20070227/46f6569e/attachment.htm>


More information about the drbd-user mailing list