LVM之vg

1. the LVM is organized as follows:

a VG consists of one or more PVs

a LV is made up of LPs

LPs are mapped to PPs

 

2. Logical Volumes are used to contain:

  JFS or JFS2                        paging spaces

  dump space                        journal log

  boot logical volume                 raw space

 

3.logical volume manager

#smit lvm

the logical volume manager is used to manage many aspects of the system's storage:

 

volume groups

loggical volumes

physical volumes

paging space

 

4.vgmajor number

To determine a volume group's major number, use the ls -al /dev/VGName command. This command lists the special device file that represents the volume group. The volume group major number is the same as the major device number of the special device file.

eg:

# ls -al /dev/rootvg

crw-rw----   1 root     system       10,  0 Mar 22 19:42 /dev/rootvg

In this example, the volume group major number is 10.

 

查看rootvgcentents

# lsvg rootvg

VOLUME GROUP:       rootvg                   VG IDENTIFIER:  000d5d2c00004c000000012788ae4b8a

VG STATE:           active                   PP SIZE:        64 megabyte(s)

VG PERMISSION:      read/write               TOTAL PPs:      547 (35008 megabytes)

MAX LVs:            256                      FREE PPs:       430 (27520 megabytes)

LVs:                9                        USED PPs:       117 (7488 megabytes)

OPEN LVs:           8                        QUORUM:         2

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

列出VG中的PV   lsvg –P vgname

# lsvg -l rootvg

rootvg:

LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT POINT

hd5                 boot       1     1     1    closed/syncd  N/A

hd6                 paging     8     8     1    open/syncd    N/A

hd8                 jfs2log    1     1     1    open/syncd    N/A

hd4                 jfs2       1     1     1    open/syncd    /

hd2                 jfs2       50    50    1    open/syncd    /usr

hd9var              jfs2       1     1     1    open/syncd    /var

hd3                 jfs2       1     1     1    open/syncd    /tmp

hd1                 jfs2       8     8     1    open/syncd    /home

hd10opt             jfs2       46    46    1    open/syncd    /opt

# lsvg -p rootvg

rootvg:

PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION

hdisk0            active            547         430         109..101..01..109..110

列出的信息由PV的名字,PV的状态(active或者inactive),PP的总个数,freePP数等。

创建vg

创建一个vg的名字是firstvg,大小是200M

mkvg -s 200M -y firstvg hdisk1

设置vgcharactoristics

#smit vgsc

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值