Operating System - HP-UX
1837005 Members
1979 Online
110111 Solutions
New Discussion

Re: importing files system

 
Edwin Ruiz_2
Super Advisor

importing files system

How can i import files systems betwen servers with HP-UX without lost DATA?

thnx for ur help
11 REPLIES 11
Robert-Jan Goossens
Honored Contributor

Re: importing files system

Hi Edwin,

Are you talking about nfs (Network File System) or LVM (logical volume manager), import a filesystem or a volume group ?

Robert-Jan
Patrick Wallek
Honored Contributor

Re: importing files system

Are you wanting to export an entire VG from one HP-UX system and import on another? If so, have a look at the vgexport and vgimport man pages. Those will do the trick for you.

If you are looking for something else, please elaborate.
Rick Garland
Honored Contributor

Re: importing files system

There are the vgexport/vgimport commands.
Restoring from backup.
The pvmove command.

What is it you are trying to accomplish?
Are you moving disks around?
Just moving the data from 1 server to another?

Edwin Ruiz_2
Super Advisor

Re: importing files system

Thnks for ur help.

I want to import all the volume groups en file systems in one server HP9000 to other. i want to lost my data... is that possible?
Steven E. Protter
Exalted Contributor

Re: importing files system

For many files i'd recommend scp or sftp.

If both machines have a path to he disk, you can vgexport on one machine deactivate the volume group and vgimport on the second machine.

No data would be lost.

A lot however depends on your current configuration. You will need to bring down apps and databases that are using the data.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Edwin Ruiz_2
Super Advisor

Re: importing files system

Thansk... when i mount Data normally. data is not present
Patrick Wallek
Honored Contributor

Re: importing files system

What steps have you taken? Without knowing what you have done so far, it's really hard to diagnose your problem.
Edwin Ruiz_2
Super Advisor

Re: importing files system

i do this steps:

1. umount FS
2. Vgchange VG's
3. Vgimport VG's
4. vgchange VG's
5. mount /FS

thanks
Noel Miranda
Frequent Advisor

Re: importing files system

You should have done a vgexport -p -m on the first system, before bringing bringing the vg down. Then you could do a vgimport on the second system.
Thayanidhi
Honored Contributor

Re: importing files system

Hi,

If both system have acces to the system then follow this.
In systemA
1) Umount all FS,
2) vgchange -a n
3) vgexport -m /tmp/map.file
4) rcp /tmp/map.file systemB:/tmp (or ftp)
In systemB
5) create vg folder and group file
(Refer to LVM guide)
6) vgimport -m /tmp/map.file
7) vgchange -a y
8) Create mount points and try mounting.

If only one system can access the disk, after exportingVG you need to move the disk aswell to another system. Make sure your disk is compatible, in terms of interface, SCSI -id...etc.

regds
TT
Attitude (not aptitude) determines altitude.
Thayanidhi
Honored Contributor

Re: importing files system

Sorry,

The first line in my prvious post to be read as
"If both system have acces to the disk then follow this"

Attitude (not aptitude) determines altitude.