Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected Timestamp Reset During Brick Replacement Operation #4441

Open
abbas916990 opened this issue Dec 18, 2024 · 0 comments
Open

Unexpected Timestamp Reset During Brick Replacement Operation #4441

abbas916990 opened this issue Dec 18, 2024 · 0 comments

Comments

@abbas916990
Copy link

abbas916990 commented Dec 18, 2024

Detailed Problem Description:
During a volume brick replacement operation, an unexpected modification occurs to the mount point's metadata:

Environment Details:

Operating System: Ubuntu 22.04
GlusterFS Version: 10.1/11.1

Volume Configuration:

`sudo gluster volume create volume1 replica 2 \
  WFC-vm:/mnt/glusterfs/sdd/brick1 \
  WFC-vm:/mnt/glusterfs/sdc/brick1 \
  force`

Volume Information:

Volume Name: volume1
Type: Replicate
Volume ID: fb2135ff-d098-4993-8a32-7a7a92999b63
Status: Created
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: WFC-vm:/mnt/glusterfs/sdd/brick1
Brick2: WFC-vm:/mnt/glusterfs/sdc/brick1

Brick Replacement Command:

sudo gluster volume replace-brick volume1 WFC-vm:/mnt/glusterfs/sdd/brick1 WFC-vm:/mnt/glusterfs/sde/brick1 commit force

Before Brick Replacement:

ls -ld /gluster/storage
drwxr-xr-x 4 root root 108 Dec 18 07:21 /gluster/storage

After Brick Replacement:

ls -ld /gluster/storage/
drwxr-xr-x 4 root root 108 Jan 1 1970 /gluster/storage/

Also this changes underlying brick timestam as well

WFC-vm:~$ stat /mnt/glusterfs/sdc
  File: /mnt/glusterfs/sdc
  Size: 20              Blocks: 0          IO Block: 4096   directory
Device: 820h/2080d      Inode: 128         Links: 3
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-12-18 07:10:59.902839362 +0200
Modify: 2024-12-18 07:10:38.614712742 +0200
Change: 2024-12-18 07:10:38.614712742 +0200
 Birth: 2024-12-18 07:08:17.235725000 +0200

WFC-vm:~$ stat /mnt/glusterfs/sdc/brick1
  File: /mnt/glusterfs/sdc/brick1
  Size: 108             Blocks: 0          IO Block: 4096   directory
Device: 820h/2080d      Inode: 131         Links: 4
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-12-18 07:25:02.247856837 +0200
Modify: 2486-07-02 23:20:24.000000000 +0300
Change: 2024-12-18 07:24:21.755615356 +0200
 Birth: 2024-12-18 07:10:38.614712742 +0200

WFC-vm:~$ stat /mnt/glusterfs/sdd/brick1
  File: /mnt/glusterfs/sdd/brick1
  Size: 108             Blocks: 0          IO Block: 4096   directory
Device: 830h/2096d      Inode: 131         Links: 4
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-12-18 07:22:12.258843082 +0200
Modify: 2024-12-18 07:21:26.418569707 +0200
Change: 2024-12-18 07:21:26.418569707 +0200
 Birth: 2024-12-18 07:10:47.614766274 +0200

WFC-vm:~$ stat /mnt/glusterfs/sde/brick1
  File: /mnt/glusterfs/sde/brick1
  Size: 108             Blocks: 0          IO Block: 4096   directory
Device: 840h/2112d      Inode: 131         Links: 4
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-12-18 07:24:50.447786466 +0200
Modify: 2024-12-18 07:24:22.747621272 +0200
Change: 2024-12-18 07:24:22.747621272 +0200
 Birth: 2024-12-18 07:10:52.490795276 +0200


Reproduction Steps:

Create a replicated GlusterFS volume with two bricks
Mount the volume
Perform a brick replacement using gluster volume replace-brick command
Observe timestamp modification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant