OpenVZ Forum


Home » General » Support » Issue after converting to 042 kernel and ext4
Issue after converting to 042 kernel and ext4 [message #52271] Wed, 02 December 2015 00:12 Go to next message
Darthkatzs is currently offline  Darthkatzs
Messages: 1
Registered: December 2015
Junior Member
After a lot of hassle moving my 028 kernel to a 042 kernel and the ext3 /vz to ext4 I've hit a brick wall. All the current containers work fine, but when i reinstall or create a new one it gives this error on startup:


2015-12-02T01:05:08+0100 vzctl : CT 214 : Error setting device permissions: Cannot allocate memory
2015-12-02T01:05:08+0100 vzctl : CT 214 : Container start failed (try to check kernel messages, e.g. "dmesg | tail")


When checking dmesg I see this:

Dec  2 01:05:08 vps kernel: [ 1457.850384] WARNING: at fs/sysfs/dir.c:528 sysfs_add_one+0xb8/0xd0() (Tainted: G        W  -- ------------   )
Dec  2 01:05:08 vps kernel: [ 1457.850637] Hardware name: X8STi
Dec  2 01:05:08 vps kernel: [ 1457.850761] sysfs: cannot create duplicate filename '/block'
Dec  2 01:05:08 vps kernel: [ 1457.850896] Modules linked in: sch_cbq vzethdev pio_kaio pio_nfs pio_direct pfmt_raw pfmt_ploop1 ploop simfs vzrst vzcpt nfs fscache auth_rpcgss nfs_acl vziolimit vzdquota ip6t_REJECT ip6table_mangle ip6table_filter ip6_tables ipt_REDIRECT xt_owner nf_nat_ftp nf_conntrack_ftp iptable_nat nf_nat xt_state xt_length xt_hl xt_tcpmss xt_TCPMSS iptable_mangle iptable_filter xt_multiport xt_limit nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 ipt_LOG xt_DSCP xt_dscp ipt_REJECT ip_tables vzevent lockd sunrpc vznetdev vzmon vzdev be2iscsi iscsi_boot_sysfs ib_iser rdma_cm ib_cm iw_cm ib_sa ib_mad ib_core ib_addr iscsi_tcp bnx2i cnic uio cxgb3i libcxgbi ipv6 cxgb3 libiscsi_tcp libiscsi scsi_transport_iscsi ext4 jbd2 dm_multipath video output sbs sbshc acpi_pad ipmi_msghandler parport_pc lp parport snd_seq_dummy snd_pcsp snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss snd_pcm snd_timer tpm_tis iTCO_wdt sg iTCO_vendor_support serio_raw tpm snd i2c_i801 lpc_ich
Dec  2 01:05:08 vps kernel: soundcore i7core_edac snd_page_alloc edac_core tpm_bios mfd_core i2c_core ioatdma shpchp netxen_nic 3w_9xxx qlge ixgbe dca mdio sata_nv forcedeth via686a ahci mptctl mptsas scsi_transport_sas dm_crypt raid456 async_raid6_recov async_pq raid6_pq async_xor async_memcpy async_tx raid0 raid1 dm_mirror sata_via sata_sis pata_sis sym53c8xx aic7xxx 3w_xxxx sky2 r8169 skge e1000e ptp pps_core e1000 via_rhine sis900 8139too e100 mii dm_raid45 dm_memcache xor dm_region_hash dm_log dm_mod mptspi mptscsih scsi_transport_spi mptbase pata_acpi ata_piix ata_generic sd_mod crc_t10dif ext3 jbd mbcache
Dec  2 01:05:08 vps kernel: [ 1457.853893] Pid: 50978, comm: vzctl veid: 0 Tainted: G        W  -- ------------    2.6.32-042stab112.15 #1
Dec  2 01:05:08 vps kernel: [ 1457.854146] Call Trace:
Dec  2 01:05:08 vps kernel: [ 1457.854274]  [<ffffffff8107ded1>] ? warn_slowpath_common+0x91/0xe0
Dec  2 01:05:08 vps kernel: [ 1457.854405]  [<ffffffff8107dfd6>] ? warn_slowpath_fmt+0x46/0x60
Dec  2 01:05:08 vps kernel: [ 1457.854535]  [<ffffffff8123deb8>] ? sysfs_add_one+0xb8/0xd0
Dec  2 01:05:08 vps kernel: [ 1457.854665]  [<ffffffff8123df38>] ? create_dir+0x68/0xb0
Dec  2 01:05:08 vps kernel: [ 1457.854796]  [<ffffffff8123dfce>] ? sysfs_create_dir+0x4e/0x80
Dec  2 01:05:08 vps kernel: [ 1457.854929]  [<ffffffff812b0120>] ? kvasprintf+0x70/0x90
Dec  2 01:05:08 vps kernel: [ 1457.855059]  [<ffffffff812a2439>] ? kobject_add_internal+0xb9/0x260
Dec  2 01:05:08 vps kernel: [ 1457.855190]  [<ffffffff812a26e8>] ? kobject_add_varg+0x38/0x60
Dec  2 01:05:08 vps kernel: [ 1457.855319]  [<ffffffff812a27c4>] ? kobject_add+0x44/0x70
Dec  2 01:05:08 vps kernel: [ 1457.855449]  [<ffffffff812a1e16>] ? kobject_init+0x26/0xa0
Dec  2 01:05:08 vps kernel: [ 1457.855578]  [<ffffffff812a282e>] ? kobject_create_and_add+0x3e/0x80
Dec  2 01:05:08 vps kernel: [ 1457.855710]  [<ffffffff8138971b>] ? ve_device_add+0x44b/0x4b0
Dec  2 01:05:08 vps kernel: [ 1457.855842]  [<ffffffff81389831>] ? ve_devt_add+0xb1/0x1a0
Dec  2 01:05:08 vps kernel: [ 1457.855974]  [<ffffffffa071b45b>] ? vzcalls_ioctl+0x3eb/0xab0 [vzmon]
Dec  2 01:05:08 vps kernel: [ 1457.856106]  [<ffffffff811c6b26>] ? final_putname+0x26/0x50
Dec  2 01:05:08 vps kernel: [ 1457.856236]  [<ffffffff811c759b>] ? putname+0x2b/0x40
Dec  2 01:05:08 vps kernel: [ 1457.856365]  [<ffffffff811cb654>] ? user_path_at+0x64/0xa0
Dec  2 01:05:08 vps kernel: [ 1457.856495]  [<ffffffffa012d070>] ? vzctl_get_handler+0x20/0x100 [vzdev]
Dec  2 01:05:08 vps kernel: [ 1457.856627]  [<ffffffffa012d277>] ? vzctl_ioctl+0x57/0x7c [vzdev]
Dec  2 01:05:08 vps kernel: [ 1457.856758]  [<ffffffff811ce5d2>] ? vfs_ioctl+0x22/0xa0
Dec  2 01:05:08 vps kernel: [ 1457.856888]  [<ffffffff811ce774>] ? do_vfs_ioctl+0x84/0x5b0
Dec  2 01:05:08 vps kernel: [ 1457.857019]  [<ffffffff811cecef>] ? sys_ioctl+0x4f/0x80
Dec  2 01:05:08 vps kernel: [ 1457.857148]  [<ffffffff8110056e>] ? __audit_syscall_exit+0x25e/0x290
Dec  2 01:05:08 vps kernel: [ 1457.857279]  [<ffffffff8100b1a2>] ? system_call_fastpath+0x16/0x1b
Dec  2 01:05:08 vps kernel: [ 1457.857409] ---[ end trace c7e3e7daf88cd3cc ]---
Dec  2 01:05:08 vps kernel: [ 1457.857536] Tainting kernel with flag 0x9
Dec  2 01:05:08 vps kernel: [ 1457.857663] Pid: 50978, comm: vzctl veid: 0 Tainted: G        W  -- ------------    2.6.32-042stab112.15 #1
Dec  2 01:05:08 vps kernel: [ 1457.857918] Call Trace:
Dec  2 01:05:08 vps kernel: [ 1457.858042]  [<ffffffff8107dd31>] ? add_taint+0x71/0x80
Dec  2 01:05:08 vps kernel: [ 1457.858171]  [<ffffffff8107dede>] ? warn_slowpath_common+0x9e/0xe0
Dec  2 01:05:08 vps kernel: [ 1457.858302]  [<ffffffff8107dfd6>] ? warn_slowpath_fmt+0x46/0x60
Dec  2 01:05:08 vps kernel: [ 1457.858432]  [<ffffffff8123deb8>] ? sysfs_add_one+0xb8/0xd0
Dec  2 01:05:08 vps kernel: [ 1457.858562]  [<ffffffff8123df38>] ? create_dir+0x68/0xb0
Dec  2 01:05:08 vps kernel: [ 1457.858690]  [<ffffffff8123dfce>] ? sysfs_create_dir+0x4e/0x80
Dec  2 01:05:08 vps kernel: [ 1457.858821]  [<ffffffff812b0120>] ? kvasprintf+0x70/0x90
Dec  2 01:05:08 vps kernel: [ 1457.858950]  [<ffffffff812a2439>] ? kobject_add_internal+0xb9/0x260
Dec  2 01:05:08 vps kernel: [ 1457.859081]  [<ffffffff812a26e8>] ? kobject_add_varg+0x38/0x60
Dec  2 01:05:08 vps kernel: [ 1457.859211]  [<ffffffff812a27c4>] ? kobject_add+0x44/0x70
Dec  2 01:05:09 vps kernel: [ 1457.859341]  [<ffffffff812a1e16>] ? kobject_init+0x26/0xa0
Dec  2 01:05:09 vps kernel: [ 1457.859471]  [<ffffffff812a282e>] ? kobject_create_and_add+0x3e/0x80
Dec  2 01:05:09 vps kernel: [ 1457.859602]  [<ffffffff8138971b>] ? ve_device_add+0x44b/0x4b0
Dec  2 01:05:09 vps kernel: [ 1457.859732]  [<ffffffff81389831>] ? ve_devt_add+0xb1/0x1a0
Dec  2 01:05:09 vps kernel: [ 1457.859863]  [<ffffffffa071b45b>] ? vzcalls_ioctl+0x3eb/0xab0 [vzmon]
Dec  2 01:05:09 vps kernel: [ 1457.859996]  [<ffffffff811c6b26>] ? final_putname+0x26/0x50
Dec  2 01:05:09 vps kernel: [ 1457.860125]  [<ffffffff811c759b>] ? putname+0x2b/0x40
Dec  2 01:05:09 vps kernel: [ 1457.860254]  [<ffffffff811cb654>] ? user_path_at+0x64/0xa0
Dec  2 01:05:09 vps kernel: [ 1457.860385]  [<ffffffffa012d070>] ? vzctl_get_handler+0x20/0x100 [vzdev]
Dec  2 01:05:09 vps kernel: [ 1457.860517]  [<ffffffffa012d277>] ? vzctl_ioctl+0x57/0x7c [vzdev]
Dec  2 01:05:09 vps kernel: [ 1457.860647]  [<ffffffff811ce5d2>] ? vfs_ioctl+0x22/0xa0
Dec  2 01:05:09 vps kernel: [ 1457.860778]  [<ffffffff811ce774>] ? do_vfs_ioctl+0x84/0x5b0
Dec  2 01:05:09 vps kernel: [ 1457.860907]  [<ffffffff811cecef>] ? sys_ioctl+0x4f/0x80
Dec  2 01:05:09 vps kernel: [ 1457.861037]  [<ffffffff8110056e>] ? __audit_syscall_exit+0x25e/0x290
Dec  2 01:05:09 vps kernel: [ 1457.861168]  [<ffffffff8100b1a2>] ? system_call_fastpath+0x16/0x1b
Dec  2 01:05:09 vps kernel: [ 1457.861301] kobject_add_internal failed for block with -EEXIST, don't try to register things with the same name in the same directory.
Dec  2 01:05:09 vps kernel: [ 1457.861557] Pid: 50978, comm: vzctl veid: 0 Tainted: G        W  -- ------------    2.6.32-042stab112.15 #1
Dec  2 01:05:09 vps kernel: [ 1457.861808] Call Trace:
Dec  2 01:05:09 vps kernel: [ 1457.861930]  [<ffffffff812a24dd>] ? kobject_add_internal+0x15d/0x260
Dec  2 01:05:09 vps kernel: [ 1457.862059]  [<ffffffff812a26e8>] ? kobject_add_varg+0x38/0x60
Dec  2 01:05:09 vps kernel: [ 1457.862187]  [<ffffffff812a27c4>] ? kobject_add+0x44/0x70
Dec  2 01:05:09 vps kernel: [ 1457.862315]  [<ffffffff812a1e16>] ? kobject_init+0x26/0xa0
Dec  2 01:05:09 vps kernel: [ 1457.862442]  [<ffffffff812a282e>] ? kobject_create_and_add+0x3e/0x80
Dec  2 01:05:09 vps kernel: [ 1457.862572]  [<ffffffff8138971b>] ? ve_device_add+0x44b/0x4b0
Dec  2 01:05:09 vps kernel: [ 1457.862700]  [<ffffffff81389831>] ? ve_devt_add+0xb1/0x1a0
Dec  2 01:05:10 vps kernel: [ 1457.862830]  [<ffffffffa071b45b>] ? vzcalls_ioctl+0x3eb/0xab0 [vzmon]
Dec  2 01:05:10 vps kernel: [ 1457.862961]  [<ffffffff811c6b26>] ? final_putname+0x26/0x50
Dec  2 01:05:10 vps kernel: [ 1457.863089]  [<ffffffff811c759b>] ? putname+0x2b/0x40
Dec  2 01:05:10 vps kernel: [ 1457.863218]  [<ffffffff811cb654>] ? user_path_at+0x64/0xa0
Dec  2 01:05:10 vps kernel: [ 1457.863348]  [<ffffffffa012d070>] ? vzctl_get_handler+0x20/0x100 [vzdev]
Dec  2 01:05:10 vps kernel: [ 1457.863481]  [<ffffffffa012d277>] ? vzctl_ioctl+0x57/0x7c [vzdev]
Dec  2 01:05:10 vps kernel: [ 1457.863611]  [<ffffffff811ce5d2>] ? vfs_ioctl+0x22/0xa0
Dec  2 01:05:10 vps kernel: [ 1457.863740]  [<ffffffff811ce774>] ? do_vfs_ioctl+0x84/0x5b0
Dec  2 01:05:10 vps kernel: [ 1457.863871]  [<ffffffff811cecef>] ? sys_ioctl+0x4f/0x80
Dec  2 01:05:10 vps kernel: [ 1457.864001]  [<ffffffff8110056e>] ? __audit_syscall_exit+0x25e/0x290
Dec  2 01:05:10 vps kernel: [ 1457.864132]  [<ffffffff8100b1a2>] ? system_call_fastpath+0x16/0x1b
Dec  2 01:05:10 vps kernel: [ 1457.864263] kobject_create_and_add: kobject_add error: -17


I've tried my share of searching but cannot seem to find any references.
Re: Issue after converting to 042 kernel and ext4 [message #52277 is a reply to message #52271] Tue, 08 December 2015 19:51 Go to previous message
mustardman is currently offline  mustardman
Messages: 91
Registered: October 2009
Member
Maybe a permissions problem.

Check that /vz/private and /vz/root folders have permission 0700 and are owned by user/group root.

Are you using Vzswap or the old beancounters memory management? Maybe something to do with that. Check what the new container config file looks like in /etc/vz/conf/xxx.conf. Compare it to existing functioning containers. Check whether it's ORIGIN_SAMPLE= is using vswap or the old style templates.

Also check the settings in /etc/vz/vz.conf. I think several of those settings have changed from the older version you were using.

Maybe try turn up the verbose/log level in /etc/vz/vz.conf and see what gets generated in /var/log/vzctl.log

Maybe you need to change the command you are using to create the container?
https://openvz.org/Man/vzctl.8

Maybe try set an existing container to use the new vswap way if you aren't already doing that.
vzctl set 777 --ram 512M --swap 512M --save

A lot of maybes for me.

[Updated on: Tue, 08 December 2015 20:05]

Report message to a moderator

Previous Topic: Fedora 23 Template
Next Topic: VZQuota in CentOS 7 Container
Goto Forum:
  


Current Time: Sun Nov 03 21:50:18 GMT 2024

Total time taken to generate the page: 0.03726 seconds