public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Emmanuel Florac <eflorac@intellique.com>
To: slawomir.nowakowski@open-e.com
Cc: xfs@oss.sgi.com
Subject: Re: Problem with file system on iSCSI FileIO
Date: Fri, 24 Sep 2010 15:18:58 +0200	[thread overview]
Message-ID: <20100924151858.10528c86@harpe.intellique.com> (raw)
In-Reply-To: <4C9C875D.9050308@open-e.com>

Le Fri, 24 Sep 2010 13:11:25 +0200
Slawomir Nowakowski <slawomir.nowakowski@open-e.com> écrivait:

> But we believe the problem is with the XFS. With unknown reason we
> are not able to mount the LV and after running xfs_repair the file is 
> missing from the LV. Do you have any ideas how we can try to fix the 
> broken XFS?

This doesn't really make much sense to me. What target are you using?
scst, tgt, lio or iet? What looks weird to me is that the dd command
example you gave writes over the xfs filesystem :

dd if=/dev/zero of=/dev/vg+vg00/lv+i+lv0000 bs=1M conv=notrunc

This is definitely incorrect. Given that /dev/vg+vg00/lv+i+lv0000 is
your xfs formatted lv, you must mount it somewhere :

mount /dev/vg+vg00/lv+i+lv0000 /mnt/whatever

Then you dd the file on /mnt/whatever :

dd if=/dev/zero of=/mnt/whatever/lunfile bs=1M

Lastly, you declare /mnt/whatever/lunfile as the lun in your target
(method varies depending upon the target used), something like (ietd
example):

Target iqn.2010-09:com.whatever.host.target1
	Alias host.target1
	Lun 0 Type=fileio,Path=mnt/whatever/lunfile,IOMode=wback

-- 
------------------------------------------------------------------------
Emmanuel Florac     |   Direction technique
                    |   Intellique
                    |	<eflorac@intellique.com>
                    |   +33 1 78 94 84 02
------------------------------------------------------------------------

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

  reply	other threads:[~2010-09-24 13:18 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-23 13:35 Problem with file system on iSCSI FileIO Slawomir Nowakowski
2010-09-23 14:32 ` Christoph Hellwig
2010-09-23 14:58   ` Slawomir Nowakowski
2010-09-24  7:55     ` Christoph Hellwig
2010-09-24 11:11       ` Slawomir Nowakowski
2010-09-24 13:18         ` Emmanuel Florac [this message]
2010-09-24 13:46           ` Slawomir Nowakowski
2010-09-25 15:56         ` Christoph Hellwig
2010-09-25 16:54           ` Richard Sharpe
2010-09-25 17:01             ` Christoph Hellwig
2010-09-25 17:14               ` Richard Sharpe
2010-09-24 13:18       ` Emmanuel Florac
2010-09-24 13:49         ` Slawomir Nowakowski
2010-09-24 14:04           ` Emmanuel Florac
2010-09-24 15:10       ` Richard Sharpe
2010-09-24 18:18         ` Emmanuel Florac
2010-09-24 20:46           ` Ryszard Stawiarski
2010-09-25 14:13             ` Emmanuel Florac
2010-09-25 14:18               ` Richard Sharpe
2010-09-25 19:01                 ` Vladislav Bolkhovitin
2010-09-25 21:23                   ` Emmanuel Florac

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=20100924151858.10528c86@harpe.intellique.com \
    --to=eflorac@intellique.com \
    --cc=slawomir.nowakowski@open-e.com \
    --cc=xfs@oss.sgi.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