Operating System - HP-UX
1826062 Members
3878 Online
109690 Solutions
New Discussion

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

 
SOLVED
Go to solution
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
Viktor Balogh
Honored Contributor
Solution

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

Michael, you forgot the source with that cp. But our problem is, that there are some other filesystems mounted under /oracle, like /oracle/a. And as these are residing on SAN disks, he doesn't want these to get copied. That's why I suggested find -xdev.
****
Unix operates with beer.
HPquestion
Regular Advisor

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

Thanks for all your help.

Sorry I didn't mean to confuse or irritate anybody here. I am sure I didn't communicate well this matter.

Viktor understood my copy requirement.
/oracle/a , /oracle/b .../oracel/n etc are filesystems mounted on its own logical vloumes and they are on the SAN disk. Those folders contains the actual database data ( near tearbyte).

/oracle has the oracle software . I just want to move the oracle software out of VG00 to save 15gig there.
Kapil Jha
Honored Contributor

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

Hi,

Did you had a look over rsync there is a option with which you can copy only /oracle filesystem data to other folder.

After copying you will have to shutdown oracle, umount other file systems(inside oracle) if they still mounted, rename and reboot.
Nothing else required because new directories would be created by rsync.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Kapil Jha
Honored Contributor

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

man rsync

-x is the option.

BR,
Kapil+
I am in this small bowl, I wane see the real world......