Bug 764299 (GLUSTER-2567) - self heal on device files changes the major and minor number
Summary: self heal on device files changes the major and minor number
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-2567
Product: GlusterFS
Classification: Community
Component: replicate
Version: 3.1.3
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Raghavendra Bhat
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-21 07:53 UTC by Raghavendra Bhat
Modified: 2011-06-01 10:34 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)
client log file in trace mode (275.57 KB, text/x-log)
2011-03-21 04:53 UTC, Raghavendra Bhat
no flags Details

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.


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