xfs
[Top] [All Lists]

Re: 2 freeze/snapshot questions

To: Greg Freemyer <freemyer@xxxxxxxxxxxxxxxxx>
Subject: Re: 2 freeze/snapshot questions
From: Eric Sandeen <sandeen@xxxxxxx>
Date: 16 Aug 2002 14:43:10 -0500
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <20020816192336.CSVB18137.imf18bis.bellsouth.net@TAZ2>
References: <20020816192336.CSVB18137.imf18bis.bellsouth.net@TAZ2>
Sender: owner-linux-xfs@xxxxxxxxxxx
Greg - I used LVM a bit this week to fix a bug, and the snapshots were
working, at least as far as being able to create / mount / umount them.

I don't know what flavor of LVM or XFS is in the SuSE kernel you have...
but this is working for me with current CVS:

pvcreate /dev/sda2
vgcreate volgroup2 /dev/sda2
lvcreate -L500 -nlogicalvol2 volgroup2
mkfs.xfs -f -q /dev/volgroup2/logicalvol2
mount /dev/volgroup2/logicalvol2 /mnt/lvmtest/
xfs_freeze -f /mnt/lvmtest/
lvcreate -L500M -s -n snapshot2 /dev/volgroup2/logicalvol2
xfs_freeze -u /mnt/lvmtest/

-Eric

On Fri, 2002-08-16 at 14:22, Greg Freemyer wrote:
> 
> I'm testing snapshots under xfs for the first time.
> 
> I'm using LVM from the SuSE 8.0 release and a updated SuSE kernel that was 
> released at the end of July
> 
> I tried a simple
>   lvcreate --snapshot -L 25m --name config_snap /dev/VG1/config
>   lvscan
>   lvremove /dev/VG1/config_snap
> 
> and it worked fine.  (I only tried it once.)
> 
> I just tried
>   xfs_freeze -f /config
>   lvcreate --snapshot -L 25m --name config_snap /dev/VG1/config
>   xfs_freeze -u /config
>   lvremove /dev/VG1/config_snap
> 
> and the lvcreate command seems to be locked up.  Also, a lvscan is now core 
> dumping with a segmentation fault.
> 
> So I have 2 questions:
> 
> Should the above work?  And if not, what is the right way to do this?
> 
> How can I get the lvcreate to terminate?  I tried kill -9, but it had no 
> effect.
> 
> Thanks
> Greg
> =======
> Greg Freemyer
> Internet Engineer
> Deployment and Integration Specialist
> Compaq ASE - Tru64 v4, v5
> Compaq Master ASE - SAN Architect
> The Norcross Group
> www.NorcrossGroup.com
-- 
Eric Sandeen      XFS for Linux     http://oss.sgi.com/projects/xfs
sandeen@xxxxxxx   SGI, Inc.         651-683-3102


<Prev in Thread] Current Thread [Next in Thread>