精华内容
下载资源
问答
  • aix vg lv pv

    2014-10-30 15:41:00
    aix vg lv pv lsvg lsvg -o lsvg rootvg 查看rootvg的信息 lsvg -p rootvg 查看rootvg卷里的物理硬盘以及分布信息 lsvg -l rootvg 查看rootvg卷下的逻辑卷的基本信息 add a volume group smit...

    lsvg

    lsvg -o

    lsvg rootvg 查看rootvg的信息

    lsvg -p rootvg 查看rootvg卷里的物理硬盘以及分布信息

    lsvg -l rootvg 查看rootvg卷下的逻辑卷的基本信息

     

    add a volume group

    smit mkvg 通过smit工具进行添加卷组,可以设置更多信息

    mkvg command to create a volume group named newvg created with a physical partition size of 2 MB is: 

    mkvg -s 2 -y newvg hdisk1

     

     

    to display the LTG size of a disk, use the command:

    /usr/sbin/lquerypv -M hdisk0

     

    setting the LTG size

    varyonvg -M512K myvg

    set the logical track group size to the common maximum transfer size of the disks:

    chvg -L 0 tmpvg

     

    designate a hot spare:

    chpv -hy hdisk1

    chpv -hn hdisk1

     

    add a physical volume to a volume group:

    extendvg -f volumegroup hdiskn

     

    removed a physical volume from a volume group:

    reducevg -d -f volumegroup hdiskn

     

    how to remove a volume group:

    reducevg -d -f volumgroup physicalvolume

     

     

    activate/deactivate a volume group

    varyonvg datavg

    varyoffvg datavg

     

    import/export a volume group

    posted on 2014-10-30 15:41 秦瑞It行程实录 阅读(...) 评论(...) 编辑 收藏

    转载于:https://www.cnblogs.com/ruiy/p/4062874.html

    展开全文
  • AIX VG操作

    2010-11-03 20:18:05
    下面操作为在AIX 5.3下面的操作日志记录一.创建VG1.查看磁盘使用情况,如果使用ASM注意ASM是直接使用没有分配PVID的PVbash-3.00# lspvhdisk0 00f6a21d5c0...
    下面操作为在AIX 5.3下面的操作日志记录

    一.创建VG

    1.查看磁盘使用情况,如果使用ASM注意ASM是直接使用没有分配PVID的PV
    bash-3.00# lspv
    hdisk0 00f6a21d5c053829 rootvg active
    hdisk1 00f6a21d01424683 rootvg active
    hdisk2 none None
    hdisk3 none None
    hdisk4 none None
    hdisk5 none None
    hdisk6 none None
    hdisk7 none None
    hdisk8 none None
    hdisk9 none None
    hdisk10 none None
    hdisk11 none None
    hdisk12 none None
    hdisk13 none None
    hdisk14 none None
    hdisk15 none None
    hdisk16 none None
    hdisk17 none None
    hdisk18 none None
    hdisk19 none None
    hdisk20 00f6a21d6a03bb66 bkvg active
    hdisk21 00f6a21d6a03bbc9 bkvg active
    hdisk22 00f6a21d6a03bc2b bkvg active
    bash-3.00#

    本次计划把hdisk17,hdisk18,hdisk19划出来

    2.创建VG,一般空间间比较大的情况下我们会选择”Add a Big Volume Group”
    shell>smitty mkvg:
    Move cursor to desired item and press Enter.

    Add an Original Volume Group
    Add a Big Volume Group
    Add a Scalable Volume Group

    选择后回车

    将卷组名设置为fsdatavg,PP大小为64M
    add an Original Volume Group

    Type or select values in entry fields.
    Press Enter AFTER making all desired changes.


    VOLUME GROUP name [fsdatavg]
    Physical partition SIZE in megabytes 64 +
    * PHYSICAL VOLUME names [hdisk17,hdisk18,hdisk19] +
    Force the creation of a volume group? yes +
    Activate volume group AUTOMATICALLY yes +
    at system restart? Volume Group MAJOR NUMBER [] +#
    Create VG Concurrent Capable? no +

    Command: OK stdout: yes stderr: no

    Before command completion, additional instructions may appear below.




    二.为VG添加磁盘


    1.执行extendvg操作
    按F4选择要添加的磁盘
    # smit extendvg

    Add a Physical Volume to a Volume Group

    Type or select values in entry fields.
    Press Enter AFTER making all desired changes.

    [Entry Fields]
    Force the creation of a volume group? no +
    * VOLUME GROUP name [bkvg] +
    * PHYSICAL VOLUME names [hdisk14] +

    提醒是否继续,确认继续

    F1=Help F2=Re+------------------------------------------------------+ F4=List
    Esc+5=Reset Esc+6| Running command... | Esc+8=Image
    Esc+9=Shell Esc+0+------------------------------------------------------+
    COMMAND STATUS


    Command: OK stdout: no stderr: no

    Before command completion, additional instructions may appear below.



    2.查看是否添加成功,lsvg显示已经添加成功
    # lsvg bkvg
    VOLUME GROUP: bkvg VG IDENTIFIER: 0009a8ea0000d60000000132aa4ee783
    VG STATE: active PP SIZE: 128 megabyte(s)
    VG PERMISSION: read/write TOTAL PPs: 7995 (1023360 megabytes)
    MAX LVs: 512 FREE PPs: 1754 (224512 megabytes)
    LVs: 3 USED PPs: 6241 (798848 megabytes)
    OPEN LVs: 3 QUORUM: 3 (Enabled)
    TOTAL PVs: 5 VG DESCRIPTORS: 5
    STALE PVs: 0 STALE PPs: 0
    ACTIVE PVs: 5 AUTO ON: yes
    MAX PPs per VG: 2097152 MAX PVs: 1024
    LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
    HOT SPARE: no BB POLICY: relocatable

    来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/21605631/viewspace-710293/,如需转载,请注明出处,否则将追究法律责任。

    转载于:http://blog.itpub.net/21605631/viewspace-710293/

    展开全文
  • 关于AIX VG中 LV 的状态问题,LV STATE

    千次阅读 2013-07-09 21:23:11
    在数据库管理过程中常常遇见LV状态异常,而造成LV不能再次被使用的情况,那么AIX中LV的两种状态分别代表什么呢 如果是访问fs需要open,即创建文件系统并mount 文件系统LV STATE 才是open/syncd 的; 如果是访问raw...
    在数据库管理过程中常常遇见LV状态异常,而造成LV不能再次被使用的情况,那么AIX中LV的两种状态分别代表什么呢

    如果是访问fs需要open,即创建文件系统并mount 文件系统LV STATE 才是open/syncd 的;

    如果是访问raw,即lv 作为裸设备(raw device),在用到的时候是LV STATE 是open/syncd,说明有应用在使用,

    如跑Oracle,或用dd命令对它操作;不用的时候,如停了oracle后LV STATE是closed/syncd  。

    是因为用了,才显示OPEN。而不是需要OPEN了,才可以用。

    lv被访问了,就显示open. hd5在AIX启动后显示closed/syncd,而在启动时是open,就是这个道理。

    有访问,就OPEN,没访问,就CLOSE
    不是OPEN了才能访问,而是有访问才显示OPEN,没有访问就显示 close。
    文件系统没 mount,就是没访问。文件系统mount了,就是有访问了——mount就是最基本的访问。     

    对于jfslog这个特殊LV的status是由LVM自已控制的,不能由用户自已更改的,正常与他对应的文件系统open了,它也就open了。 
    注意,hd5这个boot类型的LV STATE正常状态下就是closed/syncd的。

    # 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     16    16    1    open/syncd    N/A
    hd8                 jfs2log    1     1     1    open/syncd    N/A
    hd4                 jfs2       1     1     1    open/syncd    /
    hd2                 jfs2       13    13    1    open/syncd    /usr
    hd9var              jfs2       1     1     1    open/syncd    /var
    hd3                 jfs2       1     1     1    open/syncd    /tmp
    hd1                 jfs2       1     1     1    open/syncd    /home
    hd10opt             jfs2       3     3     1    open/syncd    /opt
    展开全文
  • aix系统vg

    2013-02-19 17:21:58
    VG identifier The volume group identifier. PP size Size of each physical partition. Total PPs Total number of physical partitions within the volume group. Free PPs Number of physical partitions not ...

    lsvg command

    Purpose

    Displays information about volume groups.

    Syntax

    lsvg [-map | -lv | -pv ] [ -field FieldName ] [ -fmt Delimiter ] VolumeGroup...

    Description

    The lsvg command displays information about volume groups. If you use the VolumeGroup parameter, only the information for that volume group is displayed. If you do not use the VolumeGroup parameter, a list of the names of all defined volume groups is displayed.

    When information from the Device Configuration database is unavailable, some of the fields will contain a question mark (?) in place of the missing data. The lsvg command attempts to obtain as much information as possible from the description area when the command is given a logical volume identifier.

    Full scripting support is provided to the lsvg command by using the -field FieldNames and -fmt Delimiter flags. The -field flag will allow the user to select which output fields to display and in what order, while the -fmt flag provides scriptable output. The output fields will be displayed in the order they appear on the command line.

    If you do not specify any flags, the following information will be displayed:

    Volume groupName of the volume group. Volume group names must be unique and can range from 1 to 15 characters.
    Volume group stateState of the volume group. If the volume group is active, the state is either active/complete (indicating all physical volumes are active) or active/partial (indicating some physical volumes are not active). If the volume group is not active, the state is inactive.
    PermissionAccess permission: read-only or read-write.
    Max LVsMaximum number of logical volumes allowed in the volume group.
    LVsNumber of logical volumes currently in the volume group.
    Open LVsNumber of logical volumes within the volume group that are currently open.
    Total PVsTotal number of physical volumes within the volume group.
    Active PVsNumber of physical volumes that are currently active.
    VG identifierThe volume group identifier.
    PP sizeSize of each physical partition.
    Total PPsTotal number of physical partitions within the volume group.
    Free PPsNumber of physical partitions not allocated.
    Alloc PPsNumber of physical partitions currently allocated to logical volumes.
    QuorumNumber of physical volumes needed for a majority.
    VGDSNumber of volume group descriptor areas within the volume group.
    Auto-onAutomatic activation at IPL (yes or no).
    ConcurrentStates whether the volume group is Concurrent Capable or Non-Concurrent Capable.
    Auto-ConcurrentStates whether you should auto activate the Concurrent Capable volume group in concurrent or non-concurrent mode. For volume groups that are Non-Concurrent Capable, this value defaults to Disabled.
    VG ModeThe mode of the volume group: Concurrent or Non-Concurrent.
    Node IDNode id of this node if volume group is in concurrent node.
    Active NodesNode ids of other concurrent nodes that have this volume group active.
    Max PPs Per PVMaximum number of physical partitions per physical volume allowed for this volume group.
    Max PVsMaximum number of physical volumes allowed in this volume group.
    LTG sizeLogical track group size, in number of kilobytes, of the volume group.
    BB POLICYBad block relocation policy of the volume group.
    SNAPSHOT VGSnapshot volume group name if the snapshot volume group is active else snapshot volume group identifier.
    PRIMARY VGOriginal volume group name of a snapshot volume group if the original volume group is active else original volume group identifier.




    来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22531473/viewspace-754300/,如需转载,请注明出处,否则将追究法律责任。

    转载于:http://blog.itpub.net/22531473/viewspace-754300/

    展开全文
  • aix确定VG类型方法

    千次阅读 2012-08-31 23:01:09
    AIX5.2增加了Big VG类型,AIX5.3以后,VG有了3种类型,普通VG,Big VG和Scalable VG。 $ lsvg xxx_vg VOLUME GROUP: xxx_vg VG IDENTIFIER: 00c5bf9c00004c0000000112da58dbf3 VG STATE:
  • AIX PV VG LV详解

    2018-04-10 20:14:56
    vg 卷组:AIX中最大的存储单位,一个卷组由一组物理硬盘组成,也就是由一个或多个物理卷组成。pp 物理分区:是把物理卷划分成连续的大小相等的存储单位,一个卷组中的物理分区大小都相等。lp 逻辑分区:适映射物理...
  • 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: ...
  • 一、 创建VG和删除VG//建VGsmit lvm 或 smit mkvg--Volume Groups--VOLUME GROUP name 【 卷名 】--Physical partition SIZE in megabytes 【1024】--* PHYSICAL VOLUME names 【 ESC+4 选硬盘 】//删VG如果上面有lv...
  • aix lvm big vg

    2019-02-09 15:06:06
    big vg是ibm为oracle等数据库特定的一种vg,由于在普通vg上建立lv需要保留4k空间给lvcb(logical volume control block),oracle会从4k的offset开始用,当oracle的...
  • Aixvg的查看

    2018-10-16 10:51:00
    VOLUME GROUP: rootvg VG IDENTIFIER: 00cbf56700004c00000001606f1a6767 VG STATE: active PP SIZE: 256 megabyte(s) VG PERMISSION: read/write TOTAL PPs: 531 (135936 megabytes) MAX LVs: 256 FREE PPs: 14 ...
  • aixvg管理

    2010-04-13 10:15:06
    创建pv lspvchdev -l hdisk9 -a pv=yes  chdev -l hdisk4 -a pv=yes  ...创建vg mkvg -s 2 -t 2 -y oravg hdisk4 hdisk5 hdisk6 hdisk7 hdiks8   然后激活卷组即可 清除pvidchdev -l hdisk9 -a pv=cle...
  • aix如何重命名vg

    2018-05-24 15:31:33
    卸载所有的文件举行了卷组lsvg -...old_vgname>lsvg - 1 <old_vgname>umount each file system.卸载每个文件系统。varyoffvg <old_vgname>lsvg <oldvg_name>This tells you which disks are in...
  • 转载...   AIX中的VG类型 AIX中的VG有三种类型,如下: VG type Maximum PVs Maximum LVs Maximum PPs per VG Maximum PP size
  • AIX 创建VG及文件系统

    2017-11-27 11:22:00
    对于刚学的朋友,这个还是很重要的 AIX 7.1版本 见下面一步一步来 第1个 输入相应的内容 ,就这几项,简单,然后回车 回车后,就创建成功了。 smitty lv 创建lv 记得ESC +4 否则就麻烦 了。 输入相应的内容,...
  • AIXvg的镜像

    千次阅读 2014-11-10 13:33:45
    [03:18:47 root@billdb soft]# lspv hdisk0 00044df210802da4 rootvg active hdisk1 00044df2151de56a None hdisk2 00c
  • HPUX/LINUX/AIXVG操作

    2012-11-05 15:46:48
    Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONEHPUX/LINUX/AIXVG操作 ...
  • aix 下创建vg和lv

    万次阅读 2015-02-07 15:22:05
    1、LVM背景介绍在AIX中,磁盘管理策略是一种Logical Volume Management的方法。简单的说,就是将存储划分为物理卷PV(Phsical Volume)、逻辑卷组VG(Logical Volume Group)和逻辑卷LV(Logical Volume)三个层次...
  • aix 3种vg

    千次阅读 2012-12-26 18:23:33
    Original VG wolf # lsvg testvg VOLUME GROUP: testvg VG IDENTIFIER: 00c59a5200004c00000001245b281266 VG STATE: active PP SIZE: 64 megabyte
  • AIXVG和扩文件系统

    千次阅读 2017-12-25 11:28:47
    http://jewfinkl.blog.163.com/blog/static/1407698201011104639120/ http://blog.csdn.net/u011457628/article/details/19206871

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 496
精华内容 198
关键字:

aixvg