Solved

repartition/ swap  Hard Disk without re-installation Solaris

Posted on 2004-09-07
10
466 Views
Last Modified: 2013-12-21
hello all.
my "oracleapp" folder is out of space. "root" and some other directories(var/opt etc) has much space. Is is possible to get some space from "root"  folder and add to "oracleapp" folder?

thanks in advance.
0
Comment
Question by:shahidp
10 Comments
 
LVL 18

Expert Comment

by:liddler
ID: 11996180
What is the output of df -k
and
prtvtoc for each disk (i.e. prtvtoc /dev/dsk/c0t0d0s2)
You may have to backup and wipe a partition before resizing and then restoring, depends on you disk layouts
0
 
LVL 2

Expert Comment

by:stanford_16
ID: 11996337
In addition, can you give us some details about the storage software / hardware?  Specifically:

What type of system is this?
Are the drives internal or part of an array (A1000, A5200 etc.)
Are you using DiskSuite, SVM, or Veritas?
What version of Solaris are you running?
Lastly, the output of this command may be useful:
# /usr/platform/sun4u/sbin/prtdiag -v

Thanks,
A
0
 

Author Comment

by:shahidp
ID: 11996384
i am using solaris 8.
(in short) output of df -k is:

capacity:       Mounted on
-----------      --------------
34%              /
40%              var
94%               oracleapp


i want to get some space from root and add it to oracleapp.
0
 
LVL 18

Accepted Solution

by:
liddler earned 250 total points
ID: 11996489
To take from root you'll almost have to re-install the OS!
For /var
Backup system (at least twice)
boot into single user mode
umount /var and /oracleapp
use format to reduce size of var and increase oracleapp
newfs /var and /oracleapp
restore from backup
reboot

As stanford_16 says, more details would help.
If oracleapp have several directories you could use symbolic links
i.e.
mkdir /spare
ln -s /spare /oracleapp/logs
then anything written to /oracleapp/logs will actually go onto root partition.

However you must be careful with / partition as filling it can be disasterous
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 2

Expert Comment

by:stanford_16
ID: 11997115
liddler's comment includes the best two ways to solve your issue based upon the information you've given us.  If you can give us the resources mentioned above, we may be able to find a way to accomplish your goal w/out using newfs.

Thanks,
A
0
 

Expert Comment

by:palima
ID: 12004184
helo
lidler gave you the best solution , however if you still want to resize the partitions this will cost to reinstall the system

firstly backup the system twice,
use ufsdump command.
then reinstall the system with the new size.  
then restore the system from one of the backups, use ufsrestore -r command.
by this way you can plan for future expansion, you can add other hard disk or replace it with a larger one
add other hard disks for futer expansion
by this way you have extra options but it needs more efort and more advanture

you own the decission
 






 
0
 
LVL 7

Expert Comment

by:glassd
ID: 12036286
How much swap do you have. What partitions do your filesystems use, and where are they located on the disk.

If you have enough swap you could steal some swap. You may be able to add this to oracleapp if you can place it next to swap on the disk. You would have to copy oracleapp off, repartition, remake the filesystem, and copy oracleapp back on again.

Might this work?
0
 
LVL 10

Expert Comment

by:Nukfror
ID: 12037938
Take a look at this.  This original question was related to shrinking swap for adding space to be used for SVM metadb's but the priciple is the same.

http://www.experts-exchange.com/Operating_Systems/Solaris/Q_21064900.html
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Samsung memory install did'nt recognize by new hardware 5 25
AIX Server 10 78
Install MySQL 5.6 and PHP on Centos Linux 6 99
Solaris 4.1.3 cloning and booting 13 71
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now