Operating System - Linux
1753588 Members
6442 Online
108796 Solutions
New Discussion юеВ

Re: safest way to backup and move Oracle HOME and clusterware contents

 
iinfi1
Super Advisor

safest way to backup and move Oracle HOME and clusterware contents

hi all.

we are running oracle 10g R2 RAC on two node Itanium systems and the underlying OS is SLES 10 SP2 (SuSe)
on one node we are running short of space in the two partitions which contain clusterware files and Oracle HOMEs and 4 database instances running on the RAC.
the oracle home and clusterware files are in the local HDD of the OS and not on SAN.
since the partitions are not LVM i will have to
1. Shutdown the instances on the said node
2. Stop clusterware services
3. Do a tar of the two moutpoints on another drive (i have some space in one OCFS partition to do this)
4. Unmount the two mountpoints
5. Re-create the partitions
6. Size it as needed
7. mount them with the same names
8. Extract the tar
9. Start Cluster and db services.

I think what i m doing is correct.
what i need to know is, whether i can use the following for step 3

db2:# tar -czvf /ocfs2/mntpt1.tar.gz /mtpt1/
db2:# tar -czvf /ocfs2/mntpt2.tar.gz /mtpt2/

will doing a tar this way RETAIN the permissions of the files in the two mountpoints and i would have no issue while i restart the cluster services?
thank you
3 REPLIES 3
iinfi1
Super Advisor

Re: safest way to backup and move Oracle HOME and clusterware contents

what does this mean in the tar manpage
-p
When `tar' is extracting an archive, it normally subtracts the
users' umask from the permissions specified in the archive and
uses that number as the permissions to create the destination
file. Specifying this option instructs `tar' that it should use
the permissions directly from the archive. *Note Writing::.

i had posted the same on oracle forums also and strangely got no reply :|
Dennis Handly
Acclaimed Contributor

Re: safest way to backup and move Oracle HOME and clusterware contents

>what does this mean in the tar manpage: -p

This shouldn't be needed if you are root. Otherwise -p is needed to preserve the original permissions/ownership.

iinfi1
Super Advisor

Re: safest way to backup and move Oracle HOME and clusterware contents

thank you for the confirmation. :)

have a nice day