LINUX.ORG.RU

Сообщения sergvic

 

I/O error на диске Что делать ?

Добрый день. В логи начали сыпаться такие ошибки

May 13 20:39:35 htc kernel: [ 1032.732955] sd 3:0:0:0: [sdb] tag#9 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT
May 13 20:39:35 htc kernel: [ 1032.732972] sd 3:0:0:0: [sdb] tag#9 CDB: Write(10) 2a 00 56 51 de 58 00 05 40 00
May 13 20:39:35 htc kernel: [ 1032.732980] blk_update_request: I/O error, dev sdb, sector 1448205912
May 13 20:39:35 htc kernel: [ 1032.733023] sd 3:0:0:0: [sdb] tag#8 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT
May 13 20:39:35 htc kernel: [ 1032.733032] sd 3:0:0:0: [sdb] tag#8 CDB: Write(10) 2a 00 56 51 db 98 00 02 c0 00
May 13 20:39:35 htc kernel: [ 1032.733037] blk_update_request: I/O error, dev sdb, sector 1448205208
May 13 20:39:35 htc kernel: [ 1032.733150] sd 3:0:0:0: [sdb] tag#7 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT
May 13 20:39:35 htc kernel: [ 1032.733158] sd 3:0:0:0: [sdb] tag#7 CDB: Write(10) 2a 00 56 51 d6 58 00 05 40 00
May 13 20:39:35 htc kernel: [ 1032.733163] blk_update_request: I/O error, dev sdb, sector 1448203864
May 13 20:39:35 htc kernel: [ 1032.733180] EXT4-fs warning (device dm-1): ext4_end_bio:330: I/O error -5 writing to inode 97032566 (offset 2846666752 size 4194304 starting block 173638603)
May 13 20:39:35 htc kernel: [ 1032.733187] Buffer I/O error on device dm-1, logical block 173638603
May 13 20:39:35 htc kernel: [ 1032.733193] Buffer I/O error on device dm-1, logical block 173638604
May 13 20:39:35 htc kernel: [ 1032.733199] Buffer I/O error on device dm-1, logical block 173638605
May 13 20:39:35 htc kernel: [ 1032.733204] Buffer I/O error on device dm-1, logical block 173638606
May 13 20:39:35 htc kernel: [ 1032.733209] Buffer I/O error on device dm-1, logical block 173638607
May 13 20:39:35 htc kernel: [ 1032.733214] Buffer I/O error on device dm-1, logical block 173638608
May 13 20:39:35 htc kernel: [ 1032.733218] Buffer I/O error on device dm-1, logical block 173638609
May 13 20:39:35 htc kernel: [ 1032.733223] Buffer I/O error on device dm-1, logical block 173638610
May 13 20:39:35 htc kernel: [ 1032.733229] Buffer I/O error on device dm-1, logical block 173638611
May 13 20:39:35 htc kernel: [ 1032.733233] Buffer I/O error on device dm-1, logical block 173638612
May 13 20:39:35 htc kernel: [ 1032.733489] sd 3:0:0:0: [sdb] tag#6 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT
May 13 20:39:35 htc kernel: [ 1032.733497] sd 3:0:0:0: [sdb] tag#6 CDB: Write(10) 2a 00 56 51 d3 98 00 02 c0 00
May 13 20:39:35 htc kernel: [ 1032.733501] blk_update_request: I/O error, dev sdb, sector 1448203160
May 13 20:39:35 htc kernel: [ 1032.733547] sd 3:0:0:0: [sdb] tag#5 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT
May 13 20:39:35 htc kernel: [ 1032.733554] sd 3:0:0:0: [sdb] tag#5 CDB: Write(10) 2a 00 56 51 ce 58 00 05 40 00
May 13 20:39:35 htc kernel: [ 1032.733559] blk_update_request: I/O error, dev sdb, sector 1448201816
May 13 20:39:35 htc kernel: [ 1032.733573] EXT4-fs warning (device dm-1): ext4_end_bio:330: I/O error -5 writing to inode 97032566 (offset 2846666752 size 4194304 starting block 173638347)
May 13 20:39:35 htc kernel: [ 1032.733812] sd 3:0:0:0: [sdb] tag#4 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT
May 13 20:39:35 htc kernel: [ 1032.733819] sd 3:0:0:0: [sdb] tag#4 CDB: Write(10) 2a 00 76 09 da e0 00 00 08 00
May 13 20:39:35 htc kernel: [ 1032.733824] blk_update_request: I/O error, dev sdb, sector 1980357344
May 13 20:39:35 htc kernel: [ 1032.733830] blk_update_request: I/O error, dev sdb, sector 1980357344
May 13 20:39:35 htc kernel: [ 1032.733865] sd 3:0:0:0: [sdb] tag#3 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT
May 13 20:39:35 htc kernel: [ 1032.733872] sd 3:0:0:0: [sdb] tag#3 CDB: Write(10) 2a 00 56 51 cd 40 00 01 18 00
May 13 20:39:35 htc kernel: [ 1032.733880] Aborting journal on device dm-1-8.
May 13 20:39:35 htc kernel: [ 1032.733886] blk_update_request: I/O error, dev sdb, sector 1448201536
May 13 20:39:35 htc kernel: [ 1032.733933] sd 3:0:0:0: [sdb] tag#2 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT
May 13 20:39:35 htc kernel: [ 1032.733941] sd 3:0:0:0: [sdb] tag#2 CDB: Write(10) 2a 00 56 51 c8 00 00 05 40 00
May 13 20:39:35 htc kernel: [ 1032.733946] blk_update_request: I/O error, dev sdb, sector 1448200192
May 13 20:39:35 htc kernel: [ 1032.733961] EXT4-fs warning (device dm-1): ext4_end_bio:330: I/O error -5 writing to inode 97032566 (offset 2843738112 size 2928640 starting block 173638144)
May 13 20:39:35 htc kernel: [ 1032.734187] sd 3:0:0:0: [sdb] tag#1 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT
May 13 20:39:35 htc kernel: [ 1032.734194] sd 3:0:0:0: [sdb] tag#1 CDB: Write(10) 2a 00 56 51 c5 40 00 02 c0 00
May 13 20:39:35 htc kernel: [ 1032.734199] blk_update_request: I/O error, dev sdb, sector 1448199488
May 13 20:39:35 htc kernel: [ 1032.734245] sd 3:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT
May 13 20:39:35 htc kernel: [ 1032.734252] sd 3:0:0:0: [sdb] tag#0 CDB: Write(10) 2a 00 56 51 c0 00 00 05 40 00
May 13 20:39:35 htc kernel: [ 1032.734265] EXT4-fs warning (device dm-1): ext4_end_bio:330: I/O error -5 writing to inode 97032566 (offset 2843738112 size 2928640 starting block 173637888)
May 13 20:39:35 htc kernel: [ 1032.734518] EXT4-fs warning (device dm-1): ext4_end_bio:330: I/O error -5 writing to inode 97032566 (offset 2846666752 size 4194304 starting block 173638859)
May 13 20:39:35 htc kernel: [ 1032.734821] EXT4-fs warning (device dm-1): ext4_end_bio:330: I/O error -5 writing to inode 97032566 (offset 2846666752 size 4194304 starting block 173639115)
May 13 20:39:35 htc kernel: [ 1032.735141] EXT4-fs warning (device dm-1): ext4_end_bio:330: I/O error -5 writing to inode 97032566 (offset 2850861056 size 1265664 starting block 173639371)
May 13 20:39:35 htc kernel: [ 1032.735377] EXT4-fs warning (device dm-1): ext4_end_bio:330: I/O error -5 writing to inode 97032566 (offset 2850861056 size 1265664 starting block 173639627)
May 13 20:39:35 htc kernel: [ 1032.735506] EXT4-fs warning (device dm-1): ext4_end_bio:330: I/O error -5 writing to inode 97032566 (offset 2852126720 size 2928640 starting block 173639680)
May 13 20:39:35 htc kernel: [ 1032.735799] EXT4-fs warning (device dm-1): ext4_end_bio:330: I/O error -5 writing to inode 97032566 (offset 2852126720 size 2928640 starting block 173639936)
May 13 20:39:35 htc kernel: [ 1034.217987] EXT4-fs error (device dm-1): ext4_journal_check_start:56: Detected aborted journal
May 13 20:39:35 htc kernel: [ 1034.218003] EXT4-fs (dm-1): Remounting filesystem read-only
Что это может означать ? Сыпется диск или может быть другая причина?

 ,

sergvic
()

Как правильно удалить диски из LVM

Добрый день.

Имею в системе 3 диска 2Тб, и два по 500 Гб.

root@htc:/home/sergvic# pvdisplay
  --- Physical volume ---
  PV Name               /dev/sdb6
  VG Name               root
  PV Size               27,94 GiB / not usable 0
  Allocatable           yes (but full)
  PE Size               4,00 MiB
  Total PE              7152
  Free PE               0
  Allocated PE          7152
  PV UUID               pugZVQ-I1oG-sUmt-NVqJ-JVFc-XGfL-yjtceQ

  --- Physical volume ---
  PV Name               /dev/sdb7
  VG Name               home
  PV Size               1,79 TiB / not usable 3,00 MiB
  Allocatable           yes (but full)
  PE Size               4,00 MiB
  Total PE              469718
  Free PE               0
  Allocated PE          469718
  PV UUID               0sU4ct-oR0t-6zKr-LqW9-cWNE-G2De-VGfiDW

  --- Physical volume ---
  PV Name               /dev/sda
  VG Name               home
  PV Size               465,76 GiB / not usable 4,02 MiB
  Allocatable           yes (but full)
  PE Size               4,00 MiB
  Total PE              119234
  Free PE               0
  Allocated PE          119234
  PV UUID               VffGme-lf7x-EdIk-ayeH-l9oF-R08D-VUbXWn

  --- Physical volume ---
  PV Name               /dev/sdc
  VG Name               home
  PV Size               465,76 GiB / not usable 4,02 MiB
  Allocatable           yes (but full)
  PE Size               4,00 MiB
  Total PE              119234
  Free PE               0
  Allocated PE          119234
  PV UUID               whC90V-qGlq-bCr2-QX2A-Ge3P-DbGd-GQWONL

root@htc:/home/sergvic# lvdisplay
  --- Logical volume ---
  LV Path                /dev/root/root
  LV Name                root
  VG Name                root
  LV UUID                RsLwt1-eAqf-3dp1-hx8W-SEfH-KQ0B-z98LcO
  LV Write Access        read/write
  LV Creation host, time htc, 2013-06-21 20:58:31 +0400
  LV Status              available
  # open                 1
  LV Size                23,28 GiB
  Current LE             5960
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:0

  --- Logical volume ---
  LV Path                /dev/root/swap_2
  LV Name                swap_2
  VG Name                root
  LV UUID                5p2ulm-TtuW-6Rsl-1IxR-NHog-AImR-sWQo0t
  LV Write Access        read/write
  LV Creation host, time htc, 2013-06-21 20:59:28 +0400
  LV Status              available
  # open                 2
  LV Size                4,66 GiB
  Current LE             1192
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:2

  --- Logical volume ---
  LV Path                /dev/home/home
  LV Name                home
  VG Name                home
  LV UUID                nnJ6tN-TDys-GFHf-CA3n-rmCd-aR5X-3YBLkI
  LV Write Access        read/write
  LV Creation host, time htc, 2013-06-21 21:04:14 +0400
  LV Status              available
  # open                 1
  LV Size                2,70 TiB
  Current LE             708186
  Segments               3
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:1

root@htc:/home/sergvic# vgdisplay
  --- Volume group ---
  VG Name               root
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               27,94 GiB
  PE Size               4,00 MiB
  Total PE              7152
  Alloc PE / Size       7152 / 27,94 GiB
  Free  PE / Size       0 / 0
  VG UUID               lSWaRx-PRBI-qSgp-mzMO-0QGv-7OKw-xT7wOC

  --- Volume group ---
  VG Name               home
  System ID
  Format                lvm2
  Metadata Areas        3
  Metadata Sequence No  5
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                3
  Act PV                3
  VG Size               2,70 TiB
  PE Size               4,00 MiB
  Total PE              708186
  Alloc PE / Size       708186 / 2,70 TiB
  Free  PE / Size       0 / 0
  VG UUID               3Ssnsi-wJtZ-5tnQ-E01F-9zCk-yItK-wVsAJa

root@htc:/home/sergvic#
root@htc:/home/sergvic# df -h
Файл.система          Размер Использовано  Дост Использовано% Cмонтировано в
udev                    420M            0  420M            0% /dev
tmpfs                    88M         4,2M   83M            5% /run
/dev/mapper/root-root    23G         4,2G   18G           20% /
tmpfs                   436M         4,0K  436M            1% /dev/shm
tmpfs                   5,0M         4,0K  5,0M            1% /run/lock
tmpfs                   436M            0  436M            0% /sys/fs/cgroup
/dev/sdb5               231M         131M   84M           62% /boot
/dev/mapper/home-home   2,7T         1,6T 1002G           62% /home
cgmfs                   100K            0  100K            0% /run/cgmanager/fs
tmpfs                    88M            0   88M            0% /run/user/1001
tmpfs                    88M            0   88M            0% /run/user/0
/dev/sdd1               2,7T         1,6T  1,1T           61% /media
tmpfs                    88M            0   88M            0% /run/user/1000

Хочу удалить два диска которые по 500 Гб (sda,sdc) из LVM. Как правильно это сделать ? Нужно ли уменьшать размер LVM и файловой системы (resize2fs, lvresize) или достаточно сделать vgreduce home /dev/sdc vgreduce home /dev/sda. Как узнать есть ли на этих дисках данные? Вроде используется 1,6 Тб, возможно на этих дисках нет данных.

 

sergvic
()

RSS подписка на новые темы