multipath/gfs lockout under heavy write
Hello,
I'm not quite sure if the problem I'm experiencing is GFS or dm-multi/multipath issue, so I'm writing to both lists... sorry for that and please trim as soon as you realise who is it for.
This is the scenario:
I've created two-node cluster and mounted two LVs on each of them:
/dev/vg/data on /mnt/data type gfs (rw)/dev/vg/syslog on /var/log/ng type gfs (rw)
Each node is running 2.6.10 with udm2 patch set, GFS and LVM2 fetched from CVS on Jan, 19th and multipath-tools-0.4.1. Storage controller is HSV110, and has two paths from each server to it:
# multipath -v2 create: 3600508b400013a6c00006000009c0000 [size=500 GB][features="0"][hwhandler="0"] \_ round-robin 0 [first] \_ 0:0:0:1 sda 8:0 [faulty] \_ 0:0:1:1 sdb 8:16 [ready ] \_ 0:0:2:1 sdc 8:32 [faulty] \_ 0:0:3:1 sdd 8:48 [ready ]
I tried to copy 100Gb of large files (each of them is about 15Gb) to a /mnt/data through SSH connection from the third server to one of the clustered. Looking at switch statistics, I saw that traffic was indeed balanced over both FC links, but after copying almost 80Gb, without any reason or unusual event on SAN/storage side, /dev/vg/data reported:
SCSI error : <0 0 1 1> return code = 0x20000end_request: I/O error, dev sdb, sector 401320376end_request: I/O error, dev sdb, sector 401320384
Device sda not ready.
SCSI error : <0 0 3 1> return code = 0x20000end_request: I/O error, dev sdd, sector 401321168end_request: I/O error, dev sdd, sector 401321176
Buffer I/O error on device diapered_dm-2, logical block 37057899 lost page write due to I/O error on diapered_dm-2
Buffer I/O error on device diapered_dm-2, logical block 37057900 lost page write due to I/O error on diapered_dm-2
Buffer I/O error on device diapered_dm-2, logical block 37057901 lost page write due to I/O error on diapered_dm-2
Buffer I/O error on device diapered_dm-2, logical block 37057902 lost page write due to I/O error on diapered_dm-2
Buffer I/O error on device diapered_dm-2, logical block 37057903 lost page write due to I/O error on diapered_dm-2
Buffer I/O error on device diapered_dm-2, logical block 37057904 lost page write due to I/O error on diapered_dm-2
Buffer I/O error on device diapered_dm-2, logical block 37057905 lost page write due to I/O error on diapered_dm-2
Buffer I/O error on device diapered_dm-2, logical block 37057906 lost page write due to I/O error on diapered_dm-2
Buffer I/O error on device diapered_dm-2, logical block 37057907 lost page write due to I/O error on diapered_dm-2
Buffer I/O error on device diapered_dm-2, logical block 37057908 lost page write due to I/O error on diapered_dm-2
GFS: fsid=admin:data.0: fatal: I/O error
GFS: fsid=admin:data.0: block = 37057898
GFS: fsid=admin:data.0: function = gfs_dwrite
GFS: fsid=admin:data.0: file = /usr/src/cluster/gfs-kernel/src/gfs/dio.c, line = 651
GFS: fsid=admin:data.0: time = 1106582338
GFS: fsid=admin:data.0: about to withdraw from the cluster
GFS: fsid=admin:data.0: waiting for outstanding I/O
SCSI error : <0 0 1 1> return code = 0x20000
Device sdc not ready.
GFS: fsid=admin:data.0: warning: assertion "!buffer_busy(bh)" failed
GFS: fsid=admin:data.0: function = gfs_logbh_uninit
GFS: fsid=admin:data.0: file = /usr/src/cluster/gfs-kernel/src/gfs/dio.c, line = 930
GFS: fsid=admin:data.0: time = 1106582351
printk: 54 messages suppressed.
Buffer I/O error on device diapered_dm-2, logical block 36272387 lost page write due to I/O error on diapered_dm-2
Buffer I/O error on device diapered_dm-2, logical block 37024703 lost page write due to I/O error on diapered_dm-2
GFS: fsid=admin:data.0: telling LM to withdrawlock_dlm: withdraw abandoned memory
GFS: fsid=admin:data.0: withdrawn
printk: 12 messages suppressed.
Buffer I/O error on device diapered_dm-2, logical block 37005453 lost page write due to I/O error on diapered_dm-2
printk: 1036 messages suppressed.
Buffer I/O error on device diapered_dm-2, logical block 37006489 lost page write due to I/O error on diapered_dm-2
printk: 1035 messages suppressed.
Buffer I/O error on device diapered_dm-2, logical block 37007525 lost page write due to I/O error on diapered_dm-2
while /dev/vg/syslog continued to work as usual (dd-ing /dev/zero to some file worked like a charm). After that error, SCP died, and I couldn't umount nor remount that filesystem. Fenced didn't triggered so I had to reboot the machine in order to make it work again (and I'm using fence_ibmblade which works on another cluster I have).
Since both LVs are a part of same VG (and, thus, are using the same physical device seen over multipath), I'd guess the problem is somewhere inside GFS, but the things that keep confusing me are:
- those SCSI errors that look like multipath errors
- name 'diapered_dm-2' which I never saw before
- fenced not fencing obviously faulty node
What else do you need to debug this issue?
Once again, sorry for the cross-post...
Signature · 7 lines
Lazar Obradovic <[email protected]> YUnet International, NOC -- dm-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/dm-devel
Quoted 17 lines · Lazar Obradovic
Hello,
I'm not quite sure if the problem I'm experiencing is GFS or dm-multi/multipath issue, so I'm writing to both lists... sorry for that and please trim as soon as you realise who is it for.
This is the scenario:
I've created two-node cluster and mounted two LVs on each of them:
/dev/vg/dataon/mnt/datatype gfs (rw)/dev/vg/syslogon/var/log/ngtype gfs (rw)Each node is running 2.6.10 with udm2 patch set, GFS and LVM2 fetched from CVS on Jan, 19th and multipath-tools-0.4.1. Storage controller is HSV110, and has two paths from each server to it:
Quoted 9 lines
# multipath -v2 create: 3600508b400013a6c00006000009c0000 [size=500 GB][features="0"][hwhandler="0"] \_ round-robin 0 [first] \_ 0:0:0:1 sda 8:0 [faulty] \_ 0:0:1:1 sdb 8:16 [ready ] \_ 0:0:2:1 sdc 8:32 [faulty] \_ 0:0:3:1 sdd 8:48 [ready ]
Your path grouping policy is wrong.
You seem to have forced "multibus" in the multipath.conf wheras "group_by_serial" is what you need.
That said, it doesn't explain what you describe below.
I guess very few people have experienced LVM stacking over multipath maps. You may have hit a corner case.
Quoted 82 lines
I tried to copy 100Gb of large files (each of them is about 15Gb) to a
/mnt/datathrough SSH connection from the third server to one of the clustered. Looking at switch statistics, I saw that traffic was indeed balanced over both FC links, but after copying almost 80Gb, without any reason or unusual event on SAN/storage side,/dev/vg/datareported:SCSI error : <0 0 1 1> return code =
0x20000end_request: I/O error, dev sdb, sector 401320376end_request: I/O error, dev sdb, sector 401320384
Device sda not ready.
SCSI error : <0 0 3 1> return code =0x20000end_request: I/O error, dev sdd, sector 401321168end_request: I/O error, dev sdd, sector 401321176
Buffer I/O error on device diapered_dm-2, logical block 37057899 lost page write due to I/O error on diapered_dm-2
Buffer I/O error on device diapered_dm-2, logical block 37057900 lost page write due to I/O error on diapered_dm-2
Buffer I/O error on device diapered_dm-2, logical block 37057901 lost page write due to I/O error on diapered_dm-2
Buffer I/O error on device diapered_dm-2, logical block 37057902 lost page write due to I/O error on diapered_dm-2
Buffer I/O error on device diapered_dm-2, logical block 37057903 lost page write due to I/O error on diapered_dm-2
Buffer I/O error on device diapered_dm-2, logical block 37057904 lost page write due to I/O error on diapered_dm-2
Buffer I/O error on device diapered_dm-2, logical block 37057905 lost page write due to I/O error on diapered_dm-2
Buffer I/O error on device diapered_dm-2, logical block 37057906 lost page write due to I/O error on diapered_dm-2
Buffer I/O error on device diapered_dm-2, logical block 37057907 lost page write due to I/O error on diapered_dm-2
Buffer I/O error on device diapered_dm-2, logical block 37057908 lost page write due to I/O error on diapered_dm-2
GFS: fsid=admin:data.0: fatal: I/O error
GFS: fsid=admin:data.0: block = 37057898
GFS: fsid=admin:data.0: function =gfs_dwrite
GFS: fsid=admin:data.0: file =/usr/src/cluster/gfs-kernel/src/gfs/dio.c, line = 651
GFS: fsid=admin:data.0: time = 1106582338
GFS: fsid=admin:data.0: about to withdraw from the cluster
GFS: fsid=admin:data.0: waiting for outstanding I/O
SCSI error : <0 0 1 1> return code =0x20000
Device sdc not ready.
GFS: fsid=admin:data.0: warning: assertion "!buffer_busy(bh)" failed
GFS: fsid=admin:data.0: function =gfs_logbh_uninit
GFS: fsid=admin:data.0: file =/usr/src/cluster/gfs-kernel/src/gfs/dio.c, line = 930
GFS: fsid=admin:data.0: time = 1106582351
printk: 54 messages suppressed.
Buffer I/O error on device diapered_dm-2, logical block 36272387 lost page write due to I/O error on diapered_dm-2
Buffer I/O error on device diapered_dm-2, logical block 37024703 lost page write due to I/O error on diapered_dm-2
GFS: fsid=admin:data.0: telling LM to withdrawlock_dlm: withdraw abandoned memory
GFS: fsid=admin:data.0: withdrawn
printk: 12 messages suppressed.
Buffer I/O error on device diapered_dm-2, logical block 37005453 lost page write due to I/O error on diapered_dm-2
printk: 1036 messages suppressed.
Buffer I/O error on device diapered_dm-2, logical block 37006489 lost page write due to I/O error on diapered_dm-2
printk: 1035 messages suppressed.
Buffer I/O error on device diapered_dm-2, logical block 37007525 lost page write due to I/O error on diapered_dm-2while
/dev/vg/syslogcontinued to work as usual (dd-ing/dev/zeroto some file worked like a charm). After that error, SCP died, and I couldn't umount nor remount that filesystem. Fenced didn't triggered so I had to reboot the machine in order to make it work again (and I'm usingfence_ibmbladewhich works on another cluster I have).Since both LVs are a part of same VG (and, thus, are using the same physical device seen over multipath), I'd guess the problem is somewhere inside GFS, but the things that keep confusing me are:
- those SCSI errors that look like multipath errors
- name 'diapered_dm-2' which I never saw before
- fenced not fencing obviously faulty nodeWhat else do you need to debug this issue?
Once again, sorry for the cross-post...
Signature · 6 lines
christophe varoqui <[email protected]> -- dm-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/dm-devel
Quoted 5 lines · Lazar Obradovic
Since both LVs are a part of same VG (and, thus, are using the same physical device seen over multipath), I'd guess the problem is somewhere inside GFS, but the things that keep confusing me are:
- those SCSI errors that look like multipath errors
The SCSI errors appear to be the root problem, not GFS. I don't know what multipath might have to do with it.
Quoted 1 line
- name 'diapered_dm-2' which I never saw before
In the past, GFS would immediately panic the machine when it saw i/o errors. Now it tries to shut down the bad fs instead. After this happens you should be able to unmount the offending fs, leave the cluster and reboot the machine cleanly.
Quoted 1 line
- fenced not fencing obviously faulty node
In your situation, the node is running fine wrt the cluster so there's no need to fence it. GFS is just shutting down a faulty fs (doing this is not always very "clean" and can produce a lot of errors/warnings on the console.)
Perhaps we could reinstate an option to have gfs panic immediately when it sees i/o errors instead of trying to shut down the problem fs. In this case, the panicked node would be "dead" and it would be fenced.
Signature · 1 line
Dave Teigland <[email protected]>
Quoted 17 lines · David Teigland
Quoted 7 lines · Lazar Obradovic
Since both LVs are a part of same VG (and, thus, are using the same physical device seen over multipath), I'd guess the problem is somewhere inside GFS, but the things that keep confusing me are:
- those SCSI errors that look like multipath errors
The SCSI errors appear to be the root problem, not GFS. I don't know what multipath might have to do with it.
Quoted 10 lines
Quoted 3 lines
- name 'diapered_dm-2' which I never saw before
In the past, GFS would immediately panic the machine when it saw i/o errors. Now it tries to shut down the bad fs instead. After this happens you should be able to unmount the offending fs, leave the cluster and reboot the machine cleanly.
I have a question about your last comment. We did the following experiment with GFS 6.0.2:
1.- Setup a cluster using a unique GFS server and gnbd device (lock_gulm master
and gnbd_export in the same node).
2.- Fence out a node manually using fence_gnbd.
then we observed two cases:
1.- If the fenced machine is not mounting the GFS/gnbd fs, but only importing it, then we
can properly either reboot or restart the GFS services with no problem.
2.- If the fenced machine is mounting the GFS/gnbd fs, but with no process using it,
almost everything produces a kernel panic, even just unmounting the
unused fs.
In fact the only thing that works, besides pushing the reset
button, is 'reboot -f',
which is almost the same.
So, when you say "In the past", do you refer to GFS 6.0.2 ?
Quoted 17 lines
Quoted 5 lines
- fenced not fencing obviously faulty node
In your situation, the node is running fine wrt the cluster so there's no need to fence it. GFS is just shutting down a faulty fs (doing this is not always very "clean" and can produce a lot of errors/warnings on the console.)
Perhaps we could reinstate an option to have gfs panic immediately when it sees i/o errors instead of trying to shut down the problem fs. In this case, the panicked node would be "dead" and it would be fenced.
FWIW, I'm running LVM on top of device mapper to HSV110s, and it seems to work.
This is my multipath.conf
devices {
device {
vendor "COMPAQ "
product "HSV110 (C)COMPAQ"path_selector "round-robin 0"path_grouping_policy "group_by_serial"getuid_callout "/sbin/scsi_id -g -u -s /block/%n"path_checker "readsector 0"
#path_checker "tur"
#features "1 queue_if_no_path"
}
}
You might want to try the "readsector 0" checker rather than the test-unit-ready one. As others have pointed out, if you are running the qlogic driver then setting
#define QL_DEBUG_LEVEL_2
in drivers/scsi/qla2xxx/qla_dbg.h
makes the driver print out some more useful scsi information.
Guy
Signature · 11 lines
Dr. Guy Coates, Informatics System Group The Wellcome Trust Sanger Institute, Hinxton, Cambridge, CB10 1SA, UK Tel: +44 (0)1223 834244 ex 7199 -- dm-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/dm-devel