[Bug 1313784] Re: File descriptors leaked on lvs invocation
Scott McCarthy
scottmccarthy66 at gmail.com
Fri Feb 27 05:59:14 UTC 2015
Has there been progress on this? I was repairing my LVM and installing
postfix when this occurred. Below is the CLI from the time I started
the install with apt-get to final postfix updatings.
Also, just prior to this I had reduced my swap lvm size to 8MB. I've
included that process as well, at the bottom; below ***, just in case.
root at Jupiter:~# apt-get install lvm2 dmsetup mdadm reiserfsprogs xfsprogs
Reading package lists... Done
Building dependency tree
Reading state information... Done
dmsetup is already the newest version.
lvm2 is already the newest version.
reiserfsprogs is already the newest version.
xfsprogs is already the newest version.
The following package was automatically installed and is no longer required:
python-roman
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
postfix
Suggested packages:
procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin dovecot-common postfix-cdb postfix-doc
Recommended packages:
default-mta mail-transport-agent
The following NEW packages will be installed:
mdadm postfix
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,500 kB of archives.
After this operation, 4,936 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://us.archive.ubuntu.com/ubuntu/ utopic/main mdadm amd64 3.3-2ubuntu1 [394 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ utopic-updates/main postfix amd64 2.11.1-1ubuntu1 [1,107 kB]
Fetched 1,500 kB in 5min 17s (4,726 B/s)
Preconfiguring packages ...
Selecting previously unselected package mdadm.
(Reading database ... 369614 files and directories currently installed.)
Preparing to unpack .../mdadm_3.3-2ubuntu1_amd64.deb ...
Unpacking mdadm (3.3-2ubuntu1) ...
Selecting previously unselected package postfix.
Preparing to unpack .../postfix_2.11.1-1ubuntu1_amd64.deb ...
Unpacking postfix (2.11.1-1ubuntu1) ...
Processing triggers for man-db (2.7.0.2-2) ...
Processing triggers for doc-base (0.10.6) ...
Processing 4 added doc-base files...
Registering documents with scrollkeeper...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Processing triggers for ufw (0.34~rc-0ubuntu4) ...
Setting up mdadm (3.3-2ubuntu1) ...
Generating mdadm.conf... done.
update-initramfs: deferring update (trigger activated)
Generating grub configuration file ...
File descriptor 3 (pipe:[1702559]) leaked on vgs invocation. Parent PID 11460: /usr/sbin/grub-probe
File descriptor 185 (/dev/pts/8) leaked on vgs invocation. Parent PID 11460: /usr/sbin/grub-probe
File descriptor 3 (pipe:[1702559]) leaked on vgs invocation. Parent PID 11460: /usr/sbin/grub-probe
File descriptor 185 (/dev/pts/8) leaked on vgs invocation. Parent PID 11460: /usr/sbin/grub-probe
File descriptor 3 (pipe:[1702559]) leaked on vgs invocation. Parent PID 11470: /usr/sbin/grub-probe
File descriptor 185 (/dev/pts/8) leaked on vgs invocation. Parent PID 11470: /usr/sbin/grub-probe
File descriptor 3 (pipe:[1702559]) leaked on vgs invocation. Parent PID 11470: /usr/sbin/grub-probe
File descriptor 185 (/dev/pts/8) leaked on vgs invocation. Parent PID 11470: /usr/sbin/grub-probe
File descriptor 3 (pipe:[1702559]) leaked on vgs invocation. Parent PID 11480: /usr/sbin/grub-probe
File descriptor 185 (/dev/pts/8) leaked on vgs invocation. Parent PID 11480: /usr/sbin/grub-probe
File descriptor 3 (pipe:[1702559]) leaked on vgs invocation. Parent PID 11480: /usr/sbin/grub-probe
File descriptor 185 (/dev/pts/8) leaked on vgs invocation. Parent PID 11480: /usr/sbin/grub-probe
File descriptor 3 (pipe:[1702559]) leaked on vgs invocation. Parent PID 11490: /usr/sbin/grub-probe
File descriptor 185 (/dev/pts/8) leaked on vgs invocation. Parent PID 11490: /usr/sbin/grub-probe
File descriptor 3 (pipe:[1702559]) leaked on vgs invocation. Parent PID 11490: /usr/sbin/grub-probe
File descriptor 185 (/dev/pts/8) leaked on vgs invocation. Parent PID 11490: /usr/sbin/grub-probe
File descriptor 3 (pipe:[1702559]) leaked on vgs invocation. Parent PID 11542: /usr/sbin/grub-probe
File descriptor 185 (/dev/pts/8) leaked on vgs invocation. Parent PID 11542: /usr/sbin/grub-probe
File descriptor 3 (pipe:[1702559]) leaked on vgs invocation. Parent PID 11542: /usr/sbin/grub-probe
File descriptor 185 (/dev/pts/8) leaked on vgs invocation. Parent PID 11542: /usr/sbin/grub-probe
Found linux image: /boot/vmlinuz-3.16.0-31-generic
Found initrd image: /boot/initrd.img-3.16.0-31-generic
File descriptor 3 (pipe:[1702559]) leaked on vgs invocation. Parent PID 11756: /usr/sbin/grub-probe
File descriptor 185 (/dev/pts/8) leaked on vgs invocation. Parent PID 11756: /usr/sbin/grub-probe
File descriptor 3 (pipe:[1702559]) leaked on vgs invocation. Parent PID 11756: /usr/sbin/grub-probe
File descriptor 185 (/dev/pts/8) leaked on vgs invocation. Parent PID 11756: /usr/sbin/grub-probe
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
File descriptor 3 (pipe:[1702559]) leaked on lvs invocation. Parent PID 11927: /bin/sh
File descriptor 185 (/dev/pts/8) leaked on lvs invocation. Parent PID 11927: /bin/sh
done
* Starting MD monitoring service mdadm --monitor [ OK ]
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up postfix (2.11.1-1ubuntu1) ...
Adding group `postfix' (GID 134) ...
Done.
Adding system user `postfix' (UID 125) ...
Adding new user `postfix' (UID 125) with group `postfix' ...
Not creating home directory `/var/spool/postfix'.
Creating /etc/postfix/dynamicmaps.cf
Adding tcp map entry to /etc/postfix/dynamicmaps.cf
Adding sqlite map entry to /etc/postfix/dynamicmaps.cf
Adding group `postdrop' (GID 135) ...
Done.
setting myhostname: Jupiter
setting alias maps
setting alias database
mailname is not a fully qualified domain name. Not changing /etc/mailname.
setting destinations: Jupiter, localhost.localdomain, localhost
setting relayhost: smtp.gmail.com
setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: loopback-only
setting inet_protocols: all
/etc/aliases does not exist, creating it.
WARNING: /etc/aliases exists, but does not have a root alias.
Postfix is now set up with a default configuration. If you need to make
changes, edit
/etc/postfix/main.cf (and others) as needed. To view Postfix configuration
values, see postconf(1).
After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.
Running newaliases
* Stopping Postfix Mail Transport Agent postfix [ OK ]
* Starting Postfix Mail Transport Agent postfix [ OK ]
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for initramfs-tools (0.103ubuntu8) ...
update-initramfs: Generating /boot/initrd.img-3.16.0-31-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Processing triggers for ufw (0.34~rc-0ubuntu4) ...
Processing triggers for libc-bin (2.19-10ubuntu2.2) ...
root at Jupiter:~# /proc/<pid>/fd/*
-bash: pid: No such file or directory
root at Jupiter:~# /proc/11460/fd/*
-bash: /proc/11460/fd/*: No such file or directory
***********************************************
root at Jupiter:~# swapoff --verbose /dev/ubuntu-gnome-vg/swap_1
swapoff /dev/ubuntu-gnome-vg/swap_1
root at Jupiter:~# lvreduce /dev/ubuntu-gnome-vg/swap_1 -L 8MB
WARNING: Reducing active logical volume to 8.00 MiB
THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce swap_1? [y/n]: y
Reducing logical volume swap_1 to 8.00 MiB
Logical volume swap_1 successfully resized
root at Jupiter:~# mkswap /dev/ubuntu-gnome-vg/swap_1
mkswap: /dev/ubuntu-gnome-vg/swap_1: warning: wiping old swap signature.
Setting up swapspace version 1, size = 8188 KiB
no label, UUID=6ff48e22-63ec-42ab-9673-94ac1f84e3a9
root at Jupiter:~# swapon -va
swapon /dev/mapper/ubuntu--gnome--vg-swap_1
swapon: /dev/mapper/ubuntu--gnome--vg-swap_1: found swap signature: version 1d, page-size 4, same byte order
swapon: /dev/mapper/ubuntu--gnome--vg-swap_1: pagesize=4096, swapsize=8388608, devsize=8388608
root at Jupiter:~# cat /proc/swaps # free
Filename Type Size Used Priority
/dev/dm-1 partition 8188 0 -1
root at Jupiter:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
└─sda5 8:5 0 465.8G 0 part /mnt/500
sdb 8:16 0 119.2G 0 disk
├─sdb1 8:17 0 243M 0 part /boot
└─sdb5 8:21 0 119G 0 part
├─ubuntu--gnome--vg-root 252:0 0 103G 0 lvm /
└─ubuntu--gnome--vg-swap_1 252:1 0 8M 0 lvm [SWAP]
sr0 11:0 1 998.3M 0 rom /media/scott/Ubuntu-GNOME 14.10 amd64
root at Jupiter:~# fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2510fb04
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 976769023 976766976 465.8G f W95 Ext'd (LBA)
/dev/sda5 4096 976769023 976764928 465.8G 8e Linux LVM
Disk /dev/sdb: 119.2 GiB, 128035676160 bytes, 250069680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x01f4bd79
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 499711 497664 243M 83 Linux
/dev/sdb2 501758 250068991 249567234 119G 5 Extended
/dev/sdb5 501760 250068991 249567232 119G 8e Linux LVM
Disk /dev/mapper/ubuntu--gnome--vg-root: 103 GiB, 110628962304 bytes, 216072192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/ubuntu--gnome--vg-swap_1: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Cheers,
Scott
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub-installer in Ubuntu.
https://bugs.launchpad.net/bugs/1313784
Title:
File descriptors leaked on lvs invocation
Status in grub-installer package in Ubuntu:
Confirmed
Bug description:
While upgrading to Kubuntu 14.04 yesterday, I got the following error
messages over and over again:
Generating grub configuration file ...^M
File descriptor 3 (pipe:[4852522]) leaked on vgs invocation. Parent PID 6438: grub-probe^M
File descriptor 59 (/var/log/dist-upgrade/apt.log) leaked on vgs invocation. Parent PID 6438: grub-probe^M
The file descriptors appeared random, and the "Parent PID" was either /bin/sh, grub-install, grub-probe or /usr/sbin/grub-probe:
grep leaked ./dist-upgrade/apt-term.log |sed 's/.*Parent PID [0-9]*: //' | sort | uniq -c
53 /bin/sh
72 grub-install
106 grub-probe
1484 /usr/sbin/grub-probe
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub-installer/+bug/1313784/+subscriptions
More information about the foundations-bugs
mailing list