<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace;font-size:x-small">will try running xfs_repair...been trouble using lvm. thanks!<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 29, 2014 at 11:18 AM, Stan Hoeppner <span dir="ltr"><<a href="mailto:stan@hardwarefreak.com" target="_blank">stan@hardwarefreak.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 10/29/2014 12:19 PM, Gary Artim wrote:<br>
> Hi...wondering if there is anyway I can salvage a directory on the lvm<br>
> volume that is xfs? thanks of any help, assembled:<br>
><br>
> parted /dev/sdx<br>
> mklabel gpt<br>
> mkpart primary xfs 1 -1 (sometime xfs doesnt work until the xfsprogs are<br>
> installed and reboot)<br>
> set 1 lvm on<br>
><br>
> do this for each drive.<br>
> pvcreate /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1<br>
> vgcreate backup /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1<br>
> lvcreate -L 9T -n backuplv backup<br>
> mkfs.xfs -L backuplv /dev/mapper/backup-backuplv<br>
> /dev/mapper/backup-backuplv /xfs xfs (in fstab)<br>
><br>
> failed drive:<br>
> /dev/sdc1<br>
<br>
</div></div>You've created an XFS filesystem atop a concatenation of non-redundant<br>
drives so this condition should not be unexpected. It's not a directory<br>
you want to salvage, but the files within it. If they reside on sdc1<br>
you're out of luck without using data recovery tools. If they reside on<br>
sdb1, sdd1, or sde1, then running xfs_repair might make the FS mountable<br>
and get you access to them again.<br>
<br>
That's assuming LVM is still running with one drive gone, or will still<br>
assemble the concatenation with one drive missing. I don't use LVM.<br>
<br>
Cheers,<br>
Stan<br>
</blockquote></div><br></div>