[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 322
  • Last Modified:

disk partitioning

I run out of space on my /root partition i have a second hard drive installed is there any way to expand the root partition
0
ab_vb2005
Asked:
ab_vb2005
1 Solution
 
PsiCopCommented:
No, there's no way, using the Solaris built-in tools, to re-size a partition without destroying and re-creating it. If you have a filesystem manager (for example, Veritas) then they probably have some tool for that.

What you can do is change things around so that a sub-directory of the root (say, /var, if you didn't put /var on its own partition, or /opt) is a mount point for the new partition, and transfer the files in the current subdirectory to the new partition. You can't just use cp to do this - probably have to use something like cpio or perhaps tar. Its a non-trivial procedure for which you prolly ought to be at Run Level S.
0
 
SumeshDaftaryCommented:
found infodoc and process used to perform the repartition and growing the
ufs file system.

this will show how to resize your partition:

http://sunsolve.sun.com/private-cgi/retrieve.pl?doc=finfodoc%2F17303&zone_32
=partition%20grow%20ufs

once the above is done, you can grow the file system with

/usr/lib/fs/ufs/mkfs -F ufs -M /usr/sapdata3 /dev/rdsk/c0t1d0s3 TOTAL#BLOCKS
0
 
OtetelisanuCommented:
If you have in / the
/opt
you can make:

1. mkdir /newpartition/opt
2. cd /opt
3. cp -rp * /newpartition/opt
4. cd ..
5. rm -r /opt
6. ln -s /newpartition/opt /opt

and you have match space from / to /newpartition/opt

0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
elf_binCommented:
Use growfs (type man growfs for more options).
0
 
SumeshDaftaryCommented:
I agree with elf bin that,

once you go through my link and steps, you are suppose to do growfs on that slice.

0
 
ldwylieCommented:
How are your filesystems partitioned?  Be sure that /var is on a separate filesystem.  You may also want to check /usr, /opt, and /usr/local.
0
 
PsiCopCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Recommendation: PAQ/Award points to SumeshDaftary

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

PsiCop
EE Cleanup Volunteer
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now