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

Lars Ellenberg Lars.Ellenberg at linbit.com
Tue Feb 27 12:45:09 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.


/ 2007-02-27 11:44:52 +0100
\ Jure Čelešnik:
> 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

outch. you just scrambled the first few MB of your storage device.
compare with the output of "drbdadm -d create-md drbd0".
should read more like
# drbdmeta /dev/drbd0 v08 /dev/sda3 internal create-md
but why not use drbdadm?

> 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

outch again.

> 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 ?

stdout

> I assume something like this:
> drbdmeta /dev/drbd0 v07 /dev/sda3 dump-md

again, try "drbdadm -d dump-md $resource_name" or use it directly "drbdadm dump-md $resource_name"

-- 
: Lars Ellenberg                            Tel +43-1-8178292-0  :
: LINBIT Information Technologies GmbH      Fax +43-1-8178292-82 :
: Vivenotgasse 48, A-1120 Vienna/Europe    http://www.linbit.com :
__
please use the "List-Reply" function of your email client.



More information about the drbd-user mailing list