I can't create big file in ext2fs. If I delete that file rm hangs in
vinvalb state. See script file and dmesg below.
Script started on Wed Jun 25 12:15:16 2014
# dd if=/dev/zero of=/rot ot/image count=8000000
8000000+0 records in
8000000+0 records out
4096000000 bytes transferred in 950.745 secs (4308198 bytes/sec)
# vnconfig vnd0 /root/image
# fdisk -i vnd0
Do you wish to write new MBR and partition table? [n] y
Warning CHS values out of bounds only saving LBA values
Writing MBR at offset 0.
# fdisk -e vnd0
Enter 'help' for information
fdisk: 1> edit 3
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
-----------------------------------------------------------------------------
--
*3: A6 1 0 29 - 79999 0 100 [ 128: 7999872 ]
OpenBSD
Partition id ('0' to disable) [0 - FF]: [A6] (? for help) 83
Do you wish to edit in CHS mode? [n]
Partition offset: [128]
Partition size: [7999872]
fdisk:*1> write
Warning CHS values out of bounds only saving LBA values
Writing MBR at offset 0.
fdisk: 1> quit
# fdisk vnd0
Disk: vnd0 geometry: 80000/1/100 [8000000 Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
-----------------------------------------------------------------------------
--
0: 00 0 0 0 - 0 0 0 [ 0: 0 ]
unused
1: 00 0 0 0 - 0 0 0 [ 0: 0 ]
unused
2: 00 0 0 0 - 0 0 0 [ 0: 0 ]
unused
*3: 83 1 0 29 - 79999 0 100 [ 128: 7999872 ] Linux
files*
# disklabel vnd0
# /dev/rvnd0c:
type: vnd
disk: vnd device
label: fictitious
duid: 0000000000000000
flags:
bytes/sector: 512
sectors/track: 100
tracks/cylinder: 1
sectors/cylinder: 100
cylinders: 80000
total sectors: 8000000
boundstart: 0
boundend: 8000000
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
c: 8000000 0 unused
i: 7999872 128 ext2fs
# newfs_ext2fs vnd0i
/dev/rvnd0i: 3906.1MB (7999872 sectors) block size 4096, fragment size 4096
using 31 block groups of 128.0MB, 32768 blks, 16128 inodes.
super-block backups (for fsck_ext2fs -b #) at:
32768, 65536, 98304, 131072, 163840, 196608, 229376, 262144, 294912,
327680,
360448, 393216, 425984, 458752, 491520, 524288, 557056, 589824, 622592,
655360,
688128, 720896, 753664, 786432, 819200, 851968, 884736, 917504, 950272,
983040,
# mount /dev/vnd0i /mnt
# df -k
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/sd0a 13776942 4567384 8520712 35% /
/dev/vnd0i 3936944 20 3736928 0% /mnt
# dd if=/dev/zero of=/mnt/bigfile
dd: /mnt/bigfile: File too large
4194304+0 records in
4194303+0 records out
2147483136 bytes transferred in 1144.734 secs (1875965 bytes/sec)
# df -k
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/sd0a 13776942 4567394 8520702 35% /
/dev/vnd0i 3936944 2099224 1637724 56% /mnt
# rm /mnt/bigfile
Now rm hangs. Dmesg below.
OpenBSD 5.5-current (GENERIC) #192: Tue Jun 24 10:21:25 MDT 2014
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Mobile AMD Sempron(tm) Processor 2100+ ("AuthenticAMD" 686-class,
256KB L2 cache) 1 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,SSE3,CX16,LAHF,EAPICSP,A
MCR8,3DNOWP
real mem = 502689792 (479MB)
avail mem = 482824192 (460MB)
warning: no entropy supplied by boot loader
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 03/10/08, BIOS32 rev. 0 @ 0xfa2b0,
SMBIOS rev. 2.3 @ 0xf0000 (46 entries)
bios0: vendor Phoenix Technologies, LTD version "786R4 v1.03" date
03/10/2008
bios0: Hewlett-Packard hp t5735
acpi0 at bios0: rev 2
acpi0: sleep states S0 S5
acpi0: tables DSDT FACP _HPT MCFG APIC
acpi0: wakeup devices USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB5(S3)
SBAZ(S4) P2P_(S5) PCE2(S4) PCE3(S4) PCE4(S4) PCE5(S4) PCE6(S4) PCE7(S4)
PCE8(S4) PS2M(S5) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 199MHz
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 21, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (P2P_)
acpiprt2 at acpi0: bus -1 (PCE2)
acpiprt3 at acpi0: bus -1 (PCE3)
acpiprt4 at acpi0: bus 2 (PCE4)
acpiprt5 at acpi0: bus -1 (PCE5)
acpiprt6 at acpi0: bus -1 (PCE6)
acpiprt7 at acpi0: bus -1 (PCE7)
acpiprt8 at acpi0: bus -1 (PCE8)
acpiprt9 at acpi0: bus 1 (AGP_)
acpicpu0 at acpi0
acpitz0 at acpi0: critical temperature is 100 degC
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc0000/0xd600 0xce000/0x1a00
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "ATI RS690 Host" rev 0x00
ppb0 at pci0 dev 1 function 0 "ATI RS690 PCIE" rev 0x00
pci1 at ppb0 bus 1
radeondrm0 at pci1 dev 5 function 0 "ATI Radeon X1250 IGP" rev 0x00
drm0 at radeondrm0
radeondrm0: msi
ppb1 at pci0 dev 4 function 0 "ATI RS690 PCIE" rev 0x00
pci2 at ppb1 bus 2
bge0 at pci2 dev 0 function 0 "Broadcom BCM5787M" rev 0x02, BCM5754/5787 A2
(0xb002): msi, address 00:21:5a:6e:8d:95
brgphy0 at bge0 phy 1: BCM5787 10/100/1000baseT PHY, rev. 0
ohci0 at pci0 dev 19 function 0 "ATI SB600 USB" rev 0x00: apic 2 int 16,
version 1.0, legacy support
ohci1 at pci0 dev 19 function 1 "ATI SB600 USB" rev 0x00: apic 2 int 17,
version 1.0, legacy support
ohci2 at pci0 dev 19 function 2 "ATI SB600 USB" rev 0x00: apic 2 int 18,
version 1.0, legacy support
ohci3 at pci0 dev 19 function 3 "ATI SB600 USB" rev 0x00: apic 2 int 17,
version 1.0, legacy support
ohci4 at pci0 dev 19 function 4 "ATI SB600 USB" rev 0x00: apic 2 int 18,
version 1.0, legacy support
ehci0 at pci0 dev 19 function 5 "ATI SB600 USB2" rev 0x00: apic 2 int 19
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x14: SMI
iic0 at piixpm0
spdmem0 at iic0 addr 0x50: 512MB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
pciide0 at pci0 dev 20 function 1 "ATI SB600 IDE" rev 0x00: DMA, channel 0
configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: < 1024MB ATA Flash Disk>
wd0: 1-sector PIO, LBA, 977MB, 2001888 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
azalia0 at pci0 dev 20 function 2 "ATI SBx00 HD Audio" rev 0x00: apic 2 int
16
azalia0: codecs: Realtek ALC262
audio0 at azalia0
pcib0 at pci0 dev 20 function 3 "ATI SB600 ISA" rev 0x00
ppb2 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x00
pci3 at ppb2 bus 3
pchb1 at pci0 dev 24 function 0 "AMD AMD64 0Fh HyperTransport" rev 0x00
pchb2 at pci0 dev 24 function 1 "AMD AMD64 0Fh Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 0Fh DRAM Cfg" rev 0x00
kate0 at pci0 dev 24 function 3 "AMD AMD64 0Fh Misc Cfg" rev 0x00: core rev
DH-G2
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb2 at ohci1: USB revision 1.0
uhub2 at usb2 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb3 at ohci2: USB revision 1.0
uhub3 at usb3 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb4 at ohci3: USB revision 1.0
uhub4 at usb4 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb5 at ohci4: USB revision 1.0
uhub5 at usb5 "ATI OHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
/dev/ksyms: Symbol table not valid.
umass0 at uhub0 port 2 configuration 1 interface 0 "JetFlash Mass Storage
Device" rev 2.00/11.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <JetFlash, Transcend 16GB, 1100> SCSI2
0/direct removable serial.856410002704L86Z04OJ
sd0: 15468MB, 512 bytes/sector, 31678464 sectors
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root device: sd0a
swap device (default sd0b): sd0b
root on sd0a swap on sd0b dump on sd0b
drm: initializing kernel modesetting (RS690 0x1002:0x791F 0x103C:0x302B).
radeondrm0: VRAM: 32M 0x000000001E000000 - 0x000000001FFFFFFF (32M used)
radeondrm0: GTT: 512M 0x0000000020000000 - 0x000000003FFFFFFF
drm: PCIE GART of 512M enabled (table at 0x0000000001551000).
error: [drm:pid0:r100_cp_init_microcode] *ERROR* radeon_cp: Failed to load
firmware "radeon-rs690_cp"
error: [drm:pid0:r100_cp_init] *ERROR* Failed to load firmware!
error: [drm:pid0:rs690_startup] *ERROR* failed initializing CP (-2).
error: [drm:pid0:rs690_init] *ERROR* Disabling GPU acceleration
drm: radeon: cp finalized
radeondrm0: 1440x900
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (std, vt100 emulation)