Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

moving vg from one server to another

Status
Not open for further replies.

kfincher

MIS
Apr 7, 2003
6
US
AIX 4.3.1.0 - I want to be able to be able to use a filesystem on on server for a temp holding area for data. Then I want to be able to access this data from another server. Can I unmount the fs, vgexport for server1 and vgimport, mount the fs on server#2? What are my concerns about the external array? What are my steps?
 
You could also use NFS, but you would have the slowdown of the network. doing the vgexport/vgimport would be faster, but if this is a one-shot deal, NFS may be good enough.
 
Easiest way is what bi described in his narrative, use NFS and you are a happy man, but a note of warning, NFS3 has a bug which makes the client occasionally not be able to mount points on the nfs server, should such occur, just re export the list from the server and retry your mounts from the client - good luck.
 
Been waiting on client to let me know type of disk structure. The servers are not connected to the same disk array, so NFS I guess is my option. I will have a dir structure on server A that I want server B to be able to access thru NFS. What are my steps for setting this up? Thanks for everyone's help.
 
If your VG contains a DB or many large size of data,
I suggest you use exportvg/importvg, because
1.you want to MOVE not copy data to another server.
2.NFS is slow, limited by your network speed and traffic.
3.If you copy from NFS, permission of files will be changed, It may be a problem to you.
4.use exportvg/importvg is fastest way to move data.

Producdure is:
On serverA
1.umount ALL filesystem of this VG, to make all LV are closed.
2.varyoffvg VG
3.exportvg VG
4.rmdev -dl hdiskX (which VG resident)
5.power off external disk, unplug SCSI cable from serverA to serverB.
On serverB
6.cfgmgr
7.lspv to see which disk new added
8.importvg -y VG hdiskX (new disk)
9.mount ALL filesystem you need.
10.Change Characteristics of VG and filesystems to you want.
OK !
All time you need is less than 15 minutes! unless your have a very big disk.
 
copying from an NFS mount point to a mount point on the servewr itself does not necessarily mean you lose permissions and ownership of the files you are copying.

You just have to be sure you use the -p option to retain ownership, mode and timestamp of the files you are copying. But kfincher hasn't said the files are going to be copied to the second server.

network slowdown is something to consider with NFS, however.

kfincher, if you do use NFS, be sure to set up the owner and group of the files on the receiving server with the same UID and GID as on the exporting server. And, depending on what is being exported, you may have to also set up the ordinary users on both systems (also with the same UIDs and GIDs).

You asked about setting up the directory structure to be the same on both systems. Hopefully someone will answer that question. I am away from an AIX system and can't test it at the moment.
 
man savevg
man restorevg

umount the vg back it up and restore to new machine

--
| Mike Nixon
| Unix Admin
|
----------------------------
 
oops, bi said a important point I have missed.
You MUST have SAME user/UID and group/GID on new server,
Otherwise your data move to new server will belong to someone you do not wish he have.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top