aix6.1 divides logical space

List all volume groups on this system

lsvg 

#lsvg rootvg ----View the details and status of the rootvg volume group

VOLUME GROUP:       rootvg                   VG IDENTIFIER:  00cecd3e00004c000000011e4872bbdd
VG STATE:           active                   PP SIZE:        128 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      546 (69888 megabytes)
MAX LVs:            256                      FREE PPs:       0 (0 megabytes)
LVs:                13                       USED PPs:       546 (69888 megabytes)
OPEN LVs:           12                       QUORUM:         2 (Enabled)
TOTAL PVs:          1                        VG DESCRIPTORS: 2
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         1                        AUTO ON:        yes
MAX PPs per VG:     32512                                     
MAX PPs per PV:     1016                     MAX PVs:        32
LTG size (Dynamic): 256 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable 

 =======================================================================

The command to divide the logical space is as follows:

mklv -t jfs2 -y lv_webapp -c 2 -am -em rootvg 200 Create lv with responsible function

The -c 2 above is probably not needed

 

crfs -v jfs2 -d lv_webapp -m /webapp -p rw create a file system

mkdir /webapps

mount /dev/lv_webapp /webapps hangs on the /webapps directory

 

TOTAL PPs:  546 (69888 megabytes)=128(PP SIZE)*546

 

200 refers to the  deduction from FREE PPs: 200*128/1024=XXX (unit G) 

 

 Add space to the specified system directory for the specified vg

Use the command: lsvg

See what lsvg is available

lsvg gpfsetlvg

See how much unused space is left.

Use the command:

chfs -a size=+82G -d gpfsetlvg /home/rcubbi/data

 Here the specified vg is: gpfsetlvg

 Specify the file system as: /home/rcubbi/data

 

crfs -v jfs2 -g testvg -a size=50G -m /testfs

Explanation: Create a 50G file system with the format Jfs2 on the testvg volume group, and the mount point is /testfs

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326270396&siteId=291194637