Simple Steps for HPUXMC/SG resizing (Add a new shared VG in the OPS environment)

Source: Internet
Author: User

1. Partitioning disks on the storage end
(Omitted)
2. (MACHINE 1 operation) create a VGID (Note: it cannot conflict with the previous VGID)
Mkdir/dev/vgtest
Mknod/dev/vg20test/group c 64 0x0b0000

3. format the disk # pvcreate/dev/rdisk/diskxxx (10 in this example)

4. Create VG and add all hard disks here. You can also add it through vgextend. PE size is set to 64 M, and the maximum number of PVS is 64
# Vgcreate-s 64-p 64/dev/vgtest/dev/disk/diskxxx
# Vgextend/dev/vgtest/dev/disk/disk113/dev/disk/(pvlink )...... Remaining Disks

5. (MACHINE 1 operation) Create LV
# Lvcreate-L 10240-n lvtest001/dev/vgtest
# Lvcreate-L 10240-n lvtest002/dev/vgtest
# Lvcreate-L 10240-n lvtest003/dev/vgtest
......
# Lvcreate-L 10240-n lvtest099/dev/vgtest
# Lvcreate-L 10240-n lvtest100/dev/vgtest

6. (MACHINE 1 operation) activate and export vgtest, and then import the map to machine 2.
# Vgchange-a n/dev/vgtest
# Cd/tmp
# Vgexport-v-p-s-m vgtest. map/dev/vgtest -------p
# Rcp/tmp/vgtest. map node2:/tmp

7. Create an VG on node 2. Note that the VGID and NODE1 are consistent.
Mkdir/dev/vgtest
Mknod/dev/vgtest/group c 64 0x0b0000

8. (MACHINE 2 Operations) machine 2 imports VG Information
Vgimport-v-m-s/tmp/vgtest. map/dev/vgtest

9. (MACHINE 2) Activate VG on node 2, check whether vg and lv are normal, and then activate
Vgchange-a y vgtest
Vgdisplay-v vgtest
Vgchange-a n vgtest

10. (Both machines must be operated) Add the following content to the configuration file and package control file:
Configuration file:
.....
OPS_VOLUME_GROUP/dev/vgdata04
OPS_VOLUME_GROUP/dev/vgtest ####### add VG here

Package control file:
.....
VG [4] = "vgdata04"
VG [5] = "vgtest" ###### add VG here

11. (MACHINE 1 operation) change the new VG attribute and activate it in shared VG mode.
Vgchange-S y-c y vgtest S capital

Vgchange-a s vgtest

In this step, you can also use the distribution cluster and package configuration files, but the vgchange command is more concise and the effect is the same.


12. Check whether the status of the newly created vg is normal.
HOST 1: vgdisplay vgtest #### check whether the VG status is available, shared, or server
Host 2: vgdisplay vgtest #### check whether the VG status is available, shared, and client

Operation completed.

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.