All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philipp Reisner <philipp.reisner@linbit.com>
To: Lars Marowsky-Bree <lmb@suse.de>
Cc: drbd-dev@lists.linbit.com
Subject: Re: [Drbd-dev] Re: [john.cagle@hp.com: FW: device number request for drbd]
Date: Wed, 28 Jul 2004 16:55:18 +0200	[thread overview]
Message-ID: <200407281655.18277.philipp.reisner@linbit.com> (raw)
In-Reply-To: <20040728141220.GV26564@marowsky-bree.de>

[-- Attachment #1: Type: text/plain, Size: 817 bytes --]

On Wednesday 28 July 2004 16:12, Lars Marowsky-Bree wrote:
> On 2004-07-28T14:08:00,
>
>    Philipp Reisner <philipp.reisner@linbit.com> said:
> > > or just "default" to 147 for now?
> >
> > Yes I think so. The users should move to 147 with 0.7.1.
> > Do you like to do the removal of module param ?
>
> You want to move the _device major_ within a stable series?!? I can see
> the next local patch for SUSE coming right up ;-)
>

Yes I want to do this. Rolling upgrades are possible. 
I do not think that anybody actually cares about the major number 
or the name of the device node. 

-Philipp




-- 
: Dipl-Ing Philipp Reisner                      Tel +43-1-8178292-50 :
: LINBIT Information Technologies GmbH          Fax +43-1-8178292-82 :
: Schönbrunnerstr 244, 1120 Vienna, Austria    http://www.linbit.com :

[-- Attachment #2: upgrade_0.6.x_to_0.7.0.txt --]
[-- Type: text/plain, Size: 1418 bytes --]


DRBD upgrade instructions from 0.6.x to 0.7.0

* Since drbd-0.7.x is protocol incompatile to drbd-0.6.x you need
  to do a 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
   B) grow the backing_storage of the DRBD devices by at leas 128MB
   C) have one seperate 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 device needs to be n*128MB, where n is the number of 
  DRBD resources.

* Update you configurate file:
  - Change it to the new syntax.
  - Remove the disk-size parameter from you 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 umber "al:") vs
  the expected resync time. 

[-- Attachment #3: upgrade_0.7.0_to_0.7.1.txt --]
[-- Type: text/plain, Size: 719 bytes --]


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)

* 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\/nb/\/dev\/drbd/" < /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\/nb/\/dev\/drbd/" < /etc/fstab > /etc/fstab_new
mv /etc/fstab /etc/fstab_old ; mv /etc/fstab_new /etc/fstab
for ((i=0;i<16;i++)); 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.

  reply	other threads:[~2004-07-28 14:55 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20040728080645.GB7918@tmathiasen>
2004-07-28 10:10 ` [Drbd-dev] Re: [john.cagle@hp.com: FW: device number request for drbd] Philipp Reisner
2004-07-28 10:58   ` Lars Ellenberg
2004-07-28 12:08     ` Philipp Reisner
2004-07-28 12:17       ` Lars Ellenberg
2004-07-28 12:40         ` Philipp Reisner
2004-07-28 14:12       ` Lars Marowsky-Bree
2004-07-28 14:55         ` Philipp Reisner [this message]
2004-07-28 15:33           ` Lars Marowsky-Bree
2004-07-28 15:46             ` Lars Ellenberg
2004-07-28 17:56             ` Philipp Reisner
2004-07-28 18:45               ` Lars Ellenberg
2004-07-29 22:32               ` Lars Marowsky-Bree
2004-07-30  9:56                 ` Philipp Reisner
2004-07-30 11:32                   ` Philipp Reisner
2004-07-30 12:14                     ` Lars Ellenberg
2004-07-30 12:29                       ` Philipp Reisner
2004-08-18 18:42                       ` Lars Marowsky-Bree
2004-08-18 19:31                         ` Philipp Reisner
2004-08-18 22:57                           ` Lars Marowsky-Bree
2004-08-19  9:15                             ` Philipp Reisner
2004-08-19 10:32                               ` Lars Marowsky-Bree

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200407281655.18277.philipp.reisner@linbit.com \
    --to=philipp.reisner@linbit.com \
    --cc=drbd-dev@lists.linbit.com \
    --cc=lmb@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.