AIX

AIX

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


#Power
 View Only
Expand all | Collapse all

question on importvg manual

  • 1.  question on importvg manual

    Posted Mon January 31, 2011 07:05 AM

    Originally posted by: kyle@cmbchina.com


    hi,

    in manpage of command "importvg" when describing argument -L, it saids:

    -LVolumeGroup
    Takes a volume group and learns about possible changes performed to that volume group. Any new logical volumes created as a result of this command emulate the ownership, group identification, and permissions of the /dev special file for the volume group listed in the -y flag. The -L flag performs the functional equivalent of the -F and -n flags during execution. Restrictions:

    However the description is not the case according to teh test results in a two-node-cluster HA environment:

    1. both node A and B have a shared vg, in which I created a shared lv called test_lv, and set it's character device file /dev/rtest_lv 's owner and group to powinst and powigrp on both node A and B

    2. nothing changed on test_lv

    3. on node A, I execute the command:

    # importvg -L testvg hdisk7

    then, I check the ownership and group attribute of test_lv, it's set to root and system. --- seems the device files had been recreated or updated when importvg is performed:

    powerha_bak:/#ls -l /dev/*test_lv*
    crw-rw---- 1 powinst powigrp 35, 1 Jan 31 19:45 /dev/rtest_lv
    crw-rw---- 1 powinst powigrp 35, 2 Jan 31 19:45 /dev/rtest_lv2
    brw-rw---- 1 root system 35, 1 Jan 31 19:45 /dev/test_lv
    brw-rw---- 1 root system 35, 2 Jan 31 19:45 /dev/test_lv2
    powerha_bak:/#importvg -L testvg hdisk7
    testvg
    powerha_bak:/#ls -l /dev/*test_lv*
    crw-rw---- 1 root system 35, 1 Jan 31 20:03 /dev/rtest_lv
    crw-rw---- 1 root system 35, 2 Jan 31 20:03 /dev/rtest_lv2
    brw-rw---- 1 root system 35, 1 Jan 31 20:03 /dev/test_lv
    brw-rw---- 1 root system 35, 2 Jan 31 20:03 /dev/test_lv2

    so, would andyone please help me to figure out what the hell exactly does the importvg do with device files of all the LVs in testvg?

    thanks in advanced
    #AIX-Forum


  • 2.  Re: question on importvg manual

    Posted Tue February 01, 2011 11:33 AM

    Originally posted by: hdkutz


    Hello,
    may this Helps (from the Man Page of importvg):
    <snip>
    ...
    -R
    Restores the ownership, group ID, and permissions of the logical volume special device files. These values will be restored only if they were set using U, G and P flags of mklv and chlv commands. This flag is applicable only for volume groups of the types big and scalable.
    ...
    <snip>

    HTH,
    ku
    #AIX-Forum