System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

best practice on increasing VG00 volume group and file systems

SOLVED
Go to solution
HPquestion
Regular Advisor

best practice on increasing VG00 volume group and file systems

We have couple of application software installed in VG00. Problem is that, there is not much space left in VG00 to grow this these file systems ( /oracle for example ).

For the database data, we have different volume group and that points to the HP EVA storage , so we are okay there.

What are the best practices on increasing VG00 fvlolume group and file systems sizes? How can we handle the growth of the application software file systems in Vg00?

Thanks for all your help on this!
33 REPLIES
Kapil Jha
Honored Contributor

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

/oracle in vg00 sounds lil strange, it should not be at all.

Well best practice is to re-ignite the server with new file system size layout.
There some some unsupported methods you should not use.

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

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

Hi,

Best practice is keeping a single disk and only OS lvols in VG00.

Please avoid keeping other filesystems like "oracle".

Increasing the size of filesystems,

check available free space and increase accordingly. How ever you will not be able to increase stand, root and the swap easly.
If you think you need more space for some applcation related files please keep separate mount points.

* before doing any activity on VG00 and its lvols, you may please take latest Ignite backup

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

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

Yes, VG00 was messed up by our previous team. What are the standard ways to move
/oracle file system from Vg00 to a non VG00 volume group ?
SoorajCleris
Honored Contributor

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

Hi ,

Shutdown your database/application which ever using /oracle.

Take full backup.

create a new filesystem with enough space on some other lv(VG)

mount it on /oracle.

Restore the backup. verify

remove the oracle LV from vg00.

Regards,
Sooraj

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

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

Always ask to give action plan from your tech support team !!

This is a suggetion- stay away from paying with production server :)

"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Kapil Jha
Honored Contributor

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

Yups its better to move /oracle to other filesystem rather than re-igniting the server.

To reduce down time
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.

U have lot of free space now ;)

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


Ok. Did you mean the following stes?

Shutdown oracle apps and datbase

take backup of /oracle

create new file system

rm -rf /oracle

unmount /oracle

mount /oracle in the new file system

drop old oracle lv


Thanks!

HPquestion
Regular Advisor

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

thanks guys. what is rsync? How to do that?
SoorajCleris
Honored Contributor

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

Please .. NO

rm -rf ... I hate this command ..

"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
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
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.