[Top] [All Lists]

Re: xfs fs on lvm, failed drive.

To: Stan Hoeppner <stan@xxxxxxxxxxxxxxxxx>
Subject: Re: xfs fs on lvm, failed drive.
From: Gary Artim <gartim@xxxxxxxxx>
Date: Wed, 29 Oct 2014 11:54:26 -0700
Cc: xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kQHeSPfyvoT5o+sZKIL969O2cPvZUDxS2Eycu/Mk8F4=; b=pdo8Nmp+bzBGM0aaUol/I6jSt8xDLk0v5zdqPrw1HShLDjy43qvPj9PeLaM6O96JZn NYSero2ydy3lK4AeGb91Xa9eHlF6YDQBuCGhvgSMvwmYMh/RnoCukZZzFQbUmO7vxT4Q pN7WleGFSNJvaWqTyau2NG162FyX/0N6exbJjyo1sTtvAadnf3MRnYp+eagf6g9dcyjH d1HLtLQpPjtCoZvEnfXIZ87ulnc8bM7OjIKMyOlUBv+5e3ewf9APvftvHesGBTnSiPCy IYjshACDtyYyFdUQ+sUXZyom/6QJiAJrTa6B8C9FPpq5xxOsn8Vzbs1l5ybs6AjMMLlH pKXg==
In-reply-to: <54512F62.2080303@xxxxxxxxxxxxxxxxx>
References: <CA+r9EUGbxdXxP7uA1ufw=bSKE035VVHcK-Tyatr=fr-t_U=ZAw@xxxxxxxxxxxxxx> <54512F62.2080303@xxxxxxxxxxxxxxxxx>
will try running xfs_repair...been trouble using lvm. thanks!

On Wed, Oct 29, 2014 at 11:18 AM, Stan Hoeppner <stan@xxxxxxxxxxxxxxxxx> wrote:
On 10/29/2014 12:19 PM, Gary Artim wrote:
> Hi...wondering if there is anyway I can salvage a directory on the lvm
> volume that is xfs? thanks of any help, assembled:
> parted /dev/sdx
> mklabel gpt
> mkpart primary xfs 1 -1 (sometime xfs doesnt work until the xfsprogs are
> installed and reboot)
> set 1 lvm on
> do this for each drive.
> pvcreate /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1
> vgcreate backup /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1
> lvcreate -L 9T -n backuplv backup
> mkfs.xfs -L backuplv /dev/mapper/backup-backuplv
> /dev/mapper/backup-backuplv /xfs xfs   (in fstab)
> failed drive:
> /dev/sdc1

You've created an XFS filesystem atop a concatenation of non-redundant
drives so this condition should not be unexpected.  It's not a directory
you want to salvage, but the files within it.  If they reside on sdc1
you're out of luck without using data recovery tools.  If they reside on
sdb1, sdd1, or sde1, then running xfs_repair might make the FS mountable
and get you access to them again.

That's assuming LVM is still running with one drive gone, or will still
assemble the concatenation with one drive missing.  I don't use LVM.


<Prev in Thread] Current Thread [Next in Thread>