Operating System - HP-UX
1748276 Members
4121 Online
108761 Solutions
New Discussion юеВ

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

 
SOLVED
Go to solution
Kapil Jha
Honored Contributor

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

rsync is the utlity which sync one directory with other (copies) directory remotelty/locally.

Its good option to save downtime because lot of copying would be completed while your system is running.

You will have to install rsync if not alreay installed.

http://www.samba.org/rsync/documentation.html

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

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

thanks guys!

Actually we have file systems like /oracle , /oracle/a , oracle/b and /oracle/c . What would be the proper steps to move only /oracle out of VG00 to non VG00? /oracle/a , oracle/b and /oracle/c file systems are already non VG00.
Kapil Jha
Honored Contributor

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

http://www.docs.hp.com/en/B9106-90003/ch04s01.html


docs.hp.com is your friend.

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

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

>What would be the proper steps to move only >/oracle out of VG00 to non VG00? /oracle/a , >oracle/b and /oracle/c file systems are >already non VG00.

Then check its size with bdf, maybe there's not so much data in /oracle itself and a migration isn't worth to do.
****
Unix operates with beer.
HPquestion
Regular Advisor

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

I just want to save 15 gig out of /oracle in VG00.

Kapil mentioned ...

1. create a new filesystem with name /abc rsync it with /oracle.

2. shutdown oracle, rsync again (would take very lil time).

3. rename /oracle as /oracle_old and /abc to /oracle. Then start oracle.

4. remove /oracle_old from vg.

As I have /oracel/a , /oracle/b etc , how can I rename /oracle as /oracle_old as other file system will be impacted ? What should I do in this case?

Steven E. Protter
Exalted Contributor

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

Shalom,

Best practice is that only OS information go in vg00.

Oracle applications and such should be in their own volume group. Data should be in yet another volume group.

In this scenario, I would plan some down time, back up the applications. I would then set up a new volume group for them and logical volumes and file systems. Then I would restore the data.

You can't keep adding disks to vg00. Eventually it will exceed the size of a single tape and make recovery a difficult, if not impossible situation.

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
HPquestion
Regular Advisor

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

Thanks!

New volume groups and logical volumes are all ready. My question is how am I going to mount the new logical volume at /oracle without disturbing non VG00 /oracle/a , oracle/b file systems?

If I unmount /oracle , will the current logical volume data located @ /oracle show up in / file system?
Michael Steele_2
Honored Contributor

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

Thanks!

"...how am I going to mount the new logical volume at /oracle without disturbing non VG00 /oracle/a , oracle/b file systems?..."

Stop oracle and all other applications or other processes on the file system.

Make a temporary mount point (* mkdir /temp_oracle *)

mount the new lvol under /temp_oracle

cd old file system
cp -p -r new file system

umount both old and new file systems

mount new lvol on old mount point.

cp /etc/fstab /etc/fstab_old
update /etc/fstab

repeat for all new lvols

Once verified in 2-3 days by users, lvremove the unneeded lvols out of vg00, thereby reclaiming the space.

Note: Until your database and application are back up and an actual write operation has taken place, or even for the first day of work, you can roll back to the old lvols. This should be presented as an option to mgmt and a point of no return determined. When you reach that point, lvremove as indicated above.
Support Fatherhood - Stop Family Law
HPquestion
Regular Advisor

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

Thanks!


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

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

hi ,

First of all you may please assingn points to the people who replied to your previous queries ;)

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie