All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Majer <stefan@x-cellent.com>
To: linux-lvm@sistina.com
Subject: [linux-lvm] LVM2 on top of drbd
Date: Thu Nov 13 05:08:01 2003	[thread overview]
Message-ID: <1068721582.11988.1.camel@manaslu> (raw)

Hello,

Im currently testing a new setup for a HA samba fileserver. This setup
is planned like this.


+----------+-------------------+------------------+
|          |       FS1         |       FS2        |
+----------+-------------------+------------------+
|          |      Pri          |      Sec         |
| reiserfs |      /home        |                  |
| lv       |  /dev/vg00/lv_01  |                  |
| vg       |     /dev/vg00     |                  |
| drbd     |     /dev/nb0      |    /dev/nb0      |
| phys. vol|     /dev/sda      |    /dev/sda      |
+----------+-------------------+------------------+

i can mount /home and read and write data.
But when i try to make fs2 primary things got strange.

first i tried to switch the drbd state manually:

fs1:~ # cat /proc/drbd 
version: 0.6.6 (api:62/proto:62)
0: cs:Connected st:Primary/Secondary ns:170804 nr:0 dw:65948 dr:170904
pe:0 ua:0

fs1:~ # vgs
VG   #PV #LV #SN Attr VSize   VFree 
vg00   1   2   0 wz-- 100.00M 12.00M

then 
fs1:~ # drbdsetup /dev/nb0 secondary
fs2:~ # drbdsetup /dev/nb0 primary

fs1:~ # cat /proc/drbd 
version: 0.6.6 (api:62/proto:62)

0: cs:Connected st:Secondary/Primary ns:170804 nr:0 dw:65948 dr:170904
pe:0 ua:0

fs2:~ # cat /proc/drbd 
version: 0.6.6 (api:62/proto:62)

0: cs:Connected st:Primary/Secondary ns:0 nr:170804 dw:170804 dr:20 pe:0
ua:0

all seems fine 
but
fs2:~ # vgchange -ay
  No volume groups found
also
fs2:~ # pvscan -v
    Wiping cache of LVM-capable devices
    Wiping internal cache
    Walking through all physical volumes
  No matching physical volumes found


That leeds me in a state, which makes the fs2 unusable.
when i switch back to fs1 all is fine again.


Im using the following software components:

Kernel Suse-Linux-9.0 2.4.21-99
device-mapper-1.00.05
lvm2-2.00.07
drbd-0.6.6
heartbeat-1.0.3

any hints are welcome

greetings

Stefan Majer

-- 
x-cellent technologies GmbH

             reply	other threads:[~2003-11-13  5:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-13  5:08 Stefan Majer [this message]
2003-11-13  7:35 ` [linux-lvm] LVM2 on top of drbd Alasdair G Kergon

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=1068721582.11988.1.camel@manaslu \
    --to=stefan@x-cellent.com \
    --cc=linux-lvm@sistina.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.