Extend ext3 filesystem for RH5 Virtual Machine running in vCluster
来源:互联网 发布:js面向对象编程思想 编辑:程序博客网 时间:2024/06/02 06:22
1) Add more disk space to RH VM by vSphere
a. Power off the RH VM
b. Click 'Edit Virtual Machine Setting' in the panel of vSphere
c. 'Hardware -> Hard Disk 1 -> Increase the provisioned size' , only thin provisioned can be increased. For thick, we need add another disk to extend the space.
d. Reboot the VM
2) Create new partition for the newly added disk space
a. "/sbin/fdisk -l" to verify the total disk space is increased
b. Run "/sbin/fdisk /dev/sda" to create new partition.
"n -> p -> enter -> enter -> t -> 8e -> w", "enter" means accept the default (use all available space)
c. "/sbin/fdisk -l" to verify the newly added partition
3) Extend the Volume Group
a. "/usr/sbin/vgdisplay" to verify existing Volume Group
b. "ls /dev/VolGroup00/" to check the existing logical volume in the Volume Group00
c. Extend the VG:
/usr/sbin/vgextend /dev/VolGroup00 /dev/sda3 # /dev/sda3 is new partition
d. "/usr/sbin/vgdisplay" to verify the Volume Group's size is increased
e. "ls /dev/VolGroup00/" to check if a new logical volume created for this VG
4) Extend the existing Logical volume
a. Running the following command to extend the existing Logical Volume( will use the space from the new logical volume automatically)
/usr/sbin/lvextend +L340G /dev/VolGroup00/LogVol00 # Extend LogVol00 by using space from new (LogVol01)
b.
5) Extend the file system on top, unmount the fs if necessary
a. "df -u" to check fs size and usage
b. Run the following command to extend the existing fs to use the additional space
/sbin/resize2fs /dev/mapper/VolGroup00-LogVol00
c. "df -u" to verify the fs is increased
Reference
http://www.howtoforge.com/logical-volume-manager-how-can-i-extend-a-volume-group
http://www.redhat.com/magazine/009jul05/features/lvm2/
http://www.tldp.org/HOWTO/LVM-HOWTO/extendlv.html
http://www.brighthub.com/computing/linux/articles/48452.aspx
http://www.tldp.org/HOWTO/LVM-HOWTO/
- Extend ext3 filesystem for RH5 Virtual Machine running in vCluster
- Exploring the ext3 Filesystem
- Setting a MAC address for a virtual machine in VMware Fusion
- Cloning a running Virtual Machine using the Service Console
- Using USB Devices in a Virtual Machine
- VMDq (Virtual Machine Device Queue) in OpenSolaris
- Ergonomics in the 5.0 JavaTM Virtual Machine
- Create a new virtual machine in CentOS
- Application cannot be run in virtual machine.
- programming for java virtual machine note
- longmode is disabled for this virtual machine
- rh5
- ext3 filesystem bad superblock recovery
- How to extend an LVM disk on a RHEL guest machine running on VMware host?
- virtual machine
- Virtual machine
- Cannot open virtual machine:This virtual machine appears to be in use
- VMWare虚拟机显示Cannot open virtual machine:This virtual machine appears to be in use
- 在 Java 的泛型类型中使用通配符
- Linux中find命令大全
- 反射学习总结
- Asp.Net 配置文件说明
- 用opencv写的BP程序,不知道opencv里面是怎样实现的,结果还行。就是具体的误差曲线,交叉验证没做到
- Extend ext3 filesystem for RH5 Virtual Machine running in vCluster
- V$SQL,V$SQLAREA,V$SQLTEXT
- Liferay中ext工程deploy时候的问题
- js 操作cookie
- 解决AIX5.3环境下,重复启动weblogic造成的锁死
- 从头学TAO编程系列 获取并编译TAO
- 成绩单(~ o ~)~zZ
- 图解数据结构(5)——散列法及哈希表
- 继承与派生类 学习笔记3--虚基类