New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

BUG when you upgrade the VPS

Started by edur, August 23, 2016, 05:09:56 AM

Previous topic - Next topic

edur

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:



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.

Igor S.

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

edur

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.

Administrator

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.

edur

#4
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:


[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.

Administrator

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

edur

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 ?

edur

I have found  the solution:

It is very simple:

resize2fs /dev/vda1

;)

It can be useful for you.

edur

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