From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel P. Berrange" Subject: Re: Fwd: Corrupted filesystem, possible after livemigration with iSCSI storagebackend. Date: Mon, 15 Mar 2010 14:25:51 +0000 Message-ID: <20100315142551.GA26239@redhat.com> References: <4B9E3A37.5000209@monsternett.no> <4B9E3D2E.5090108@codemonkey.ws> Reply-To: "Daniel P. Berrange" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Espen Berg , kvm@vger.kernel.org To: Anthony Liguori Return-path: Received: from mx1.redhat.com ([209.132.183.28]:17982 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964883Ab0COOZ7 (ORCPT ); Mon, 15 Mar 2010 10:25:59 -0400 Content-Disposition: inline In-Reply-To: <4B9E3D2E.5090108@codemonkey.ws> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, Mar 15, 2010 at 08:59:10AM -0500, Anthony Liguori wrote: > On 03/15/2010 08:46 AM, Espen Berg wrote: > >In our KVM system we have two iSCSI backends (master/slave > >configuration) with failover and two KVM hosts supporting live migration. > > > >The iSCSI volumes are shared by the host as a block device in KVM, and > >the volumes are available on both frontends. After a reboot one of the > >KVMs where not able to start again due to file system corruption. We > >use XFS and have problems to understand what caused the corruption. > > > >We have ruled out the iSCSI backend as both the master and slave data > >where consistent at the time. > > > >Anyone else had similar problems? What is the recommended way to share > >an iSCSI drive among the two host machines? > > > >Should XFS be ok as a file system for live migration? I'm not able to > >find any documentation stating that a clustered file system (GFS2 etc.) > >is recommended. Are there any concurrent writes on the two host > >machines during a livemigtation? > > > > > > > > > > > >
> > > > You need to use cache=off if you've got one iscsi drive mounted on two > separate physical machines. FYI, this can be done by changing the disk XML driver to be Regards, Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|