WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

RE: [Xen-users] Howto access the guest filesystem under LVM ?

To: "'Pascal'" <ml@xxxxxxxxxxxxxxxxx>, "'Marcin Owsiany'" <marcin@xxxxxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] Howto access the guest filesystem under LVM ?
From: "Artur Linhart - Linux communication" <AL.LINUX@xxxxxxxxxxx>
Date: Thu, 21 Jun 2007 01:52:49 +0200
Delivery-date: Wed, 20 Jun 2007 16:51:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4675A45D.9080206@xxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <46757AD6.7090905@xxxxxxxxxxxxxxxxx> <20070617183746.GB5893@kufelek> <467585A9.2000700@xxxxxxxxxxxxxxxxx><20070617194151.GA12509@kufelek> <4675A45D.9080206@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcexJGEjo5ckwcHqT4m2OHFnCGGzMACcOxPw

Hello,

 

            Do Zou need a read-only or read-write access? If read-only is enough, then You could create the snapshot of the logical volume with lvcreate and read from it...

 

                        With regards    

 

                                   Artur

 


From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Pascal
Sent: Sunday, June 17, 2007 11:15 PM
To: Marcin Owsiany; xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Howto access the guest filesystem under LVM ?

 



Marcin Owsiany a écrit :

On Sun, Jun 17, 2007 at 09:04:09PM +0200, Pascal wrote:
  
I have created a guest using virt-install.
On the dom0 we have created a LogicalVolume and used it to install the 
guest
 
We need to copy all the contents of the guest, so we'd like to access 
the guest filesystem from dom0
 
Tried something like :
mount -o loop /dev/xenvps/mylv /mnt
 
But it doesn't work
   
        
Omit "-o loop". /dev/xenvps/mylv is a (symlink-to) a real block device
file, so there's no need for loop.
 
Keep in mind that having it mounted R/W in guest and R/W or R/O in dom0
at the same time is asking for trouble.
 
 
      
It doesn't work
 
# mount /dev/mapper/xenvps-centos45 /mnt/
mount: you must specify the filesystem type
    
 
Ah, I think with newer centos/RH you need to treat the volume as a whole
disk and perform some tricks to make linux see partitions inside it, and
potentially even use them as LVM volumes.. I think there were examples
of that on the list earlier, I don't remember the details, though.
  

Well I didn't find anything about this in the xen doc and google didn't give me something :\
Hope somebody knows how to mount a guest filesytem created under an LVM partition

Pascal


__________ Informace od NOD32 2335 (20070616) __________

Tato zprava byla proverena antivirovym systemem NOD32.
http://www.nod32.cz

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users