Bug 968616 - thinp snapshot volumes of XFS origin volumes are unmountable
thinp snapshot volumes of XFS origin volumes are unmountable
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2 (Show other bugs)
7.0
x86_64 Linux
urgent Severity urgent
: rc
: ---
Assigned To: LVM and device-mapper development team
Cluster QE
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-29 19:04 EDT by Corey Marthaler
Modified: 2013-05-30 09:56 EDT (History)
14 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-05-30 09:56:45 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Corey Marthaler 2013-05-29 19:04:24 EDT
Description of problem:
XFS wont let me mount these thinp snap volumes because the UUIDs are apparently the same. Should it allow me too? Should EXT not allow me too? Is this even a valid test case for thinp snapshots? 

#### RHEL7 (On Virt Storage) ####

EXT3:
May 29 17:33:56 qalvm-01 qarshd[5067]: Running cmdline: mount /dev/snapper_thinp/fs_snap1 /mnt/fs_snap1
[14263.899033] EXT4-fs (dm-7): mounting ext2 file system using the ext4 subsystem
[14263.907420] EXT4-fs (dm-7): warning: mounting unchecked fs, running e2fsck is recommended
[14263.937811] EXT4-fs (dm-7): mounted filesystem without journal. Opts: (null)

[root@qalvm-01 ~]# lvs -a -o +devices
  LV           VG            Attr      LSize   Pool Origin Data%  Devices
  POOL         snapper_thinp twi-a-tz-   5.00g               3.39 POOL_tdata(0)
  [POOL_tdata] snapper_thinp Twi-aot--   5.00g                    /dev/vdh1(0)
  [POOL_tmeta] snapper_thinp ewi-aot--   8.00m                    /dev/vdd1(0)
  fs_snap1     snapper_thinp swi-aos-- 400.00m      origin   0.00 /dev/vdh1(1280)
  origin       snapper_thinp owi-aotz-   1.00g POOL         16.94


XFS:
May 29 17:42:04 qalvm-01 qarshd[5422]: Running cmdline: mount /dev/snapper_thinp/fs_snap1 /mnt/fs_snap1
[14751.910147] XFS (dm-7): Filesystem has duplicate UUID 6752c7ae-d9eb-4265-8cec-f7fada8399cb - can't mount

[root@qalvm-01 ~]# lvs -a -o +devices
  LV           VG            Attr      LSize   Pool Origin Data%  Devices
  POOL         snapper_thinp twi-a-tz-   5.00g               3.22 POOL_tdata(0)
  [POOL_tdata] snapper_thinp Twi-aot--   5.00g                    /dev/vdh1(0)
  [POOL_tmeta] snapper_thinp ewi-aot--   8.00m                    /dev/vdd1(0)
  fs_snap1     snapper_thinp swi-a-s-- 400.00m      origin   0.00 /dev/vdh1(1280)
  origin       snapper_thinp owi-aotz-   1.00g POOL         16.09



#### RHEL6 (On Real Storage) ####

EXT3:
May 29 17:49:41 taft-01 qarshd[6995]: Running cmdline: mount /dev/snapper_thinp/fs_snap1 /mnt/fs_snap1
May 29 17:49:41 EXT3-fs (dm-8): taft-01 kernel: mounted filesystem with ordered data modekjournald starting.  Commit interval 5 seconds
May 29 17:49:41 taft-01 kernel: EXT3-fs (dm-8): using internal journal
May 29 17:49:41 taft-01 kernel: EXT3-fs (dm-8): mounted filesystem with ordered data mode

[root@taft-01 ~]# lvs -a -o +devices
  LV           VG            Attr      LSize   Pool Origin Data%  Devices
  POOL         snapper_thinp twi-a-tz-   5.00g               3.76 POOL_tdata(0)
  [POOL_tdata] snapper_thinp Twi-aot--   5.00g                    /dev/sdb1(0)
  [POOL_tmeta] snapper_thinp ewi-aot--   8.00m                    /dev/sdh1(0)
  fs_snap1     snapper_thinp swi-aos-- 400.00m      origin   0.00 /dev/sdb1(1280)
  origin       snapper_thinp owi-aotz-   1.00g POOL         18.82


XFS:
May 29 17:47:15 taft-01 qarshd[6766]: Running cmdline: mount /dev/snapper_thinp/fs_snap1 /mnt/fs_snap1
XFS (dm-8): Filesystem has duplicate UUID 608cd2e0-b677-49f4-870c-c44b8aaf4752 - can't mount

[root@taft-01 ~]# lvs -a -o +devices
  LV           VG            Attr      LSize   Pool Origin Data%  Devices
  POOL         snapper_thinp twi-a-tz-   5.00g               3.02 POOL_tdata(0)
  [POOL_tdata] snapper_thinp Twi-aot--   5.00g                    /dev/sdb1(0)
  [POOL_tmeta] snapper_thinp ewi-aot--   8.00m                    /dev/sdh1(0)
  fs_snap1     snapper_thinp swi-a-s-- 400.00m      origin   0.00 /dev/sdb1(1280)
  origin       snapper_thinp owi-aotz-   1.00g POOL         15.11


Version-Release number of selected component (if applicable):
3.8.0-0.40.el7.x86_64
lvm2-2.02.99-0.39.el7    BUILT: Wed May 29 08:12:36 CDT 2013
lvm2-libs-2.02.99-0.39.el7    BUILT: Wed May 29 08:12:36 CDT 2013
lvm2-cluster-2.02.99-0.39.el7    BUILT: Wed May 29 08:12:36 CDT 2013
device-mapper-1.02.78-0.39.el7    BUILT: Wed May 29 08:12:36 CDT 2013
device-mapper-libs-1.02.78-0.39.el7    BUILT: Wed May 29 08:12:36 CDT 2013
device-mapper-event-1.02.78-0.39.el7    BUILT: Wed May 29 08:12:36 CDT 2013
device-mapper-event-libs-1.02.78-0.39.el7    BUILT: Wed May 29 08:12:36 CDT 2013
cmirror-2.02.99-0.39.el7    BUILT: Wed May 29 08:12:36 CDT 2013

How reproducible:
Everytime
Comment 1 Eric Sandeen 2013-05-29 21:30:04 EDT
# mount -o nouuid

  nouuid
        Don't check for double mounted file systems using the file system uuid.
        This is useful to mount LVM snapshot volumes.

-Eric

Note You need to log in before you can comment on or make changes to this bug.