[Bugs] [Bug 1427039] Create glusterfs snapshot error

bugzilla at redhat.com bugzilla at redhat.com
Mon Mar 6 14:14:29 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=1427039



--- Comment #2 from shibin <1220642745 at qq.com> ---
Create glusterfs snapshot error in docker container.  

The log:
[2017-02-27 07:48:12.300293] E [MSGID: 106058]
[glusterd-snapshot.c:5088:glusterd_update_fs_label] 0-management: Failed to
change filesystem label of
/run/gluster/snaps/b9bb548cfbed4b609a9d9e3de377456e/brick1/shibin01 brick to
6e40ede875a146e1
[2017-02-27 07:48:12.300341] E [MSGID: 106058]
[glusterd-snapshot.c:5148:glusterd_take_brick_snapshot] 0-management: Failed to
update file-system label for
/run/gluster/snaps/b9bb548cfbed4b609a9d9e3de377456e/brick1/shibin01 brick
[2017-02-27 07:48:12.303181] E [MSGID: 106098]
[glusterd-snapshot-utils.c:2709:glusterd_mount_lvm_snapshot] 0-management:
mounting the snapshot logical device /dev/vg/b9bb548cfbed4b609a9d9e3de377456e_0
failed (error: File exists)
[2017-02-27 07:48:12.303208] E [MSGID: 106059]
[glusterd-snapshot.c:4788:glusterd_snap_brick_create] 0-management: Failed to
mount lvm snapshot.


That is because lvmetad which caches lvm metadata and with
docker the cache doesn't seem to update properly.
Therefore it takes some time before the snapshot device appear in
docker container. Therefore after snapshot creation changing label and
mount fails because it fails to see the snapshot lvm.


modify the /etc/lvm/lvm.conf in container
udev_sync = 0
udev_rules = 0
use_lvmetad = 0


the glusterfs snapshot create sucessfully

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=q7mE3fTJnz&a=cc_unsubscribe


More information about the Bugs mailing list