Bug 764299 (GLUSTER-2567)

Summary: self heal on device files changes the major and minor number
Product: [Community] GlusterFS Reporter: Raghavendra Bhat <rabhat>
Component: replicateAssignee: Raghavendra Bhat <rabhat>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.1.3CC: amarts, gluster-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
client log file in trace mode none

Description Raghavendra Bhat 2011-03-21 07:53:07 UTC
The self healing of the device special files changes the major and the minor number on the sink. It is not the same as provided by the user.


This is the output of stat on the device special files when all the bricks are up and mknod was done on the mount point.



root@bigbang:/mnt/client/dev# stat okpa
  File: `okpa'
  Size: 0               Blocks: 0          IO Block: 131072 character special file
Device: 18h/24d         Inode: 523520      Links: 1     Device type: 2,2
Access: (0644/crw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2011-03-21 13:14:08.429379126 +0530
Modify: 2011-03-21 13:14:08.429379126 +0530
Change: 2011-03-21 13:14:08.429379126 +0530
(reverse-i-search)`s': ^Cat okpa
root@bigbang:/mnt/client/dev# stat /d/glusterfs/export/export/dev/okpa 
  File: `/d/glusterfs/export/export/dev/okpa'
  Size: 0               Blocks: 0          IO Block: 4096   character special file
Device: 808h/2056d      Inode: 261760      Links: 1     Device type: 2,2
Access: (0644/crw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2011-03-21 13:14:08.429379126 +0530
Modify: 2011-03-21 13:14:08.429379126 +0530
Change: 2011-03-21 13:14:08.429379126 +0530
root@bigbang:/mnt/client/dev# stat /e/glusterfs/export/export/dev/okpa 
  File: `/e/glusterfs/export/export/dev/okpa'
  Size: 0               Blocks: 0          IO Block: 4096   character special file
Device: 809h/2057d      Inode: 130856      Links: 1     Device type: 2,2
Access: (0644/crw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2011-03-21 13:14:08.429379126 +0530
Modify: 2011-03-21 13:14:08.429379126 +0530
Change: 2011-03-21 13:14:08.429379126 +0530



Deleted that file. Killed a brick and created a device file. Brought the down brick up and did ls -lR on the mount point (self heal).

This is the output of the stat on the device special file after selfhealing



root@bigbang:/mnt/client/dev# stat okpa
  File: `okpa'
  Size: 0               Blocks: 0          IO Block: 131072 character special file
Device: 18h/24d         Inode: 523520      Links: 1     Device type: 2,2
Access: (0644/crw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2011-03-21 13:15:33.879393441 +0530
Modify: 2011-03-21 13:15:33.879393441 +0530
Change: 2011-03-21 13:15:33.879393441 +0530
root@bigbang:/mnt/client/dev# stat /d/glusterfs/export/export/dev/okpa 
  File: `/d/glusterfs/export/export/dev/okpa'
  Size: 0               Blocks: 8          IO Block: 4096   character special file
Device: 808h/2056d      Inode: 261760      Links: 1     Device type: 2,2
Access: (0644/crw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2011-03-21 13:15:33.879393441 +0530
Modify: 2011-03-21 13:15:33.879393441 +0530
Change: 2011-03-21 13:15:57.709374488 +0530
root@bigbang:/mnt/client/dev# stat /e/glusterfs/export/export/dev/okpa 
  File: `/e/glusterfs/export/export/dev/okpa'
  Size: 0               Blocks: 8          IO Block: 4096   character special file
Device: 809h/2057d      Inode: 130856      Links: 1     Device type: 8,8
Access: (0644/crw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2011-03-21 13:15:33.879393000 +0530
Modify: 2011-03-21 13:15:33.879393000 +0530
Change: 2011-03-21 13:15:57.709374488 +0530

Comment 1 Vijay Bellur 2011-03-25 08:11:57 UTC
PATCH: http://patches.gluster.com/patch/6554 in master (send proper device id to posix while self healing device file entry)

Comment 2 Anand Avati 2011-06-01 01:54:08 UTC
PATCH: http://patches.gluster.com/patch/6544 in release-3.1 (send the proper device id to posix while self healing device special file entry)

Comment 3 Raghavendra Bhat 2011-06-01 07:34:08 UTC
Its fixed now. Major and minor numbers are properly self healed.