linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Ron Johnson <ron.l.johnson@cox.net>
To: linux-lvm@redhat.com
Subject: [linux-lvm] lvm2 and external enclosures
Date: Sun, 19 Jul 2009 16:50:42 -0500	[thread overview]
Message-ID: <4A639532.6050506@cox.net> (raw)

Hi,

(The purpose of this "exercise" is to implement a backup strategy.)

I created PVs then an LV on a pair of drives in a USB dual 
enclosure, created the FS, backed up my data, umounted the fs, and 
disconnected/powered down the enclosure.

Upon powering it back up/reconnecting it, I did vgscan, vgchange, 
mount, but got IO and "unable to read superblock" errors.

Rebooting, even with the external drives disconnected, made things 
all better (though I did have to do an lvchange -a y).

***** START ******

# vgscan
   WARNING: Ignoring duplicate config node: filter (seeking filter)
   Reading all physical volumes.  This may take a while...
   /dev/dm-1: read failed after 0 of 4096 at 2000380952576: 
Input/output error
   /dev/dm-1: read failed after 0 of 4096 at 2000381009920: 
Input/output error
   /dev/dm-1: read failed after 0 of 4096 at 0: Input/output error
   /dev/dm-1: read failed after 0 of 4096 at 4096: Input/output error
   /dev/dm-1: read failed after 0 of 4096 at 0: Input/output error
   Found volume group "backup_vg" using metadata type lvm2
   Found volume group "main_huge_vg" using metadata type lvm2


# vgchange -a y backup_vg
   WARNING: Ignoring duplicate config node: filter (seeking filter)
   /dev/dm-1: read failed after 0 of 4096 at 0: Input/output error
   1 logical volume(s) in volume group "backup_vg" now active


# mount -v /mnt/backups
mount: wrong fs type, bad option, bad superblock on 
/dev/mapper/backup_vg-backup_lv,
        missing codepage or helper program, or other error
        In some cases useful info is found in syslog - try
        dmesg | tail  or so


[28722.859373] EXT4-fs: unable to read superblock
[28722.859458] EXT3-fs: unable to read superblock

***** STOP *****

Any thoughts on getting lvm2 to play nice with dynamic devices?

Thanks

-- 
Scooty Puff, Sr
The Doom-Bringer

             reply	other threads:[~2009-07-19 21:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-19 21:50 Ron Johnson [this message]
2009-07-20  4:30 ` [linux-lvm] lvm2 and external enclosures Stuart D. Gathman
2009-07-20  5:03   ` Ron Johnson

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=4A639532.6050506@cox.net \
    --to=ron.l.johnson@cox.net \
    --cc=linux-lvm@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).