I have OpenBSD 6.1 DomU installed on Debian Dom0 host.
Today I found issue with one of partitions (where mirror files were).
It says Input/output error when I'm trying access it after mount.
However fsck does not complain:
# fsck_ffs -f /dev/sd1a
** /dev/rsd1a
** File system is already clean
** Last Mounted on /open
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
725254 files, 94046365 used, 119012257 free (213185 frags, 14849884
blocks, 0.1% fragmentation)
And dd gives me an error:
# dd if=/dev/sd1a of=/dev/null bs=1m
dd: /dev/sd1a: Input/output error
0+0 records in
0+0 records out
0 bytes transferred in 0.012 secs (0 bytes/sec)
I tried to copy with dd on Dom0 and it was successful.
Dom0 config (I'm using LVM logical volumes for hda and hdb):
cat /etc/xen/mirror.openbsd.org.cfg
builder = "hvm"
memory = 2048
vcpus = 2
name = "mirror.openbsd.org"
disk = [ '/dev/xen_domU/mirror.openbsd.org-disk,raw,hda,w',
'/dev/xen_domU/mirror.openbsd.org-storage,raw,hdb,w']
boot = "c" # Boot to hard disk image
vif = [ mac=00:17:3E:50:FD:99,bridge=xenbr0' ]
usbdevice = 'tablet'
vnc = 1
stdvga=1
videoram=16
# cat /etc/fstab
9c43dedec3141fca.b none swap sw
9c43dedec3141fca.a / ffs rw 1 1
9cee670113714c9d.a /open ffs rw 1 1
# ls -lah /open/
total 8
drwxr-xr-x 2 root wheel 512B Apr 3 2016 .
drwxr-xr-x 15 root wheel 512B Apr 17 15:15 ..
# vi /etc/fstab
# disklabel sd0
# /dev/rsd0c:
type: ESDI
disk: ESDI/IDE disk
label: QEMU HARDDISK
duid: 9c43dedec3141fca
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 652
total sectors: 10485760
boundstart: 64
boundend: 10474380
drivedata: 0
16 partitions:
#size offset fstype [fsize bsize cpg]
a: 8401920 64 4.2BSD 2048 16384 1 # /
b: 2072396 8401984swap# none
c: 104857600 unused
# disklabel sd1
# /dev/rsd1c:
type: ESDI
disk: ESDI/IDE disk
label: QEMU HARDDISK
duid: 9cee670113714c9d
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 213879
total sectors: 3435978752
boundstart: 0
boundend: 3435978752
drivedata: 0
16 partitions:
#size offset fstype [fsize bsize cpg]
a: 34359787520 4.2BSD 8192 65536 1 # /open
c: 34359787520 unused
# mount /open/
# ls -lah /open/
ls: /open/: Input/output error
# umount /open
umount: /open: Input/output error
# ls -lah /
ls: open: Input/output error
total 60720
drwxr-xr-x 15 root wheel 512B Apr 17 15:15 .
drwxr-xr-x 15 root wheel 512B Apr 17 15:15 ..
-rw-r--r-- 1 root wheel 578B Apr 2 2016 .cshrc
-rw-r--r-- 1 root wheel 468B Apr 2 2016 .profile
drwxr-xr-x 2 root wheel 512B Apr 1 22:38 altroot
drwxr-xr-x 2 root wheel 1.0K Apr 1 22:38 bin
-rw-r--r-- 1 root wheel 84.6K Apr 17 15:15 boot
-rw-r--r-- 1 root wheel 10.3M Apr 17 15:10 bsd
-rw-r--r-- 1 root wheel 9.0M Apr 17 15:10 bsd.rd
-rw-r--r-- 1 root wheel 10.2M Apr 17 15:10 bsd.sp
drwxr-xr-x 3 root wheel 19.5K Apr 17 15:57 dev
drwxr-xr-x 25 root wheel 2.0K Apr 17 15:20 etc
drwxr-xr-x 5 root wheel 512B Apr 1 22:38 home
drwx-T 2 root wheel 2.0K Apr 17 14:35 lost+found
drwxr-xr-x 2 root wheel 512B Apr 1 22:38 mnt
drwx-- 7 root wheel 512B Apr 1 22:38 root
drwxr-xr-x 2 root wheel 1.5K Apr 1 22:38 sbin
lrwxrwx--- 1 root wheel11B Apr 1 22:38 sys -> usr/src/sys
drwxrwxrwt 6 root wheel 512B Apr 17 16:00 tmp
drwxr-xr-x 16 root wheel 512B Apr 1 23:05 usr
drwxr-xr-x 23 root wheel 512B Apr 1 23:05 var
# mount
/dev/sd0a on / type ffs (local)
/dev/sd1a on /open type ffs (local)
# dmesg
OpenBSD 6.1 (GENERIC.MP) #20: Sat Apr 1 13:45:56 MDT 2017
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2113925120 (2015MB)
avail mem = 2045243392 (1950MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xfc001000 (12 entries)
bios0: vendor Xen version "4.8.1-pre" date 01/23/2017
bios0: Xen HVM domU
acpi0 at bios0: rev 2
acpi0: sleep states S3 S4 S5
acpi0: tables DSDT FACP APIC HPET WAET SSDT SSDT
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 11, 48 pins
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU X5660 @ 2.80GHz, 2793.35 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,HTT,SSE3,SSSE3,CX16,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,HV,NXE,PAGE1GB,RDTSCP,LONG,LAHF
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: api