Visit Our UNIX and Linux User Community


exportvg


 
Thread Tools Search this Thread
Operating Systems AIX exportvg
# 1  
Old 11-02-2011
exportvg

Hi

How to check if a vg is exported from an LPAR using exportvg?

Is there a command or place where we can see the list of the vg's exported from the LPAR ?

Because if i run the command to varyonvg i get the below error :
Code:
root@cbspsrc02 [/] #varyonvg old_rootvg
0516-082 varyonvg: Unable to access a special device file.
         Execute redefinevg and synclvodm to build correct environment.

# 2  
Old 11-02-2011
old_rootvg is an alternate disk image - you cannot varyon it, you can wake it up with
Code:
alt_disk_install -W hdiskx

(alt_disk_install -S hdiskx puts it asleep again) or you can boot from it by changing the boot list of your server to this disk.

Generally when a VG appears in the output of lsvg command, than its imported, if the same VG appears in output of lsvg -o than its imported and varied on.

Hope this helps
regards
zxmaus
# 3  
Old 11-03-2011
To export does in this case not mean that it it's information is written somewhere so it is available for further use like you might know it from NFS or other things.
From the man page of exportvg:
Quote:
...
The exportvg command removes the definition of the volume group specified by the VolumeGroup
parameter from the system. Since all system knowledge of the volume group and its contents are
removed, an exported volume group can no longer be accessed.
...
# 4  
Old 11-08-2011
hi,
when u have exported an VG it will removes the ODM details of VG(which is exported),but u will have /etc/filesystems details regaring to the VG.
through a command u can't check whether a VG is exported or not.
# 5  
Old 11-23-2011
Quote:
Originally Posted by nagarjunatula
hi,
when u have exported an VG it will removes the ODM details of VG(which is exported),but u will have /etc/filesystems details regaring to the VG.
through a command u can't check whether a VG is exported or not.
Actually you wont if you haven't manually modified /etc/filesystems as the volumegroup export will remove the entries from /etc/filesystems and the import will add them.

Regards
zxmaus
# 6  
Old 11-23-2011
Exactly exportvg will clean the ODM and remove entries in /etc/filesystems.

If you have some disks that are on the system not assigned to any VG
you can check if they were assigned to any VG by reading
Volume Group Descriptor Area on the disk

It is "readvgda" command
More info here: https://www.ibm.com/developerworks/m...dvgda3?lang=en
# 7  
Old 11-25-2011
Hi,

You can check with
Code:
lqueryvg -p hdiskX -At

it will show the contains of that disk. The exportvg will clear the odm and filesystem entries from that system but data is still there in the hdisk, you can attach that disk to any other system and run importvg. If
Code:
reducevg -d

is done then only it will wipe out all the data from disk.

Previous Thread | Next Thread
Test Your Knowledge in Computers #5
Difficulty: Easy
The UNIX trademark is a "certification mark".
True or False?

2 More Discussions You Might Find Interesting

1. AIX

Exportvg/importvg causes corrupt LV Control Block

Hi experts, Power7 p720 AIX 6.1 This is what happened: $ sudo importvg -y v7000_1vg hdisk6 0516-622 synclvodm: Warning, cannot write lv control block data. 0516-622 synclvodm: Warning, cannot write lv control block data. 0516-622 synclvodm: Warning, cannot write lv control block data.... (9 Replies)
Discussion started by: livehho
9 Replies

2. AIX

nooB questions on importvg and exportvg

I don't understand the concept behind importvg and exportvg. What are some examples of when one would use this? (1 Reply)
Discussion started by: outtacontrol
1 Replies

Featured Tech Videos