LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-24-2015, 02:45 AM   #1
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
/dev/sdb: read failed after 0 of 4096 at 0: Input/output error


I get this error everytime I run any LVM commands on my machine which is running with SLES on IBM and is connected to EMC VNX5300 storage.

Initially I thought one of my block device has failed but everything on the OS side looked normal as seen below

output of multipath
Code:
# multipath -ll
36006016037a02e00ca86fb1d4847e111 dm-0 DGC,RAID 5
size=200G features='1 queue_if_no_path' hwhandler='1 emc' wp=rw
|-+- policy='service-time 0' prio=4 status=active
| `- 0:0:0:0 sda 8:0  active ready running
`-+- policy='service-time 0' prio=1 status=enabled
  `- 1:0:0:0 sdb 8:16 active ready running

# lsscsi
[1:0:0:0]    disk    DGC      RAID 5           0532  /dev/sda
[2:0:0:0]    disk    DGC      RAID 5           0532  /dev/sdb

multipathd> show paths
hcil    dev dev_t pri dm_st  chk_st dev_st  next_check
1:0:0:0 sda 8:0   4   active ready  running XXXXXX.... 13/20
2:0:0:0 sdb 8:16  1   active ready  running XXXXXX.... 13/20
But I couldnot see /dev/sdb
Code:
# fdisk /dev/sdb
fdisk: unable to read /dev/sdb: Invalid argument
So I manually tried to remove sda just to make sure if the redundancy is working properly
Code:
# echo 1 > /sys/block/sda/device/delete

# multipath -ll
36006016037a02e00ca86fb1d4847e111 dm-0 DGC,RAID 5
size=200G features='1 queue_if_no_path' hwhandler='1 emc' wp=rw
`-+- policy='service-time 0' prio=2 status=active
  `- 1:0:0:0 sdb 8:16 active ready running
Thern I rescanned my HBA
Code:
# echo "- - -" > /sys/class/scsi_host/host0/scan
and both the block device re-appear
Code:
# multipath -ll
36006016037a02e00ca86fb1d4847e111 dm-0 DGC,RAID 5
size=200G features='1 queue_if_no_path' hwhandler='1 emc' wp=rw
|-+- policy='service-time 0' prio=4 status=active
| `- 0:0:0:0 sda 8:0  active ready running
`-+- policy='service-time 0' prio=1 status=enabled
  `- 1:0:0:0 sdb 8:16 active ready running
Adding to my surprise all the errors which were shown earlier while running lvm commands were gone
Code:
# lvs
  LV                     VG     Attr      LSize   Pool Origin Data%  Move Log Copy%  Convert
  ISS                    system -wi-ao--- 120.47g
  is-main                system -wi-ao---  15.00g
  system-opt-mgtservices system -wi-ao---   5.00g
  system-usr             system -wi-ao---   2.00g
  system-var             system -wi-ao---   2.00g
  system-var-log         system -wi-ao---   2.00g
  system-var-opt         system -wi-ao---  25.00g
  tmp                    system -wi-ao---  20.00g
And also this device was visible again
Code:
# fdisk /dev/sdb

Command (m for help): p

Disk /dev/sdb: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders, total 419430400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006db56

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048     1060863      529408   83  Linux
/dev/sdb2         1060864     9461759     4200448   83  Linux
/dev/sdb3         9461760   411023359   200780800   8e  Linux LVM
/dev/sdb4       411023360   419430399     4203520   82  Linux swap / Solaris
I am really confused what is leading to such behavior? Any misconfiguration in mutipath?

Below is my multipath config
Code:
defaults {
        verbosity 2
        polling_interval 5
        multipath_dir "/lib64/multipath"
        path_selector "service-time 0"
        path_grouping_policy "failover"
        uid_attribute "ID_SERIAL"
        prio "const"
        prio_args ""
        features "0"
        path_checker "directio"
        alias_prefix "mpath"
        failback "manual"
        rr_min_io 1000
        rr_min_io_rq 1
        max_fds "max"
        rr_weight "uniform"
        queue_without_daemon "yes"
        flush_on_last_del "no"
        user_friendly_names "no"
        fast_io_fail_tmo 5
        bindings_file "/etc/multipath/bindings"
        wwids_file /etc/multipath/wwids
        log_checker_err always
        retain_attached_hw_handler no
        detect_prio no
}
 
Old 07-24-2015, 03:54 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Then try to replace the mentioned HDD.
 
Old 07-24-2015, 04:33 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195

Original Poster
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
It is a SAN storage, sda and sdb are just block devices

I didn't get you exactly !!
 
Old 07-24-2015, 06:02 AM   #4
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Then check the complete device.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] intel mfsys25 centos /dev/sdb [Input/output error] sangreal Linux - Server 1 10-04-2014 05:19 AM
LVM /dev/block/104:0: read failed after 0 of 4096 at 0: Input/output error hesisaboury Linux - Server 2 08-19-2013 05:16 AM
/dev/sda: read failed after 0 of 4096 at 0: Input/output error Danesh Linux - Software 3 04-08-2008 06:31 AM
/dev/sda: read failed after 0 of 4096 at 0: Input/output error Danesh Linux - Newbie 1 04-03-2008 06:59 AM
unpacking of archive failed: cpio: read failed-input/output error rafc Linux - Newbie 0 04-21-2004 09:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration