Increasing the size of Root Partition
This blog describes how to increase the size of the default logical volume VolGroup00-LogVol00 mounted at the root “/” directory of a guest vServer.
oracle configurationintermediate
by OracleDba
12 views
This blog describes how to increase the size of the default logical volume VolGroup00-LogVol00 mounted at the root “/” directory of a guest vServer.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
# df -h
# cat /proc/partitions
# df -h
# cat /proc/partitions
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 13054.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): p
Disk /dev/xvdb: 107.3 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
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 cylinder (1-13054, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-13054, default 13054):
Using default value 13054
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)
Command (m for help): p
Disk /dev/xvdb: 107.3 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/xvdb1 1 13054 104856223+ 8e Linux LVM
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.1234567
# pvcreate /dev/xvdb1
# pvcreate /dev/xvdb1
# vgextend VolGroup00 /dev/xvdb1
# vgextend VolGroup00 /dev/xvdb11234567
# lvextend -l +100%FREE /dev/VolGroup00/LogVol00
# lvextend -l +100%FREE /dev/VolGroup00/LogVol00
# resize2fs /dev/VolGroup00/LogVol00
# resize2fs /dev/VolGroup00/LogVol00123
# df -h
# df -hPlease to add comments
No comments yet. Be the first to comment!