Hide Forgot
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
PATCH: http://patches.gluster.com/patch/6554 in master (send proper device id to posix while self healing device file entry)
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)
Its fixed now. Major and minor numbers are properly self healed.