forked from LINBIT/drbd-0.7
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupgrade_0.7.0_to_0.7.1.txt
39 lines (28 loc) · 1.31 KB
/
upgrade_0.7.0_to_0.7.1.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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.