From: Philipp Reisner <philipp.reisner@linbit.com>
To: 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 19:56:09 +0200 [thread overview]
Message-ID: <200407281956.10022.philipp.reisner@linbit.com> (raw)
In-Reply-To: <20040728153314.GW26564@marowsky-bree.de>
Am Mittwoch, 28. Juli 2004 17:33 schrieb Lars Marowsky-Bree:
> On 2004-07-28T16:55:18,
>
> Philipp Reisner <philipp.reisner@linbit.com> said:
> > 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.
>
> Thanks for the 0.6 -> 0.7 upgrade path.
>
> > 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.
>
> You need to manually fix the application configuration files up, custom
> scripts etc - for example, you forgot heartbeat's haresources, and if
> someone is running raw device access to drbd w/ a database...
>
> This is _not_ a change we can push out. The major number _might_ be
> changed, but the device path absolutely has to stay stable.
Maybe
for ((i=0;i<16;i++)); do mknod /dev/nb$i b 147 $i; done
Currently you can not use NBD on a system on which DRBD is active.
So creating the /dev/nbX with DRBD's major number in SuSE's upgrade
path does not make anyhing worse...
But it preserves the "application configuration files & custom scripts"
compatibility...
PS: Thx for pointing out that heartbeat's haresources file is missing
from the upgrade
-Philipp
next prev parent reply other threads:[~2004-07-28 17:56 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
2004-07-28 15:33 ` Lars Marowsky-Bree
2004-07-28 15:46 ` Lars Ellenberg
2004-07-28 17:56 ` Philipp Reisner [this message]
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=200407281956.10022.philipp.reisner@linbit.com \
--to=philipp.reisner@linbit.com \
--cc=drbd-dev@lists.linbit.com \
/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.