All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ray Van Dolson <rvandolson@esri.com>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Dead device and cleaning up LVM
Date: Mon, 9 Feb 2009 10:26:57 -0800	[thread overview]
Message-ID: <20090209182657.GA1797@esri.com> (raw)
In-Reply-To: <20090209175804.GA1501@esri.com>

On Mon, Feb 09, 2009 at 09:58:04AM -0800, Ray Van Dolson wrote:
> On Mon, Feb 09, 2009 at 09:45:46AM -0800, Bryn M. Reeves wrote:
> > Ray Van Dolson wrote:
> > > Anyone know how I can remove this device both from the system and from
> > > LVM safely?  I can reboot, but saving that as a last resort if
> > > possible.
> > 
> > You don't mention the name of your VG/LV but you should be able to 
> > remove the active lvm devices with "dmsetup remove", e.g.:
> > 
> > dmsetup remove $VG-$LV
> > 
> > For each LV in each VG that was using the iSCSI devices.
> 
> Beautiful.  This did the trick!  I can now also unload the iSCSI kernel
> modules correctly on the initiator.
> 

Also, just an FYI in case anyone else runs across this thread... to get
my filesystem back (pvscan didn't detect the LVM at all):

  # pvcreate --uuid 3HpAVg-fRz0-HWXp-EFxK-khVO-IvN6-J4a6w1 /dev/sdb
  (Found the old UUID by examining the /etc/lvm/backup directory)
  # vgcfgrestore FTP1
  # vgchange -ay FTP1
  # fsck.ext3 /dev/FTP1/LogVol00
  # mount -a

Back in action!

Ray

  reply	other threads:[~2009-02-09 18:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-09 17:35 [linux-lvm] Dead device and cleaning up LVM Ray Van Dolson
2009-02-09 17:45 ` Bryn M. Reeves
2009-02-09 17:58   ` Ray Van Dolson
2009-02-09 18:26     ` Ray Van Dolson [this message]
2009-02-09 18:53       ` Bryn M. Reeves
2009-02-11  3:20   ` [linux-lvm] " Stefan Monnier

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=20090209182657.GA1797@esri.com \
    --to=rvandolson@esri.com \
    --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 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.