On Tue, Jun 25, 2013 at 2:49 PM, Sedat Dilek <[email protected]> wrote:
> On Tue, Jun 25, 2013 at 2:48 PM, <[email protected]> wrote:
>> Hi!
>>> > There are certain testcases that needs a separate filesystem partition
>>> > to play with, if you don't pass physical disk partition to the runtest
>>> > script a loopback device is created, formatted and mounted.
>>> >
>>> >> 10240+0 records in
>>> >> 10240+0 records out
>>> >> 10240000 bytes (10 MB) copied, 0.260004 s, 39.4 MB/s
>>> >> ^C
>>> >>
>>> >> root# dmesg | tail
>>> >>
>>> >> [ 78.095907] EXT4-fs (loop1): VFS: Can't find ext4 filesystem <--- ???
>>> >
>>> > This simply looks like the 10MB image is not enough for the ext4 journal
>>> > for some reason.
>>> >
>>> > Try following patch that increases the size to 100MB.
>>> >
>>> > diff --git a/runltp b/runltp
>>> > index a8bf404..7955f44 100755
>>> > --- a/runltp
>>> > +++ b/runltp
>>> > @@ -984,7 +984,7 @@ main()
>>> > create_block()
>>> > {
>>> > #create a block device with ext4 filesystem.
>>> > - dd if=/dev/zero of=${TMP}/test.img bs=1kB count=10240 &>/dev/null
>>> > + dd if=/dev/zero of=${TMP}/test.img bs=1kB count=102400 &>/dev/null
>>> > if [ $? -ne 0 ]; then
>>> > echo "Failed to create loopback device image, please check disk
>>> > space and re-run"
>>> > return 1
>>> > --
>>>
>>> Hmm, that did not help.
>>
>> What was the error message, same as previous?
>>
>
> Here we go.
>
> ...
> mount: wrong fs type, bad option, bad superblock on /dev/loop1,
> missing codepage or helper program, or other error
> In some cases useful info is found in syslog - try
> dmesg | tail or so
>
> FATAL: can't mount block device /dev/loop1.
> mke2fs 1.42 (29-Nov-2011)
> mkfs.ext4: Device size reported to be zero. Invalid partition specified, or
> partition table wasn't reread after running fdisk, due to
> a modified partition being busy and in use. You may need to reboot
> to re-read your partition table.
>
> 102400+0 records in
> 102400+0 records out
> 102400000 bytes (102 MB) copied, 0.542412 s, 189 MB/s
> ...
>
> # dmesg | tail
> ...
> [ 1179.820940] EXT4-fs (loop1): VFS: Can't find ext4 filesystem
>
File runltp-f-ipc.txt attached.
- Sedat -
> - Sedat -
>
>
>>> How much disc-space someone need on the partition where LTP resides
>>> (where the tests are performed)?
>>
>> Not much, I do not know the precise number but about gigabyte should be
>> enough (and far less when you omit aio and fs stress tests).
>>
>>> $ LANG=C LC_ALL=C df -T
>>> Filesystem Type 1K-blocks Used Available Use% Mounted on
>>> rootfs rootfs 17753424 12825524 4003024 77% /
>>> udev devtmpfs 1960968 4 1960964 1% /dev
>>> tmpfs tmpfs 788020 888 787132 1% /run
>>> /dev/sda2 fuseblk 465546236 107358584 358187652 24% /host
>>> /dev/loop0 ext4 17753424 12825524 4003024 77% /
>>> none tmpfs 5120 0 5120 0% /run/lock
>>> none tmpfs 1970048 156 1969892 1% /run/shm
>>>
>>> Can I use a different partition where I have more disc-space available?
>>
>> LTP uses TMPDIR env variable for that (and defaults to /tmp/ when TMPDIR
>> is not set).
>>
>> --
>> Cyril Hrubis
>> [email protected]
INFO: creating /opt/ltp/results directory
Checking for required user/group ids
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.
'nobody' user id and group found.
'bin' user id and group found.
'daemon' user id and group found.
Users group found.
Sys group found.
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"
NAME="Ubuntu"
VERSION="12.04.2 LTS, Precise Pangolin"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu precise (12.04.2 LTS)"
VERSION_ID="12.04"
Linux fambox 3.10.0-rc7-next20130624-2-iniza-small #1 SMP Tue Jun 25 14:23:41
CEST 2013 x86_64 x86_64 x86_64 GNU/Linux
Required users/groups exist.
Gnu C gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Gnu make 3.81
util-linux linux 2.20.1
mount linux 2.20.1 (with libblkid and selinux support)
modutils 6
e2fsprogs 1.42
PPP 2.4.5
Linux C Library > libc.2.15
Dynamic linker (ldd) 2.15
Procps 3.2.8
Net-tools 1.60
iproute2 iproute2-ss121211
Kbd 1.15.2
Sh-utils 8.13
Modules Loaded parport_pc rfcomm bnep ppdev snd_hda_codec_hdmi arc4
snd_hda_codec_realtek iwldvm mac80211 snd_hda_intel snd_hda_codec uvcvideo
snd_hwdep snd_pcm joydev videobuf2_vmalloc videobuf2_memops snd_page_alloc
videobuf2_core snd_seq_midi videodev snd_seq_midi_event i915 iwlwifi
snd_rawmidi snd_seq snd_timer snd_seq_device psmouse btusb cfg80211 snd
i2c_algo_bit bluetooth drm_kms_helper soundcore drm serio_raw samsung_laptop
lpc_ich wmi video mac_hid lp parport hid_generic usbhid hid usb_storage r8169
mii
free reports:
total used free shared buffers cached
Mem: 3945272 3781264 164008 0 1165408 1880640
-/+ buffers/cache: 735216 3210056
Swap: 262140 20 262120
/proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core(TM) i5-2467M CPU @ 1.60GHz
stepping : 7
microcode : 0x28
cpu MHz : 1712.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm
constant_tsc arch_perfmon pebs bts nopl xtopology nonstop_tsc aperfmperf
eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm
pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida
arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid
bogomips : 3192.91
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core(TM) i5-2467M CPU @ 1.60GHz
stepping : 7
microcode : 0x28
cpu MHz : 1984.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm
constant_tsc arch_perfmon pebs bts nopl xtopology nonstop_tsc aperfmperf
eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm
pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida
arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid
bogomips : 3192.91
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core(TM) i5-2467M CPU @ 1.60GHz
stepping : 7
microcode : 0x28
cpu MHz : 1968.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 2
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm
constant_tsc arch_perfmon pebs bts nopl xtopology nonstop_tsc aperfmperf
eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm
pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida
arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid
bogomips : 3192.91
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core(TM) i5-2467M CPU @ 1.60GHz
stepping : 7
microcode : 0x28
cpu MHz : 1696.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 2
apicid : 3
initial apicid : 3
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm
constant_tsc arch_perfmon pebs bts nopl xtopology nonstop_tsc aperfmperf
eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm
pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida
arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid
bogomips : 3192.91
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
mount: wrong fs type, bad option, bad superblock on /dev/loop1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
FATAL: can't mount block device /dev/loop1.
mke2fs 1.42 (29-Nov-2011)
mkfs.ext4: Device size reported to be zero. Invalid partition specified, or
partition table wasn't reread after running fdisk, due to
a modified partition being busy and in use. You may need to reboot
to re-read your partition table.
102400+0 records in
102400+0 records out
102400000 bytes (102 MB) copied, 0.542412 s, 189 MB/s
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list