
DRBD upgrade instructions from 0.7.0 to 0.7.1

With drbd-0.7.1 we have our own major number, and our own device
files. (=No longer misuse /dev/nbX)

You can either go with the new major number: Plan A (recommended)
Or stay with the old major number: Plan B

Plan A)
  * Start on the node, on which all devices are secondary.
  * /etc/init.d/drbd stop
  * Install drbd-0.7.1
  * Run these commands as root:

  sed -e "s,/dev/nbd\?,/dev/drbd,g" < /etc/drbd.conf > /etc/drbd.conf_new
  mv /etc/drbd.conf /etc/drbd.conf_old ; mv /etc/drbd.conf_new /etc/drbd.conf
  sed -e "s,/dev/nbd\?,/dev/drbd,g" < /etc/fstab > /etc/fstab_new
  mv /etc/fstab /etc/fstab_old ; mv /etc/fstab_new /etc/fstab
  sed -e "s,/dev/nbd\?,/dev/drbd,g" < /etc/ha.d/haresources > /etc/ha.d/haresources_new
  mv /etc/ha.d/haresources /etc/ha.d/haresources_old ; mv /etc/ha.d/haresources_new /etc/ha.d/haresources

   or alternatively:
   perl -i_old -pe 's,/dev/nbd?,/dev/drbd,g' /etc/{drbd.conf,fstab,ha.d/haresources}

  for i in `seq 0 15` ; do mknod -m 0660 /dev/drbd$i b 147 $i; done

  * /etc/init.d/drbd start
  * migrate all services to the just upgraded node and 
    upgrade the other node.

Plan B)
  * Create the file "/etc/default/drbd" with the content
    --snip--
    ADD_MOD_PARAM="use_nbd_major=1"
    --snap--
  * Do the usual update procedure.
  

