Use Smitty to create and expand LogicalVolume on AIX

Source: Internet
Author: User
Smitty is a good tool for configuring various parameter commands in AIX. Smitty is an auxiliary operating tool running on AIX.

Smitty is a good tool for configuring various parameter commands in AIX. Smitty is an auxiliary operating tool running on AIX.

Linux and AIX are the most common server operating systems in our O & M environment. Ideally, the configured application runs in a stable cyclic environment. Generally, there will be no excessive configuration changes. However, if you do not properly configure various types of resources (especially storage) during the planning period, it is often necessary for O & M personnel to make adjustments later.

Smitty is a good tool for configuring various parameter commands in AIX. Smitty is an auxiliary operating tool running on AIX. It converts various operating system software and hardware configuration commands into a series of directory form styles for operations. This reduces the complexity of our operating system and avoids misoperation.

This document describes how to use Smitty to create and expand logical volumes on AIX.

1. LVM background

In AIX, the disk Management policy is a Logical Volume Management method. Simply put, storage is divided into three layers: physical Volume (Phsical Volume), Logical Volume Group (Logical Volume Group), and Logical Volume (Logical Volume.

Physical volumes are our most intuitive disks or partitions, and there may be multiple storage devices in the operating system. In LVM, it is regarded as a physical volume object (PV ).

Several physical volumes can be divided into one Logical organization for unified management, which is the Logical Volume Group ). LVG is similar to a storage pool. Large or small PVS are incorporated into LVG and are managed in a unified manner. For users, LVG is a unified virtual "Storage ". In LVG, data storage is divided and managed by Physical Partition (PP. Therefore, when we measure the capacity of LVM, the number of PP is an important indicator.

LVG is a storage pool object and cannot be stored directly. We need to divide several blocks in LVG for use, which is LV (Logical Volume ). LV has its own measurement unit, which is similar to PP and becomes LP (Logical Partition ). Generally, PP and LP are the same.

After creating the LV, you also need to associate it with a specific directory. This process becomes the loading mount. The following is a typical LV storage structure.

[Root @ TESTMIS:/] # df-g

Filesystem GB blocks Free % Used Iused % Iused Mounted on

/Dev/hd4 4.00 3.08 24% 10688 2%/

/Dev/hd2 5.00 2.81 44% 47602 7%/usr

/Dev/hd9var 0.62 0.07 90% 11505 40%/var

/Dev/hd3 10.00 3.67 64% 1948 1%/tmp

/Dev/hd1 0.12 0.12 1% 5 1%/home

/Dev/hd11admin 0.12 0.12 1% 5 1%/admin

/Proc---/proc

/Dev/hd10opt 0.50 0.25 50% 8980 14%/opt

/Dev/livedump 0.25 0.25 1% 4 1%/var/adm/ras/livedump

Each disk in the File system is an LV logical volume object. The LVM method has many advantages, the biggest of which is the ability to dynamically expand the space. For example, if the original LVG space is insufficient, you can directly add a new disk to the LVG, and then expand the extend logical volume space.

2. Environment Introduction

Next we will perform the creation and expansion test in the AIX 6.1 environment.

[Root @ TESTMIS:/] # oslevel

6.1.0.0

The current system already includes two logical volume groups: default Operating System rootvg and testmisvg.

[Root @ TESTMIS:/] # lsvg

Rootvg

Testmisvg

[Root @ TESTMIS:/] # lspv

Hdisk0 00f7fcc82bdccfa1 rootvg active

Hdisk1 00f7fcc8839250c4 testmisvg active

(Space reasons, omitted ......)

Each LV corresponds to the AIX directory structure and has its own space limit and usage.

[Root @ TESTMIS:/] # df-g

Filesystem GB blocks Free % Used Iused % Iused Mounted on

/Dev/hd4 4.00 3.08 24% 10685 2%/

/Dev/hd2 5.00 2.81 44% 47602 7%/usr

/Dev/hd9var 0.62 0.07 90% 11504 40%/var

/Dev/hd3 10.00 3.67 64% 1948 1%/tmp

/Dev/hd1 0.12 0.12 1% 5 1%/home

(Space reasons, omitted ......)

For more details, please continue to read the highlights on the next page:

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.