Hi, Daniel. El jueves 17 de septiembre del 2015 a las 18:59:11 -0300, Daniel Bareiro escribió:
> A few minutes ago I tried to make a container to do some tests with > Nagios and I had this problem again, but now with ext4: > > sirius:~# MIRROR=http://ftp.us.debian.org/debian lxc-create -n nagios-disk -t > debian -B lvm \ > > --vgname vms --lvname nagios-disk --fssize 8G --fstype ext4 > File descriptor 3 (/var/lib/lxc/nagios-disk/partial) leaked on lvcreate > invocation. Parent PID 13961: lxc-create > Logical volume "nagios-disk" created > lxc_container: failed to determine fs type for '/dev/vms/nagios-disk' > lxc_container: Error mounting rootfs > lxc_container: container creation template for nagios-disk failed > File descriptor 3 (/run/lxc/lock/var/lib/lxc/nagios-disk) leaked on lvremove > invocation. Parent PID 13960: lxc-create > Logical volume "nagios-disk" successfully removed > lxc_container: Error creating container nagios-disk > > But the error seems to be different from that mentioned in the > original message. I did a test on Stretch and there are no problems with the creation of a container with ext4 in LVM: ----------------------------------------------------------------------- root@stretch:~# MIRROR=http://ftp.us.debian.org/debian lxc-create -n nagios-disk -t debian -B lvm --vgname storage --lvname nagios-disk --fssize 2G --fstype ext4 File descriptor 3 (/var/lib/lxc/nagios-disk/partial) leaked on lvcreate invocation. Parent PID 811: lxc-create Logical volume "nagios-disk" created debootstrap is /usr/sbin/debootstrap Checking cache download in /var/cache/lxc/debian/rootfs-jessie-amd64 ... Copying rootfs to /usr/lib/x86_64-linux-gnu/lxc/rootfs...Generating locales (this might take a while)... es_AR.UTF-8... done Generation complete. insserv: warning: current start runlevel(s) (empty) of script `checkroot.sh' overrides LSB defaults (S). insserv: warning: current stop runlevel(s) (S) of script `checkroot.sh' overrides LSB defaults (empty). insserv: warning: current start runlevel(s) (empty) of script `checkroot.sh' overrides LSB defaults (S). update-rc.d: error: umountfs Default-Start contains no runlevels, aborting. insserv: warning: current start runlevel(s) (empty) of script `hwclock.sh' overrides LSB defaults (S). insserv: warning: current stop runlevel(s) (0 6 S) of script `hwclock.sh' overrides LSB defaults (0 6). update-rc.d: error: cannot find a LSB script for hwclockfirst.sh Creating SSH2 RSA key; this may take some time ... 2048 7f:b7:d4:e5:a8:e1:ef:84:9f:68:16:9b:54:c3:d5:9a /etc/ssh/ssh_host_rsa_key.pub (RSA) Creating SSH2 DSA key; this may take some time ... 1024 5f:fe:72:b0:d7:4c:b8:31:80:c1:72:a5:c8:5b:ae:08 /etc/ssh/ssh_host_dsa_key.pub (DSA) Creating SSH2 ECDSA key; this may take some time ... 256 52:83:78:0a:78:90:0e:e3:71:3b:9e:d8:0a:8f:6b:39 /etc/ssh/ssh_host_ecdsa_key.pub (ECDSA) Creating SSH2 ED25519 key; this may take some time ... 256 93:8f:25:5a:54:30:3d:99:9b:f8:8d:3d:2a:80:9a:fa /etc/ssh/ssh_host_ed25519_key.pub (ED25519) Failed to read /proc/cmdline. Ignoring: No existe el fichero o el directorio invoke-rc.d: policy-rc.d denied execution of start. Current default time zone: 'America/Argentina/Buenos_Aires' Local time is now: Sat Oct 3 10:11:58 ART 2015. Universal Time is now: Sat Oct 3 13:11:58 UTC 2015. Root password is '05OLxFN1', please change ! ----------------------------------------------------------------------- But I was not able to make it works in Jessie with the same syntax: ----------------------------------------------------------------------- sirius:~# MIRROR=http://ftp.us.debian.org/debian lxc-create -n nagios-disk -t debian -B lvm \ > --vgname vms --lvname nagios-disk --fssize 2G --fstype ext4 File descriptor 3 (/var/lib/lxc/nagios-disk/partial) leaked on lvcreate invocation. Parent PID 27750: lxc-create Logical volume "nagios-disk" created lxc_container: failed to determine fs type for '/dev/vms/nagios-disk' lxc_container: Error mounting rootfs lxc_container: container creation template for nagios-disk failed File descriptor 3 (/run/lxc/lock/var/lib/lxc/nagios-disk) leaked on lvremove invocation. Parent PID 27749: lxc-create Logical volume "nagios-disk" successfully removed lxc_container: Error creating container nagios-disk ----------------------------------------------------------------------- I think now we have a more serious problem because ext4 is not a orphaned filesystem. I would appreciate any feedback about it. Thanks. Best regards, Daniel -- Ing. Daniel Bareiro - GNU/Linux registered user #188.598 Proudly running Debian GNU/Linux with uptime: 10:15:46 up 20 days, 17:29, 14 users, load average: 0,30, 0,39, 0,46
signature.asc
Description: Digital signature