1753774 Members
6746 Online
108799 Solutions
New Discussion юеВ

Re: vgexport and fstab

 
SOLVED
Go to solution
Jay Cantwell
Regular Advisor

vgexport and fstab

I am operating on a D370, HPUX 11.0....

I did an export on volume group vgraid creating the mapfile of vgraid.mapfile. Now I would like to set up a new volume group on a replacement disk with the same volume group name, logical name, and same mount point names..(in other words create a new group just like the one I just exported).....

In the fstab, it is still listing the mount points that I did with the export. How will this affect the allocation of the new volume group using the same names ??

thanks .. Jay
6 REPLIES 6
Sundar_7
Honored Contributor
Solution

Re: vgexport and fstab

Hi Jay,

The entries in /etc/fstab is not going to effect you by any means if you can tolerate couple of error messages when the system is booting up or while issuing mount -a command.

# pvcreate /dev/rdsk/
# mkdir /dev/vgraid
# mknod /dev/vgraid/group c 64 0xAA0000

use the approriate minor number

# vgcreate /dev/vgraid /dev/dsk/

Create the logical volumes using lvcreate - if you have customized lv names then use the -n option with lvcreate or you can manually rename the logical volume device files in /dev/vgraid/ after creating the logical volume.

Sundar



Learn What to do ,How to do and more importantly When to do ?
SureshKumar_2
Valued Contributor

Re: vgexport and fstab

Hi Jay

*) Vgexport and vgimport used for Exporting/Importing the VG.

*) If u want to create New VG on a replacement disk, you have to create only.

*) When u use minor number, while creating group file, enusure it is not used by any other VGs.

*) In vgraid how many hdd u have, if it is only one u can do pvmove, it makes entrie copy of PV.

*) fstab is doesnt matter. it is referred at that time of bootup, to mount fs automatically. (If u r creating same lvname/vgname u no need to worry the entries on fstab.)

Hope these inputs will help you

suresh
Things are very easy, when u know about it...
Shaikh Imran
Honored Contributor

Re: vgexport and fstab

Hi,
This may help :
#pvcreate -f /dev/dsk/
#mkdir /dev/vgraid
#mknod group c 64 0x050000
(you should use and unused minor No. in this case i assume 0x050000 is unused)
#vgimport -v -m /dev/dsk/
#vgchange -a y /dev/vgraid
#mount -a

Regards,

I'll sleep when i am dead.
SureshKumar_2
Valued Contributor

Re: vgexport and fstab

Dear Imran,

vgimport u can use, when u have LV and data on LV.

In a blank hdd, if u import VG by using -m option, certainly it will show error.

I dont think so, u can use vgimport for ur new replacement harddisk.

For replacement HDD, u have to use only vgcreate..... or pvmove

??
suresh
Things are very easy, when u know about it...
SANTOSH S. MHASKAR
Trusted Contributor

Re: vgexport and fstab

if u want same mount points and same logical volumes then same fstab can be used without any worries.

-Santosh
Wang Xueyan
Advisor

Re: vgexport and fstab

You wanted to replce disk in the volume group If I didn't misunderstand. Actually you need not vgexport the "vgraid", but use the following command to restore the VGRA to the new disk.

vgcfgrestore -n vgname /dev/rdsk/c#t#d#