[Top] [All Lists]

[xfs-masters] [Bug 769] New: XFS snapshots does not work with linux LVM

To: xfs-master@xxxxxxxxxxx
Subject: [xfs-masters] [Bug 769] New: XFS snapshots does not work with linux LVM
From: bugzilla-daemon@xxxxxxxxxxx
Date: Fri, 28 Sep 2007 00:03:45 -0700
Reply-to: xfs-masters@xxxxxxxxxxx
Sender: xfs-masters-bounce@xxxxxxxxxxx

           Summary: XFS snapshots does not work with linux LVM
           Product: Linux XFS
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XFS kernel code
        AssignedTo: xfs-master@xxxxxxxxxxx
        ReportedBy: sheshka@xxxxxxxxx

Taking snapshots on LVM with XFS filesystem hangs.

dark-matter:~# lvdisplay
  --- Logical volume ---
  LV Name                /dev/tvg/lvol0
  VG Name                tvg
  LV UUID                SGTmpR-8Rv7-Mx54-3oKl-SFTY-r8pY-eUcbfN
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                1.00 GB
  Current LE             256
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           254:1

dark-matter:~# vgdisplay
  --- Volume group ---
  VG Name               tvg
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  2
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               18.63 GB
  PE Size               4.00 MB
  Total PE              4769
  Alloc PE / Size       256 / 1.00 GB
  Free  PE / Size       4513 / 17.63 GB
  VG UUID               1wOZ3M-zdc9-i519-UX3G-MTOl-fLnb-3Jwy76

dark-matter:~# mkfs.xfs /dev/tvg/lvol0
meta-data=/dev/tvg/lvol0         isize=256    agcount=8, agsize=32768 blks
         =                       sectsz=512   attr=0
data     =                       bsize=4096   blocks=262144, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096
log      =internal log           bsize=4096   blocks=2560, version=1
         =                       sectsz=512   sunit=0 blks, lazy-count=0
realtime =none                   extsz=4096   blocks=0, rtextents=0

dark-matter:~# mount /dev/tvg/lvol0 /mnt/1/
dark-matter:~# dd if=/dev/full of=/mnt/1/t.bin bs=1M count=100
100+0 records in
100+0 records out
104857600 bytes (105 MB) copied, 0.161915 seconds, 648 MB/s

dark-matter:~# xfs_freeze -f /mnt/1/
dark-matter:~# lvcreate -L 500M -s -n snap1 /dev/tvg/lvol0

And last command hangs a forever, or sometimes produses broken snapshot whuch
cannot be mounted:
#mount /dev/tvg/snap1 /mnt/2 -t xfs -o nouuid 

XFS: bad magic number
XFS: SB validate failed

My kernel is:
2.6.21-2-amd64 #1 SMP Wed Jul 11 05:38:29 UTC 2007 x86_64 GNU/Linux
from Debian. But I have had same issue with vanila kernel. I can provide any
additional info. 

There is no such issue with ext3 FS on LVM, snapshotig works well.

Configure bugmail: http://oss.sgi.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

<Prev in Thread] Current Thread [Next in Thread>
  • [xfs-masters] [Bug 769] New: XFS snapshots does not work with linux LVM, bugzilla-daemon <=