Solved

Re-allocation of disk space on SUN Solaris 10

Posted on 2008-10-24
3
1,342 Views
Last Modified: 2013-12-01
Currently we have the following file systems on the sun system.

Filesystem                  size    used   avail     capacity        mounted on
/dev/dsk/c0t0d0s3      4.3G   3.9G   391M    92%              /usr
/dev/dsk/c0t2d0s1       37G    25G    12G    69%               /usr2

We need to increase the disk space in /usr. Is it possible to re-allocate the disk space from /usr2 which has 12GB available? and whether it can be done by the internal team rather than SUN support.

Version : SUN Solaris 10

Thanks in advance.
0
Comment
Question by:d_lalit
  • 2
3 Comments
 
LVL 38

Expert Comment

by:yuzh
ID: 22801288
If you have someone with enough experiences with Unix,  you can do it by yourself.
Since /usr and /usr2 are sitting in two different hard drive, if you don't want to resize both
disk (which required t back up all data in c0t0d0 and c0t2d0), you can use "ln" to borrow some disk space from /usr2.
eg:
if you want use use disk space for /usr/local, you can do:
# transfer the data from /usr to /usr2
cd /usr
tar cf - local | (cd /usr2 ; tar xf -)
# remove local in /usr
rm -rf  /usr/local
# borrow the disk space from /usr2 use "ln"
ln -s  /usr2/local /usr/local
after the about actions, all your data for /usr/local is using the disk space in /usr2 (/dev/dsk/c0t2d0s1).

 
0
 
LVL 3

Expert Comment

by:Saranyakkali
ID: 22806563
no you cont, once it created with file system for usr2 and it is that possible with Veritas only.

Thanks
0
 
LVL 38

Accepted Solution

by:
yuzh earned 100 total points
ID: 22810216
You can also add another HD to the box and use part of the new drive as /usr, partion the new hard drive, (and run newfs to create a new UFS fileststem to the partition, tansfer all the data in /usr to the new HD (usfdump/ufsrestore), change the mount point in /etc/vfstab to use the new hard drive.  Or you can partion  the
new hard drive with the same number of partitin as c0t0d0 (make the partition size as the way to wanted) ufsdump/ufsrestore the data from c0t0d0 to the new drivepertition by partition, the run installboot to the new HD, shutdown the box and power off. take the old c0t0d0 out and move the new drive to the c0t0d0 position.
power it back on.  you system will have a better layout for c0t0d0.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

759 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

23 Experts available now in Live!

Get 1:1 Help Now