Operating System - HP-UX
1748126 Members
3268 Online
108758 Solutions
New Discussion юеВ

Re: best practice on increasing VG00 volume group and file systems

 
SOLVED
Go to solution
Michael Steele_2
Honored Contributor

Re: best practice on increasing VG00 volume group and file systems

/dev/vg00/oracle_lvol >> mounts to /old_oracle file system
mount /dev/vg_new/new_orcale_lvol -to- /new_oracle file system
cd /old_oracle file system
cp -p -r /old_oracle /new_oracle
umount /old_oracle
umount /new_oracle
mount /dev/vg_new_new_oracle_lvol -to- /old_oracle file system
Support Fatherhood - Stop Family Law
HPquestion
Regular Advisor

Re: best practice on increasing VG00 volume group and file systems

How can I copy the contents of just /oracle file system data to a new place without copying /oracle/a , /oracle/b file systems data?
James R. Ferguson
Acclaimed Contributor

Re: best practice on increasing VG00 volume group and file systems

HI:

> How can I copy the contents of just /oracle file system data to a new place without copying /oracle/a , /oracle/b file systems data?

And how do you take the root of a tree and move it to another place without taking the trunk and branches? You don't.

Your question doesn't make sense.

Regards!

...JRF...
Sunny123_1
Esteemed Contributor

Re: best practice on increasing VG00 volume group and file systems

Hi



its simple take the backup of /oracle
then restore it to new filesystem.
What backup utility you are using?

Regards
Sunny
Dennis Handly
Acclaimed Contributor

Re: best practice on increasing VG00 volume group and file systems

>JRF: And how do you take the root of a tree and move it to another place without taking the trunk and branches?

You can move the root file leaves and leave the root directory leaves alone.

>Your question doesn't make sense.

Or ambiguous, in that it seems silly and there are ways to partially move files but we need more info.

You could create symlinks to keep the data but move the tree.
Vishu
Trusted Contributor

Re: best practice on increasing VG00 volume group and file systems

Hi,

You can try this command. it can help you.

# cd /oracle

# find . -xdev -print -depth| cpio -pvmd

Repeat it for all the FS you want to copy.


Note:- you should assign points to all who are helping you.
Michael Steele_2
Honored Contributor

Re: best practice on increasing VG00 volume group and file systems

Hi

Gee, you just navigate to the starting point.

cd /oracle/c

cp -p -r /oracle/c /new_oracle/c

Question: Are /oracle/a, /oracle/b, /oracle/c mount points?

(* A mount point is the start of a file system *)

Support Fatherhood - Stop Family Law
HPquestion
Regular Advisor

Re: best practice on increasing VG00 volume group and file systems

Yes. /oracle/a, /oracle/b, /oracle/c are different mount points and these are different file systems. I guess i have unmount these file systems before the copy.

Do we have any other way to copy just /oracle
file system without any of the data in /oracle/a, /oracle/b, /oracle/c ?
Viktor Balogh
Honored Contributor

Re: best practice on increasing VG00 volume group and file systems

>How can I copy the contents of just /oracle file system data to a new place without /oracle/a , /oracle/b file systems data?

umount the /oracle/a and /oracle/b --> this way only the files in that filesystem will be copied.

or, see the -xdev option of find.

man find(1m)

"A position-independent term that causes find to avoid crossing any file system mount points that exist below starting points enumerated in pathname_list. The mount point itself is visited, but entries below the mount point are not. Always true."
****
Unix operates with beer.
Michael Steele_2
Honored Contributor

Re: best practice on increasing VG00 volume group and file systems

LISTEN TO ME

cd /oracle
cp -p -r /new_oracle

Stop freaking out.
Support Fatherhood - Stop Family Law