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