[DRBD-cvs] r1545 - in trunk: . drbd/linux
svn at svn.drbd.org
svn at svn.drbd.org
Mon Sep 20 22:46:05 CEST 2004
Author: phil
Date: 2004-09-20 22:46:03 +0200 (Mon, 20 Sep 2004)
New Revision: 1545
Removed:
trunk/upgrade_0.6.x_to_0.7.0.txt
trunk/upgrade_0.7.0_to_0.7.1.txt
Modified:
trunk/
trunk/drbd/linux/drbd_config.h
Log:
Made it clear that this will become drbd-0.8
Property changes on: trunk
___________________________________________________________________
Name: propagate:lo
- ../drbd07-p-01
+ ../drbd08-p-01
Modified: trunk/drbd/linux/drbd_config.h
===================================================================
--- trunk/drbd/linux/drbd_config.h 2004-09-20 20:45:33 UTC (rev 1544)
+++ trunk/drbd/linux/drbd_config.h 2004-09-20 20:46:03 UTC (rev 1545)
@@ -22,7 +22,7 @@
extern const char * drbd_buildtag(void);
-#define REL_VERSION "0.7.4"
+#define REL_VERSION "0.8-pre1"
#define API_VERSION 76
#define PRO_VERSION 74
Deleted: trunk/upgrade_0.6.x_to_0.7.0.txt
===================================================================
--- trunk/upgrade_0.6.x_to_0.7.0.txt 2004-09-20 20:45:33 UTC (rev 1544)
+++ trunk/upgrade_0.6.x_to_0.7.0.txt 2004-09-20 20:46:03 UTC (rev 1545)
@@ -1,51 +0,0 @@
-
-DRBD upgrade instructions from 0.6.x to 0.7.0
-
-* Since drbd-0.7.x is protocol incompatible to drbd-0.6.x you need
- to do an offline upgrade. I.e. no "rolling" upgrade possible.
-
- Make sure that the devices are in sync, make both sides secondary
- first and then stop DRBD on both nodes.
-
-* In drbd-0.7.0 each DRBD resource needs 128MB of storage on
- some block device for its meta data. (With this /var/lib/drbd
- disappeared.)
-
- In order to do this upgrade you either need to
-
- A) shrink your filesystems on the DRBD devices by at least 128MB, or
- B) grow the backing_storage of the DRBD devices by at least 128MB, or
- C) have one separate block_device for all meta data
-
- A)
- ext2/ext3 resize2fs
- reiserfs resize_reiserfs
- xfs xfsdump, xfsrestore ; xfs can only grow
-
- B)
- lvresize in case you run DRBD on LVM
- (fdisk) (Only do this if you know what you are doing.)
-
- C)
- The size of the meta-data device needs to be at least n*128MB,
- where n is the number of DRBD resources you want to use.
-
-* Update your drbd.conf file:
- - Change it to the new syntax.
- - Remove the disk-size parameter from your drbd.conf
- - Add the meta-disk settings
- - Remove tl-size
- - Change sync-min & sync-max to sync { rate }
- - Add the al-extents setting
-
-* Start DRBD on both nodes
-
-* Tune the al-extents setting to balance the number of updates
- to the metadata per minute (see cat /proc/drbd number "al:") vs
- the expected resync time.
-
-* In case you are using heartbeat:
- - change datadisk to drbddisk in your haresources file
- - Add a Filesystem resource just after the drbddisk resorce
- E.g. Filesystem::/dev/nb0::/mnt/ha0::ext3
- - Remove the lines form /etc/fstab containing /dev/nbX
Deleted: trunk/upgrade_0.7.0_to_0.7.1.txt
===================================================================
--- trunk/upgrade_0.7.0_to_0.7.1.txt 2004-09-20 20:45:33 UTC (rev 1544)
+++ trunk/upgrade_0.7.0_to_0.7.1.txt 2004-09-20 20:46:03 UTC (rev 1545)
@@ -1,39 +0,0 @@
-
-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 /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.
-
-
More information about the drbd-cvs
mailing list