resize disk on directadmin

He3am

Verified User
Joined
Mar 7, 2013
Messages
95
hi
my hard disk is full i need resize disk
kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=1006371
when run step 12 recived this error :The filesystem is already 12689408 blocks long. Nothing to do
what this problem ?
 
And what is output of the steps:

7.
Code:
fdisk -l

10.
Code:
vgdisplay VolGroup00


Code:
df -h /

?
7 :
Code:
[root@vps ~]# fdisk -l

Disk /dev/sda: 182.5 GB, 182536110080 bytes
255 heads, 63 sectors/track, 22192 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        6527    52323705   8e  Linux LVM
/dev/sda3            6528       22192   125829112+  83  Linux
10 :
Code:
[root@vps ~]# vgdisplay VolGroup00
  --- Volume group ---
  VG Name               VolGroup00
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  4
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               169.84 GB
  PE Size               32.00 MB
  Total PE              5435
  Alloc PE / Size       1596 / 49.88 GB
  Free  PE / Size       3839 / 119.97 GB
  VG UUID               YTidyr-0BFX-hA9D-cIec-eorx-aYyb-dtIKk0

Code:
[root@vps ~]# df -h /
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                       47G   46G     0 100% /
 
Maybe try something as in

lvresize /dev/VolGroup00/LogVol00

thanks
recived this :

[root@vps ~]# lvresize /dev/VolGroup00/LogVol00
Please specify either size or extents but not both.
Run `lvresize --help' for more information.
 
lvextend -L +3839 -r /dev/VolGroup00/LogVol00

recived this :
Code:
[root@vps ~]# lvextend -L +3839 -r /dev/VolGroup00/LogVol00
  Rounding up size to full physical extent 3.75 GB
  Extending logical volume LogVol00 to 52.16 GB
  Logical volume LogVol00 successfully resized
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/mapper/VolGroup00-LogVol00 is mounted on /; on-line resizing required
Performing an on-line resize of /dev/mapper/VolGroup00-LogVol00 to 13672448 (4k) blocks.
The filesystem on /dev/mapper/VolGroup00-LogVol00 is now 13672448 blocks long.

[root@vps ~]# df -h /
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                       51G   47G  1.9G  97% /
[root@vps ~]#
 
It should have been -l not a capital -L
Now run vgdisplay again and see how many extents you have left,
then run resize again.
 
Last edited:
It should have been -l not a capital -L
Now run vgdisplay again and see how many extents you have left,
then run resize again.
Code:
[root@vps ~]# vgdisplay
  --- Volume group ---
  VG Name               VolGroup00
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  5
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               169.84 GB
  PE Size               32.00 MB
  Total PE              5435
  Alloc PE / Size       1716 / 53.62 GB
  Free  PE / Size       3719 / 116.22 GB
 
Back
Top