Knowledge Base

Grow in your knowledge of the cloud?

Search: Browse by Category:
How do I see the expanded storage on my cloud server?
 
Print
Tell a Friend
Author: Admin User
Views: 67
Votes: 0

 

Linux - Expand root filesystem

Add the disk to LVM as a Physical Volume:

# pvcreate /dev/hdb1

Determine the Volume Group name and add the new PV to the volume group

# vgs
VG                          #PV        #LV         #SN        Attr        VSize     VFree
VolGroup00        2              2              0              wz-n-  59.84G  49.97G
# vgextend VolGroup00 /dev/hdb1


Determine the logical volume name for the root partition and expand it:

# cat /etc/fstab
/dev/VolGroup00/LogVol00       /              ext3       defaults               1 1

(Note the logical volume name assigned to the root mount

# lvextend -l 100%FREE VolGroup00/LogVol00


Expand the root filesystem

# resize2fs /dev/VolGroup00/LogVol00

Now all of the space is available to your root partition.

 

Windows Server 2003add D drive

Open Start > Administrative Tools > Computer Management

Click Disk Management.  The "Initialize and Convert Disk Wizard" will open.  Go through the wizard accepting the default settings.

Right-click on the unallocated partition space and select New Partition.  Accept the default values in the wizard to use all available space in the new D drive.

Click Finish.  The D drive will be available for use once the formatting process completes.

 

Windows Server 2008add D drive

Open Server Manager

Expand Storage and select Disk Management.  The Initialize Disk dialog will appear.  Click OK to initialize the disk.

Right-click the unallocated space and select New Simple Volume.

Accept the default values in the New Simple Volume wizard to use all the space in the new D drive.

The D drive will be available once the formatting process completes.

Last update: 02:39 PM Friday, December 11, 2009

Related Questions: