Bug#647039: e2fsprogs: e4defrag does not work with LVM device nodes

2012-07-11 Thread Geoff Chesshire
I wonder if this problem I am seeing is the same one.  I am running Ubuntu  
12.04 with LUKS encryption and ext4 partitions under LVM.  After doing  
resize2fs -M /dev/xxx; resize2fs /dev/xxx (where xxx is an ext4  
partition under LVM), I can get e4defrag consistently to generate a kernel  
panic/restart.  I have attached a kenel traceback, which is preceded by  
the following messages:


Jul 11 07:45:13 blanca kernel: [ 2618.303035] EXT4-fs error (device dm-7):  
ext4_ext_search_left:1224: inode #20569: comm e4defrag: ix (2276) !=  
EXT_FIRST_INDEX (0) (depth 0)!
Jul 11 07:45:13 blanca kernel: [ 2618.303059] EXT4-fs (dm-7): delayed  
block allocation failed for inode 20569 at logical offset 2276 with max  
blocks 1 with error -5
Jul 11 07:45:13 blanca kernel: [ 2618.303069] EXT4-fs (dm-7): This should  
not happen!! Data will be lost


I hope this traceback might be helpful to someone.

Thanks,
GeoffJul 11 07:45:13 blanca kernel: [ 2618.303035] EXT4-fs error (device dm-7): 
ext4_ext_search_left:1224: inode #20569: comm e4defrag: ix (2276) != 
EXT_FIRST_INDEX (0) (depth 0)!
Jul 11 07:45:13 blanca kernel: [ 2618.303059] EXT4-fs (dm-7): delayed block 
allocation failed for inode 20569 at logical offset 2276 with max blocks 1 with 
error -5
Jul 11 07:45:13 blanca kernel: [ 2618.303069] EXT4-fs (dm-7): This should not 
happen!! Data will be lost
Jul 11 07:45:13 blanca kernel: [ 2618.303073] 
Jul 11 07:50:01 blanca CRON[10947]: (root) CMD ([ -x 
/usr/share/awstats/tools/update.sh ]  /usr/share/awstats/tools/update.sh)
Jul 11 07:52:34 blanca kernel: [ 3058.686927] [ cut here 
]
Jul 11 07:52:34 blanca kernel: [ 3058.686999] kernel BUG at 
/build/buildd/linux-3.2.0/fs/buffer.c:2922!
Jul 11 07:52:34 blanca kernel: [ 3058.689204] invalid opcode:  [#1] SMP 
Jul 11 07:52:34 blanca kernel: [ 3058.691433] Modules linked in: xt_TCPMSS 
xt_limit xt_tcpudp nf_nat_irc nf_nat_ftp ipt_LOG ipt_MASQUERADE xt_DSCP 
ipt_REJECT nf_conntrack_irc nf_conntrack_ftp xt_state nls_iso8859_1 nls_cp437 
vfat fat bnep kvm_intel rfcomm kvm bluetooth parport_pc ppdev binfmt_misc nfsd 
nfs lockd fscache auth_rpcgss nfs_acl sunrpc iptable_nat nf_nat 
nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 iptable_mangle iptable_filter 
ip_tables x_tables snd_hda_codec_hdmi snd_hda_codec_idt snd_hda_intel 
snd_hda_codec bcma snd_hwdep arc4 snd_pcm snd_seq_midi ir_lirc_codec lirc_dev 
ir_mce_kbd_decoder ir_sony_decoder snd_rawmidi ir_jvc_decoder 
snd_seq_midi_event snd_seq brcmsmac mac80211 brcmutil uvcvideo videodev 
ir_rc6_decoder snd_timer cfg80211 rc_rc6_mce ir_rc5_decoder snd_seq_device 
ir_nec_decoder snd joydev ene_ir crc8 cordic psmouse hp_wmi hp_accel serio_raw 
sparse_keymap soundcore snd_page_alloc rts_pstor(C) lis3lv02d rc_core intel_ips 
mei(C) input_polldev mac_hid nbd lm75 coretemp lp parport xts gf128
Jul 11 07:52:34 blanca kernel: mul dm_crypt usbhid hid i915 drm_kms_helper 
sdhci_pci sdhci r8169 drm i2c_algo_bit wmi video uas usb_storage
Jul 11 07:52:34 blanca kernel: [ 3058.711821] 
Jul 11 07:52:34 blanca kernel: [ 3058.715134] Pid: 10237, comm: e4defrag 
Tainted: G C   3.2.0-26-generic-pae #41-Ubuntu Hewlett-Packard HP 
Pavilion dv4 Notebook PC/140A
Jul 11 07:52:34 blanca kernel: [ 3058.718723] EIP: 0060:[c116e9bd] EFLAGS: 
00210202 CPU: 0
Jul 11 07:52:34 blanca kernel: [ 3058.722336] EIP is at submit_bh+0xed/0x100
Jul 11 07:52:34 blanca kernel: [ 3058.725937] EAX: 02e4 EBX: e5331c40 ECX: 
c116f900 EDX: e5331c40
Jul 11 07:52:34 blanca kernel: [ 3058.729617] ESI: 0001 EDI:  EBP: 
ec871c64 ESP: ec871c58
Jul 11 07:52:34 blanca kernel: [ 3058.733309]  DS: 007b ES: 007b FS: 00d8 GS: 
00e0 SS: 0068
Jul 11 07:52:34 blanca kernel: [ 3058.737024] Process e4defrag (pid: 10237, 
ti=ec87 task=f74a3280 task.ti=ec87)
Jul 11 07:52:34 blanca kernel: [ 3058.740818] Stack:
Jul 11 07:52:34 blanca kernel: [ 3058.744528]  0001 0001 0001 
ec871cd0 c1170ad8 0003  000d294c
Jul 11 07:52:34 blanca kernel: [ 3058.748332]  c11cf050 0020 db0c1be8 
e5331c40 1460  0001 f4633660
Jul 11 07:52:34 blanca kernel: [ 3058.752148]  1000 2000 1000 
e5331c40 c15a527d f73c654c f73c6548 
Jul 11 07:52:34 blanca kernel: [ 3058.756005] Call Trace:
Jul 11 07:52:34 blanca kernel: [ 3058.759856]  [c1170ad8] 
block_read_full_page+0x208/0x300
Jul 11 07:52:34 blanca kernel: [ 3058.763749]  [c11cf050] ? 
noalloc_get_block_write+0x50/0x50
Jul 11 07:52:34 blanca kernel: [ 3058.767651]  [c15a527d] ? 
_raw_spin_lock+0xd/0x10
Jul 11 07:52:34 blanca kernel: [ 3058.771496]  [c116eb13] ? 
__find_get_block_slow+0x53/0x190
Jul 11 07:52:34 blanca kernel: [ 3058.775365]  [c1179f6c] 
do_mpage_readpage+0x8c/0x6f0
Jul 11 07:52:34 blanca kernel: [ 3058.779330]  [c11cac06] ? 
ext4_da_get_block_prep+0x46/0xa0
Jul 11 07:52:34 blanca kernel: [ 3058.783188]  [c116f626] ? 
unmap_underlying_metadata+0x26/0x60
Jul 11 07:52:34 blanca kernel: [ 3058.787043]  [c1171136] ? 

Bug#647039: e2fsprogs: e4defrag does not work with LVM device nodes

2011-11-10 Thread Ted Ts'o
On Mon, Oct 31, 2011 at 12:16:35AM +0100, Laurent Grawet wrote:
 Then I would like to know whether chattr +e on files and dirs when
 coming from ext3 is enough to trigger online defragmentation in order to
 migrate those files to extent format ?

The chattr +e will migrate older files to use the extent format; it
will, however, not defragment the files.  This matters primarily for
very large files which are tens of megabytes or larger.  And if the
file system's free space wasn't fragmented, the difference will be
marginal even in that case.

And if the file system free space is heavily fragmented (say, if you
were running it at  80-90% full for long periods of time), e4defrag
isn't smart enough to handle this case, so the only real solution to
recover the lost performance is to do a backup, reformat, and restore
operation.

 - Ted



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#647039: e2fsprogs: e4defrag does not work with LVM device nodes

2011-10-30 Thread Laurent Grawet
Hi Ted,

On 29/10/11 19:55, Theodore Tso wrote:
 priority 647039 normal
 thanks
 
 On Oct 29, 2011, at 12:54 PM, Laurent Grawet wrote:
 
 Package: e2fsprogs
 Version: 1.42~WIP-2011-10-16-1
 Severity: important

 Hi,

 e4defrag does not work with LVM device nodes. See RHEL Bug 707209.
 https://bugzilla.redhat.com/show_bug.cgi?id=707209
 
 Note: e4defrag is not fully supported; indeed I was very tempted to 
 completely remove it from the package because I don't consider it completely 
 ready for prime time.
 
 -- Ted
 

Then I would like to know whether chattr +e on files and dirs when
coming from ext3 is enough to trigger online defragmentation in order to
migrate those files to extent format ?

Thanks,

Laurent




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#647039: e2fsprogs: e4defrag does not work with LVM device nodes

2011-10-29 Thread Laurent Grawet
Package: e2fsprogs
Version: 1.42~WIP-2011-10-16-1
Severity: important

Hi,

e4defrag does not work with LVM device nodes. See RHEL Bug 707209.
https://bugzilla.redhat.com/show_bug.cgi?id=707209

Regards,

Laurent


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages e2fsprogs depends on:
ii  e2fslibs1.42~WIP-2011-10-16-1
ii  libblkid1   2.19.1-5 
ii  libc6   2.13-21  
ii  libcomerr2  1.42~WIP-2011-10-16-1
ii  libss2  1.42~WIP-2011-10-16-1
ii  libuuid12.19.1-5 
ii  util-linux  2.19.1-5 

e2fsprogs recommends no packages.

Versions of packages e2fsprogs suggests:
ii  e2fsck-static  none
ii  gpart  0.1h-11+b1
ii  parted 2.3-8 

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#647039: e2fsprogs: e4defrag does not work with LVM device nodes

2011-10-29 Thread Theodore Tso
priority 647039 normal
thanks

On Oct 29, 2011, at 12:54 PM, Laurent Grawet wrote:

 Package: e2fsprogs
 Version: 1.42~WIP-2011-10-16-1
 Severity: important
 
 Hi,
 
 e4defrag does not work with LVM device nodes. See RHEL Bug 707209.
 https://bugzilla.redhat.com/show_bug.cgi?id=707209

Note: e4defrag is not fully supported; indeed I was very tempted to completely 
remove it from the package because I don't consider it completely ready for 
prime time.

-- Ted




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org