NFS export of LVM snapshot exports origin instead of snapshot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
we're using LVM snapshots on our storage server to provide data for our live and staging instances.
there are two mountpoints on the server, one for the origin volume, and one for the snapshot that are exported using NFS to our live/staging instances (webserver)
today i noticed, that writes on our staging-webserver don't go to the snapshot as expected, but are hitting the origin volume, messing up all of our live data.
i checked the NFS-mounts and -exports and they look perfectly valid (staging mounts snapshot-
on the storage-server itself looking at the mountpoints, everything looks valid, too. i wrote some identifying test-files in each mountpoint in order to track them. no problem as long, as we look on the NFS-server itself.
but looking in the mountpoints of a NFS-client, it shows that the origin data was mounted.
i found no way to mount the snapshot again.
i'm not entirely sure, what component causes the problem. since the mountpoints look valid on the server itself, i would rule out LVM. i also would rule out the NFS-client, since it should not be able to see what the server hasn't exported. all clients can see the problem (lucid, maverick, precise).
i've checked for recent software-upgrades on the NFS-server and found:
Thu, Oct 25 2012 11:07:16 +0000
[INSTALL] linux-image-
[UPGRADE] nfs-common:amd64 1:1.2.5-3ubuntu3 -> 1:1.2.5-3ubuntu3.1
[UPGRADE] nfs-kernel-
Fri, Oct 26 2012 09:29:34 +0000
[UPGRADE] linux-generic:amd64 3.2.0.31.34 -> 3.2.0.32.35
[UPGRADE] linux-image-
since it was working as expected before thursday (2012-10-25), i downgraded these packages (and rebooted the older kernel)
this didn't solve the problem.
i can reproduce this behavior using different filesystems on the NFS-server.
i'll attach verision info in my next post. please comment on what info you might need to figure this out.
---
AlsaDevices:
total 0
crw-rw---T 1 root audio 116, 1 Oct 26 10:56 seq
crw-rw---T 1 root audio 116, 33 Oct 26 10:56 timer
AplayDevices: Error: [Errno 2] No such file or directory
ApportVersion: 2.0.1-0ubuntu14
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: Error: [Errno 2] No such file or directory
DistroRelease: Ubuntu 12.04
HibernationDevice: RESUME=
InstallationMedia:
IwConfig: Error: [Errno 2] No such file or directory
MachineType: System manufacturer System Product Name
Package: linux (not installed)
PciMultimedia:
ProcEnviron:
LANGUAGE=en_US:en
TERM=xterm
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB:
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.79.1
RfKill: Error: [Errno 2] No such file or directory
StagingDrivers: mei
Tags: precise staging
Uname: Linux 3.2.0-31-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
dmi.bios.date: 07/16/2012
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 2106
dmi.board.
dmi.board.name: P8B WS
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: System Product Name
dmi.product.
dmi.sys.vendor: System manufacturer
tags: | added: precise |
affects: | ubuntu → linux (Ubuntu) |
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
Changed in linux (Ubuntu): | |
status: | Triaged → Fix Released |
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
this issue occurs both using nfs3/nfs4
i just noticed, our second storage-server running lucid just has the same problem.
any ideas how to catch that bug?