AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
Expand all | Collapse all

AIX Logical Volume Label

  • 1.  AIX Logical Volume Label

    Posted Tue March 25, 2008 05:36 AM

    Originally posted by: SystemAdmin


    This thread is w.r.t to a screnario that I feel can corrupt the /etc/filesystem while importing a VG.

    Let's assume we created a LV, lv001 with label /test1 and an fs also created with the mount point /test1.If we change the mount point to /test2 the label also changes to /test2.Now I am gonna change only the LV lable to /test3. Here I also consider my understanding that there is LV Label stored in VGDA but not the mount point of the fs. Next we export the respective VG and import it back. And the /etc/filesystems get the mount point of lv001 as /test3 and not /test2 . This fails the mouting of the filesystems again unless we manaully make changes to the mount point in /etc/filesystems.

    Next point is , the LV label can be only 127 characters , so if we give a mount point having characters higher than 127 , will that get mounted again ?
    AIX/Linux Administrator
    #AIX-Forum


  • 2.  Re: AIX Logical Volume Label

    Posted Tue March 25, 2008 05:43 AM

    Originally posted by: SystemAdmin


    Below are the screenshots ...

    1. lslv labellv
    LOGICAL VOLUME: labellv VOLUME GROUP: testvg
    LV IDENTIFIER: 00426dba00004c000000011762e1f4dc.1 PERMISSION: read/write
    VG STATE: active/complete LV STATE: opened/syncd
    TYPE: jfs2 WRITE VERIFY: off
    MAX LPs: 512 PP SIZE: 32 megabyte(s)
    COPIES: 1 SCHED POLICY: parallel
    LPs: 2 PPs: 2
    STALE PPs: 0 BB POLICY: relocatable
    INTER-POLICY: minimum RELOCATABLE: yes
    INTRA-POLICY: middle UPPER BOUND: 32
    MOUNT POINT: /hardway LABEL: /hardway
    MIRROR WRITE CONSISTENCY: on/ACTIVE
    EACH LP COPY ON A SEPARATE PV ?: yes
    Serialize IO ?: NO
    1. chlv -L labeltestlv labellv
    2. lslv labellv
    LOGICAL VOLUME: labellv VOLUME GROUP: testvg
    LV IDENTIFIER: 00426dba00004c000000011762e1f4dc.1 PERMISSION: read/write
    VG STATE: active/complete LV STATE: opened/syncd
    TYPE: jfs2 WRITE VERIFY: off
    MAX LPs: 512 PP SIZE: 32 megabyte(s)
    COPIES: 1 SCHED POLICY: parallel
    LPs: 2 PPs: 2
    STALE PPs: 0 BB POLICY: relocatable
    INTER-POLICY: minimum RELOCATABLE: yes
    INTRA-POLICY: middle UPPER BOUND: 32
    MOUNT POINT: /hardway LABEL: labeltestlv
    MIRROR WRITE CONSISTENCY: on/ACTIVE
    EACH LP COPY ON A SEPARATE PV ?: yes
    Serialize IO ?: NO
    1. lsvg -l testvg
    testvg:
    LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
    labellv jfs2 2 2 1 open/syncd /hardway
    manlv jfs 10 10 1 closed/syncd /man
    loglv00 jfslog 1 1 1 closed/syncd N/A
    loglv02 jfs2log 1 1 1 open/syncd N/A
    1. umount /hardway
    2. varyoffvg testvg
    3. exportvg testvg
    4. importvg -y testvg hdisk
    5. lspv
    hdisk0 0044dbba94f26bb1 rootvg active
    hdisk1 00426dbaf12fd9be rootvg active
    hdisk2 00426dba62dea016 None
    hdisk3 00426dba39ecfeb5 data2vg active
    1. importvg -y testvg hdisk2
    testvg
    1. lslv labellv
    LOGICAL VOLUME: labellv VOLUME GROUP: testvg
    LV IDENTIFIER: 00426dba00004c000000011762e1f4dc.1 PERMISSION: read/write
    VG STATE: active/complete LV STATE: closed/syncd
    TYPE: jfs2 WRITE VERIFY: off
    MAX LPs: 512 PP SIZE: 32 megabyte(s)
    COPIES: 1 SCHED POLICY: parallel
    LPs: 2 PPs: 2
    STALE PPs: 0 BB POLICY: relocatable
    INTER-POLICY: minimum RELOCATABLE: yes
    INTRA-POLICY: middle UPPER BOUND: 32
    MOUNT POINT: labeltestlv LABEL: labeltestlv
    MIRROR WRITE CONSISTENCY: on/ACTIVE
    EACH LP COPY ON A SEPARATE PV ?: yes
    Serialize IO ?: NO

    AIX/Linux Administrator
    #AIX-Forum