Portal Home > Knowledgebase > Articles Database > SolusVM Server
SolusVM Server
Posted by ServerXY, 02-07-2015, 10:50 AM |
Hello,
I have one server dedicated where i have installed solusvm master, and made there 4 virtual machines it is openvz server..
I am facing some issues like my boot partition is full about 91% full..
I know i can clear space if i will remove old kernels, but i dont know how to do it...
Thats my partitions information:
Filesystem Size Used Avail Use% Mounted on
/dev/md2 29G 1.9G 26G 7% /
tmpfs 7.8G 0 7.8G 0% /dev/shm
/dev/md0 97M 84M 8.4M 91% /boot
/dev/md3 884G 350G 490G 42% /vz
Thats name uname -a output:
Linux localhost.localdomain 2.6.32-042stab085.20 #1 SMP Fri Mar 21 19:07:05 MSK 2014 x86_64 x86_64 x86_64 GNU/Linux
Thats my boot partition files:
config-2.6.32-042stab084.26
config-2.6.32-042stab085.20
config-2.6.32-042stab093.4
config-2.6.32-279.el6.x86_64
config-2.6.32-431.23.3.el6.x86_64
efi
grub
initramfs-2.6.32-042stab085.20.img
initramfs-2.6.32-042stab093.4.img
initramfs-2.6.32-431.23.3.el6.x86_64.img
initrd-2.6.32-042stab085.20kdump.img
initrd-2.6.32-431.23.3.el6.x86_64kdump.img
lost+found
symvers-2.6.32-042stab084.26.gz
symvers-2.6.32-042stab085.20.gz
symvers-2.6.32-042stab093.4.gz
symvers-2.6.32-279.el6.x86_64.gz
symvers-2.6.32-431.23.3.el6.x86_64.gz
System.map-2.6.32-042stab085.20
System.map-2.6.32-042stab093.4
System.map-2.6.32-431.23.3.el6.x86_64
vmlinuz-2.6.32-042stab085.20
vmlinuz-2.6.32-042stab093.4
vmlinuz-2.6.32-431.23.3.el6.x86_64
I have another issue is when i last time updated through yum update it updated kernel when i rebooted it did not boot all vms so someone made setting to load old kernel when reboot then again it worked please tell me what could be the issue?
If i will again update now what i must do to run it safely and if anything goes wrong what i must do to again run old kernel?
|
Posted by 24x7group, 02-07-2015, 11:07 AM |
It's possible the kernel could not install properly due to the amount of disk space that was free and that refused it to boot.
Have you tried to ask your host to help you with this matter? It's not that hard.
|
Posted by ServerXY, 02-07-2015, 11:17 AM |
Hello,
Actually last time someone made free space on boot partition before update then it was successfully installed and booted but it was not booting vms. About host provider i have unmanaged server so we manage easily everything just this type of some issues we have to resolve smoothly..
|
Posted by HostingBig, 02-07-2015, 12:37 PM |
yum remove
and your done
|
Posted by net, 02-07-2015, 12:41 PM |
Moved > Hosting Security and Technology.
|
Posted by Johnny Cache, 02-07-2015, 02:01 PM |
It's hard to say what you'll have to do if the kernel update fails again. I work on/analyze/assist with one or two of these e week. Every now and then you'll have one temperamental kernel that you'll end up beating into submission. It's not as uncommon as you would think.
What you should not do is wipe out all of your kernels from the boot loader, or you're in for a heck of a bad day.
Keep 2-6-32.042stab093.4. The rest of 'em can go, especially since they're all open to some pretty nasty privilege escalations. Then go out and update to 2.6.32.042stab103.6 (possibly 104 sometime this weekend, I'll have to ask OpenVZ). Do not install vzkernel-firmware if your node runs RHEL/CentOS. It was meant for nodes running Debian and/or "non-standard" systems.
If you run into another kernel panic, come back and talk to us and we'll get you through it. If you're not making backups of your containers yet, I absolutely suggest that you start doing so. Hope your next update is smooth.
JE
|
Posted by hostinit, 02-07-2015, 03:11 PM |
1. You can remove the old kernels of CentOS/Redhat/Fedora servers by following the methods below
First, make sure yum-utils is installed:
yum install yum-utils
Next, check the kernels that you have installed:
rpm -q kernel
kernel-2.6.32-279.el6.x86_64
kernel-2.6.32-279.2.1.el6.x86_64
kernel-2.6.32-279.5.2.el6.x86_64
kernel-2.6.32-279.9.1.el6.x86_64
And finally to keep only three latest kernels, run:
package-cleanup --oldkernels --count=3
It will clear your /boot partition.
2. I guess, last time when you updated the packages, it installed normal centos kernel and server booted in it. That might be the reason for vps boot failure.
|
Posted by fabin, 02-07-2015, 09:56 PM |
In the file /etc/yum.conf, there is a line "installonly_limit=x" where x is the number of kernels to keep. That many kernels will be kept and others will be removed automatically by yum.
|
Posted by ServerXY, 02-08-2015, 08:26 AM |
Hello, you mentioned i updated the packages it installed normal centos, i just used command yum update.. So i am using centos for solusvm how i should update it?
|
Posted by ServerXY, 02-08-2015, 08:30 AM |
root@localhost ~]# rpm -q kernel
kernel-2.6.32-279.el6.x86_64
kernel-2.6.32-431.23.3.el6.x86_64
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.32-042stab085.20 #1 SMP Fri Mar 21 19:07:05 MSK 2014 x86_64 x86_64 x86_64 GNU/Linux
Now tell me what to remove.
|
Posted by Srv24x7, 02-08-2015, 10:40 AM |
Hi,
I would suggest you analyze the grub.conf file first and check how many kernels are lined up. Make sure you are having the old OpenvZ kernel, just in case you needed it.
1. Install yum-utils via "yum install yum-utils"
2. Check the kernels "rpm -q kernel" also check the grub.conf.
3. Remove the old kernels package-cleanup --oldkernels --count=3
(here, count=3 means old kernels will be left as it is and ones older than them will be removed.)
Again, it is advised to have grub checked before you proceed.
|
Posted by ServerXY, 02-08-2015, 12:04 PM |
Grub output is:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/md2
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=2
timeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-431.23.3.el6.x86_64)
root (hd0,2)
kernel /vmlinuz-2.6.32-431.23.3.el6.x86_64 ro root=UUID=3dfc227a-42e6-4e b4-b739-77579d758c1d rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_MD_UUID=356e73da :3bbd71d6:7e5bd961:7c78766b rd_MD_UUID=4f1f5f7b:f606d1d3:8ba6b213:15de1054 SYSFO NT=latarcyrheb-sun16 crashkernel=auto rd_NO_LVM rd_NO_DM LANG=en_US.UTF-8 rhgb q uiet
initrd /initramfs-2.6.32-431.23.3.el6.x86_64.img
title OpenVZ (2.6.32-042stab093.4)
root (hd0,2)
kernel /vmlinuz-2.6.32-042stab093.4 ro root=UUID=3dfc227a-42e6-4eb4-b739 -77579d758c1d rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_MD_UUID=356e73da:3bbd71 d6:7e5bd961:7c78766b rd_MD_UUID=4f1f5f7b:f606d1d3:8ba6b213:15de1054 SYSFONT=lata rcyrheb-sun16 crashkernel=auto rd_NO_LVM rd_NO_DM LANG=en_US.UTF-8 rhgb quiet
initrd /initramfs-2.6.32-042stab093.4.img
title OpenVZ (2.6.32-042stab085.20)
root (hd0,2)
kernel /vmlinuz-2.6.32-042stab085.20 ro root=UUID=3dfc227a-42e6-4eb4-b73 9-77579d758c1d rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_MD_UUID=356e73da:3bbd7 1d6:7e5bd961:7c78766b rd_MD_UUID=4f1f5f7b:f606d1d3:8ba6b213:15de1054 SYSFONT=lat arcyrheb-sun16 crashkernel=auto rd_NO_LVM rd_NO_DM LANG=en_US.UTF-8 rhgb quiet
initrd /initramfs-2.6.32-042stab085.20.img
title OpenVZ (2.6.32-042stab084.26)
root (hd0,2)
kernel /vmlinuz-2.6.32-042stab084.26 ro root=UUID=3dfc227a-42e6-4eb4-b73 9-77579d758c1d rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_MD_UUID=356e73da:3bbd7 1d6:7e5bd961:7c78766b rd_MD_UUID=4f1f5f7b:f606d1d3:8ba6b213:15de1054 SYSFONT=lat arcyrheb-sun16 crashkernel=auto rd_NO_LVM rd_NO_DM LANG=en_US.UTF-8 rhgb quiet
initrd /initramfs-2.6.32-042stab084.26.img
title CentOS (2.6.32-279.el6.x86_64)
root (hd0,2)
kernel /vmlinuz-2.6.32-279.el6.x86_64 ro root=UUID=3dfc227a-42e6-4eb4-b7 39-77579d758c1d rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_MD_UUID=356e73da:3bbd 71d6:7e5bd961:7c78766b rd_MD_UUID=4f1f5f7b:f606d1d3:8ba6b213:15de1054 SYSFONT=la tarcyrheb-sun16 crashkernel=auto rd_NO_LVM rd_NO_DM LANG=en_US.UTF-8 rhgb quiet
initrd /initramfs-2.6.32-279.el6.x86_64.img
|
Add to Favourites Print this Article
Also Read
reselling (Views: 765)