Author Topic: BUG when you upgrade the VPS  (Read 15532 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
BUG when you upgrade the VPS
« on: August 23, 2016, 05:09:56 AM »
Hi

I have working a CWP in my VPS.
Today, I have upgraded my VPS and the CWP continue working, but the DISK DETAILS of the partition is wrong.

My virtual DISC ( 10 gb ) was full, 99%. Now I have 20gb and this is the info of the partition in CWP:

Code: [Select]

Fdisk info:
Disk /dev/vda: 21.5 GB, 21474836480 bytes
16 heads, 63 sectors/track, 41610 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000574cf

   Device Boot      Start         End      Blocks   Id  System
/dev/vda1   *           3       20806    10484736   83  Linux

Software RAID:
Personalities :
unused devices:

Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1       9.8G  4.7G  4.7G  50% /
tmpfs           1.9G     0  1.9G   0% /dev/shm

Now, the 50% I think is ok, but the size isn't.
« Last Edit: August 23, 2016, 05:22:56 AM by edur »

Offline
*****
Re: BUG when you upgrade the VPS
« Reply #1 on: August 23, 2016, 09:55:04 AM »
Hello.

You have to make resize partitions manually. You can ask it your service provider or contact to CWP Support.
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: BUG when you upgrade the VPS
« Reply #2 on: August 24, 2016, 06:06:44 PM »
Hi

I think my new partition is 20gb,  the CWP is wrong when it show only 10gb.


It is wrong when it shows that 4'7gb are used.

I had 9'99 gb of my 10 GB used... upgrade to 20 GB of space and now I have ONLY 4'7 in use ?? It is impossible.

CWP is wrong.

Offline
*
Re: BUG when you upgrade the VPS
« Reply #3 on: August 25, 2016, 05:27:36 AM »
cwp is reading system info live details so it's NOT wrong, you will need to resize this partition or you should ask you server provider to check it.
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: BUG when you upgrade the VPS
« Reply #4 on: August 30, 2016, 05:50:49 AM »
Ok, I think you are right.
Sorry for my doubts.

But when I try to resize the partition, I have the error 16.
So.. can I solve it if the CWP is in use ?  :'(

When I reboot the VPS, nothing is change.

Where is my problem?

This was my way:

Code: [Select]
[root@vps****01 ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1       9,8G  5,5G  3,8G  59% /
tmpfs           1,9G     0  1,9G   0% /dev/shm
[root@vps****01 ~]# fdisk -ul /dev/vda

Disk /dev/vda: 21.5 GB, 21474836480 bytes
16 heads, 63 sectors/track, 41610 cylinders, total 41943040 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 identifier: 0x000574cf

   Device Boot      Start         End      Blocks   Id  System
/dev/vda1   *        2048    41943039    20970496   83  Linux
[root@vps****01 ~]# fdisk -u /dev/vda

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c').

Command (m for help): d
Selected partition 1

Command (m for help): 1
1: unknown command
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

Command (m for help): p

Disk /dev/vda: 21.5 GB, 21474836480 bytes
16 heads, 63 sectors/track, 41610 cylinders, total 41943040 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 identifier: 0x000574cf

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First sector (63-41943039, default 63): 2048
Last sector, +sectors or +size{K,M,G} (2048-41943039, default 41943039): 41943039

Command (m for help): p

Disk /dev/vda: 21.5 GB, 21474836480 bytes
16 heads, 63 sectors/track, 41610 cylinders, total 41943040 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 identifier: 0x000574cf

   Device Boot      Start         End      Blocks   Id  System
/dev/vda1            2048    41943039    20970496   83  Linux

Command (m for help): a
Partition number (1-4): 1

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Dispositivo o recurso ocupado.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
« Last Edit: August 30, 2016, 06:10:55 AM by edur »

Offline
*
Re: BUG when you upgrade the VPS
« Reply #5 on: August 31, 2016, 05:39:26 AM »
you can check it with your hosting provider as they should know how to do it or you can contact our managed support to check it.
http://centos-webpanel.com/support-services
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: BUG when you upgrade the VPS
« Reply #6 on: September 01, 2016, 06:27:03 AM »
I have not hosting support. It is my server.

I want to learn, I don't want to go to the support.

So...  Is impossible to resize a partition where the CWP is running actually ??? How can I do it ?

Offline
*
Re: BUG when you upgrade the VPS
« Reply #7 on: September 01, 2016, 07:26:45 AM »
I have found  the solution:

It is very simple:

Code: [Select]
resize2fs /dev/vda1
 ;)

It can be useful for you.

Offline
*
Re: BUG when you upgrade the VPS - RESIZE PARTITION HARD DISC
« Reply #8 on: January 29, 2017, 06:38:57 PM »
Hi,

I have need it again, and I reply here for to explain the right way. It works for me (I home it works for you too, but be careful ):

df -h
fdisk -ul /dev/vda 


To show the hard disk. It looks like:

Disk /dev/vda: 21.5 GB, 21474836480 bytes
16 heads, 63 sectors/track, 41610 cylinders, total 41943040 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 identifier: 0x000574cf

   Device Boot      Start         End      Blocks   Id  System
/dev/vda1   *        2048  41943039    20970496   83  Linux


fdisk -u /dev/vda
Command (m for help): d
Selected partition 1
Command (m for help): p
Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First sector (63-41943039, default 63): 2048 <-- You can see it in the size table that we showed 1 minute ago.
Last sector, +sectors or +size{K,M,G} (2048-41943039, default 41943039): 41943039 <-- You can see it in the size table that we showed 1 minute ago.
Command (m for help): a
Partition number (1-4): 1
Command (m for help): w
The partition table has been altered!

reboot

....

resize2fs /dev/vda1

 ;D