xfs
[Top] [All Lists]

re[2]: 2 freeze/snapshot questions

To: Eric Sandeen <sandeen@xxxxxxx>
Subject: re[2]: 2 freeze/snapshot questions
From: Greg Freemyer <freemyer@xxxxxxxxxxxxxxxxx>
Date: Fri, 16 Aug 2002 16:43:48 -0400
Cc: <linux-xfs@xxxxxxxxxxx>
Organization: The NorcrossGroup
Sender: owner-linux-xfs@xxxxxxxxxxx
Thanks,

It is working now.

I don't have any idea what has changed.

I know it can't be a typo because I was using a script, and the script has not 
changed.

I guess I need to put some kind of timeout logic around the create snapshot.

Thanks again
Greg

 >>  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






Greg Freemyer
Internet Engineer
Deployment and Integration Specialist
Compaq ASE - Tru64 v4, v5
Compaq Master ASE - SAN Architect
The Norcross Group
www.NorcrossGroup.com


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