The process of adding a new hard disk to the virtual machine and creating an LVM bare device for use by Oracle

Source: Internet
Author: User

The following is the process of adding a new hard disk to the virtual machine and creating an LVM bare device to use with Oracle, and we learn together, there is not the right place to guide, thank you.

Linux system is AS4 update 7

Before the experiment, understand some basic concepts, as follows:

LVM (logicl Volume Manager), logical Volume Manager, through the use of Logical volume Manager to the hard disk storage device management, can achieve dynamic partition and adjustment of hard disk space.

I. Basic CONCEPTS

1, physical volume-----PV (physical Volume)

The physical volume is at the bottom of the logical volume management, either as a partition on the actual physical hard disk or as an entire physical hard disk.

2. Volume group--------VG (volumne Group)

A volume group is built on top of a physical volume, and at least one physical volume is included in a volume group, and physical volumes can be dynamically added to the volume group after the volume group is established. A logical volume management system engineering can have only one volume group, or more than one volume group.

3, Logical Volume-----LV (Logical Volume)

Logical volumes are built on top of the volume group, and unallocated space in the volume group can be used to create new logical volumes that can be dynamically scaled and scaled down after the logical volume is established. Multiple logical volumes in a system can belong to the same volume group or to different multiple volume groups.

4, physical area--pe (physical Extent)

The physical area is the smallest storage unit that can be allocated in a physical volume, and the size of the physical area can be specified as a physical volume, depending on the actual situation. The physical area size of all physical volumes in the same volume group needs to be the same if it is determined that it will not change.

5, logical Area-le (Logical Extent)

The logical region is the smallest storage unit available for allocation in a logical volume, and the size of the logical region depends on the size of the physical area in the volume group in which the logical volume resides.

6. Volume Group Description Region-----(Volume Group Descriptor area)

The volume group description area exists on each physical volume to describe all information about the physical volume itself, the volume group that the physical volume belongs to, the logical volume in the volume group, and the allocation of the physical area in the logical volume, which is established when the physical volume is established using Pvcreate.

Second, the actual operation

1. Add a hard disk to the virtual machine, enter the system to create the partition

[Root@rles ~]# fdisk-l--View now has partitions

disk/dev/hda:21.4 GB, 21474836480 bytes

255 heads, Sectors/track, 2610 cylinders

Units = Cylinders of 16065 * 8225280 bytes

Device Boot Start End Blocks Id System

/DEV/HDA1 * 1 1912 15358108+ Linux

/dev/hda2 1913 2173 2096482+ Linux swap

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/virtualization/

/dev/hda3 2174 2610 3510202+ Linux

disk/dev/hdb:2147 MB, 2147483648 bytes--You can see this device is not partitioned

Heads, Sectors/track, 4161 cylinders

Units = Cylinders of 1008 * 516096 bytes

Disk/dev/hdb doesn ' t contain a valid partition table

[Root@rles ~]# Df-h

FileSystem Size Used Avail use% mounted on

/DEV/HDA1 15G 7.5G 6.3G 55%/

None 553M 0 553M 0%/dev/shm

/dev/hda3 3.3G 98M 3.1G 4%/tmp

[Root@rles ~]#

[Root@rles ~]#

[Root@rles ~]#

[Root@rles ~]# Fdisk/dev/hdb--for the device partition, the following is the process of partitioning

Please download the document to view details

This article is from the "Technical Knowledge exchange" blog, please be sure to keep this source http://xiahouyao123.blog.51cto.com/646312/792434

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.