public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* xfs fs on lvm, failed drive.
@ 2014-10-29 17:19 Gary Artim
  2014-10-29 18:18 ` Stan Hoeppner
  0 siblings, 1 reply; 3+ messages in thread
From: Gary Artim @ 2014-10-29 17:19 UTC (permalink / raw)
  To: xfs; +Cc: Gary Artim


[-- Attachment #1.1: Type: text/plain, Size: 547 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 809 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: xfs fs on lvm, failed drive.
  2014-10-29 17:19 xfs fs on lvm, failed drive Gary Artim
@ 2014-10-29 18:18 ` Stan Hoeppner
  2014-10-29 18:54   ` Gary Artim
  0 siblings, 1 reply; 3+ messages in thread
From: Stan Hoeppner @ 2014-10-29 18:18 UTC (permalink / raw)
  To: Gary Artim, xfs

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.

Cheers,
Stan

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: xfs fs on lvm, failed drive.
  2014-10-29 18:18 ` Stan Hoeppner
@ 2014-10-29 18:54   ` Gary Artim
  0 siblings, 0 replies; 3+ messages in thread
From: Gary Artim @ 2014-10-29 18:54 UTC (permalink / raw)
  To: Stan Hoeppner; +Cc: xfs


[-- Attachment #1.1: Type: text/plain, Size: 1380 bytes --]

will try running xfs_repair...been trouble using lvm. thanks!

On Wed, Oct 29, 2014 at 11:18 AM, Stan Hoeppner <stan@hardwarefreak.com>
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.
>
> Cheers,
> Stan
>

[-- Attachment #1.2: Type: text/html, Size: 1994 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-10-29 18:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-29 17:19 xfs fs on lvm, failed drive Gary Artim
2014-10-29 18:18 ` Stan Hoeppner
2014-10-29 18:54   ` Gary Artim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox