【问题标题】:Windows Azure Ubuntu Disk read-onlyWindows Azure Ubuntu 磁盘只读
【发布时间】:2017-02-15 17:27:05
【问题描述】:

我的 Ubuntu Windows Azure VM 不断将磁盘置于只读状态。 这是日志:

Jun  5 08:48:33 addagio-web kernel: [253582.732005] hv_storvsc vmbus_0_1: cmd 0x2a     scsi status 0x2 srb status 0x4
Jun  5 08:48:33 addagio-web kernel: [253582.732008] hv_storvsc vmbus_0_1: cmd 0x2a scsi status 0x2 srb status 0x4
Jun  5 08:48:33 addagio-web kernel: [253582.732012] hv_storvsc vmbus_0_1: cmd 0x2a scsi status 0x2 srb status 0x4
Jun  5 08:48:33 addagio-web kernel: [253582.732015] hv_storvsc vmbus_0_1: cmd 0x2a scsi status 0x2 srb status 0x4
Jun  5 08:48:33 addagio-web kernel: [253582.732018] hv_storvsc vmbus_0_1: cmd 0x2a scsi status 0x2 srb status 0x4
Jun  5 08:48:33 addagio-web kernel: [253582.732021] hv_storvsc vmbus_0_1: cmd 0x2a scsi status 0x2 srb status 0x4
Jun  5 08:48:33 addagio-web kernel: [253582.732025] hv_storvsc vmbus_0_1: cmd 0x2a scsi status 0x2 srb status 0x4
Jun  5 08:48:43 addagio-web kernel: [253592.758687] sd 0:0:0:0: [sda] Unhandled error code
Jun  5 08:48:43 addagio-web kernel: [253592.758691] sd 0:0:0:0: [sda]  Result: hostbyte=invalid driverbyte=DRIVER_OK
Jun  5 08:48:43 addagio-web kernel: [253592.758696] sd 0:0:0:0: [sda] CDB: Write(10): 2a 00 00 c0 48 01 00 00 08 00
Jun  5 08:48:43 addagio-web kernel: [253592.758704] end_request: critical target error, dev sda, sector 12601345
Jun  5 08:48:43 addagio-web kernel: [253592.832032] quiet_error: 12 callbacks suppressed
Jun  5 08:48:43 addagio-web kernel: [253592.832036] Buffer I/O error on device sda1, logical block 1573160
Jun  5 08:48:43 addagio-web kernel: [253592.833992] lost page write due to I/O error on sda1
Jun  5 08:48:43 addagio-web kernel: [253592.834012] sd 0:0:0:0: [sda]  Sense Key : No Sense [current]
Jun  5 08:48:43 addagio-web kernel: [253592.834026] sd 0:0:0:0: [sda]  Add. Sense: No additional sense information
Jun  5 08:48:43 addagio-web kernel: [253592.834046] sd 0:0:0:0: [sda]  Sense Key : No Sense [current]
Jun  5 08:48:43 addagio-web kernel: [253592.834062] sd 0:0:0:0: [sda]  Add. Sense: No additional sense information
Jun  5 08:48:43 addagio-web kernel: [253592.834076] sd 0:0:0:0: [sda]  Sense Key : No Sense [current]

【问题讨论】:

  • 内核:[256061.167746] sd 0:0:0:0: [sda] 未处理的错误代码内核:[256061.167751] sd 0:0:0:0: [sda] 结果:hostbyte=invalid driverbyte=DRIVER_OK kernel: [256061.167755] sd 0:0:0:0: [sda] CDB: Write(10): 2a 00 00 e5 00 09 00 00 08 00 kernel: [256061.167763] end_request: 关键目标错误,dev sda ,扇区 15007753 内核:[256061.169963] 设备 sda1 上的缓冲区 I/O 错误,逻辑块 1873961 内核:[256061.172048] EXT4-fs 警告(设备 sda1):ext4_end_bio:250:写入 inode 1235 的 I/O 错误(偏移量 8192 大小4096 起跑台 1875970)

标签: ubuntu azure


【解决方案1】:

您使用的是什么内核版本? This thread 建议它专门用于将 storvsc 驱动程序与 ext4 文件系统一起使用,并且在 Linux 内核 3.9-rc1 中添加了一种解决方法。

因此,请尝试使用非 ext4 文件系统,或将内核更新到更高版本。

【讨论】:

    【解决方案2】:

    几天前,我们的 Ubuntu 16.04 LTS 服务器的根分区之一变为只读。关机,重新启动,解除分配没有帮助,sda1 到 / 仍然以只读模式安装。 我已将其报告给 Azure 支持。他们真的很有帮助。我们发现 sda 有一些错误。现在我不知道为什么。

    这是我们修复它的方法:

    修复文件系统

    fsck /dev/sda1

    使用读写选项重新挂载根分区

    mount -o remount,rw /

    检查是否成功

    mount

    我们的控制台消息

    root@yourserver:~# fsck /dev/sda1

    fsck from util-linux 2.27.1
    e2fsck 1.42.13 (17-May-2015)
    cloudimg-rootfs contains a file system with errors, check forced.
    Pass 1: Checking inodes, blocks, and sizes
    Deleted inode 2178 has zero dtime. Fix<y>? yes
    Inodes that were part of a corrupted orphan linked list found. Fix<y>? yes
    Inode 2179 was part of the orphaned inode list. FIXED.
    Inode 256325 was part of the orphaned inode list. FIXED.
    Inode 256327 was part of the orphaned inode list. FIXED.
    Inode 256329 was part of the orphaned inode list. FIXED.
    Pass 2: Checking directory structure
    Pass 3: Checking directory connectivity
    Pass 4: Checking reference counts
    Pass 5: Checking group summary information
    Block bitmap differences: -(46192--46873) -531081 -(6055714--6055716) -(6055720--6055726)
    Fix<y>? yes
    @ 987654341@
    Fix<y>? yes
    Free blocks count wrong for group #16 (25664, counted=25665).
    Fix<y>? yes
    Free blocks count wrong for group #184 (15998, counted=16008).
    Fix<y>? yes
    Free blocks count wrong (4654888, counted=4655581).
    Fix<y>? yes
    Inode bitmap differences: -(2178--2179) -256325 -256327 -256329
    Fix<y>? yes
    Free inodes count wrong for group #0 (39, counted=41).
    Fix<y>? yes
    Free inodes count wrong for group #16 (3, counted=6).
    Fix<y>? yes
    Directories count wrong for group #16 (2275, counted=2274).
    Fix<y>? yes
    Free inodes count wrong (3060151, counted=3060156).
    Fix<y>? yes
    <br>cloudimg-rootfs: ***** FILE SYSTEM WAS MODIFIED *****
    cloudimg-rootfs: ***** REBOOT LINUX *****
    cloudimg-rootfs: 699844/3760000 files (0.1% non-contiguous), 3024158/7679739 blocks

    root@yourserver:~# mount -o remount,rw /

    root@yourserver:~# mount

    ...
    /dev/sda1 on / type ext4 (rw,relatime,discard,data=ordered)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-09-28
      • 2019-11-22
      • 2021-09-22
      • 2013-10-16
      相关资源
      最近更新 更多