LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 09-17-2008, 09:55 AM   #1
smartgupta
Member
 
Registered: Sep 2008
Posts: 81

Rep: Reputation: 15
Can be changed the allocated space


i am working with solaris 9 and my disk usages are

# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 2148263 1902721 202577 91% /
/proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
fd 0 0 0 0% /dev/fd
swap 371992 32 371960 1% /var/run
swap 372272 312 371960 1% /tmp
/dev/dsk/c0t0d0s7 36317277 86239 35867866 1% /export/home


means c0t0d0s0 had been filled by 91% and c0t0d0s7 is only 1%.

So my question is that can I increase the space of c0t0d0s0 by distracting it from c0t0d0s7 ??

is it then how can I do it ??

thanks in advance...
 
Old 09-18-2008, 08:57 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by smartgupta View Post
i am working with solaris 9 and my disk usages are

# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 2148263 1902721 202577 91% /
/proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
fd 0 0 0 0% /dev/fd
swap 371992 32 371960 1% /var/run
swap 372272 312 371960 1% /tmp
/dev/dsk/c0t0d0s7 36317277 86239 35867866 1% /export/home


means c0t0d0s0 had been filled by 91% and c0t0d0s7 is only 1%.

So my question is that can I increase the space of c0t0d0s0 by distracting it from c0t0d0s7 ??

is it then how can I do it ??

thanks in advance...
You can, but you'll probably lose all the data in /export/home when you re-write the partition table. I'd look in / first, since you've probably got all your log files and everything else under it, based on this, and see what you can remove. You can probably free up a good amount of space.

This page http://devnull.typepad.com/devnull/2...is-how-to.html can give you some tips, but be SURE you have a GOOD backup first.
 
Old 09-18-2008, 03:21 PM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Here is one way to do it:
create /export/home-slash
move /export/home/* to /export/home-slash
unmount /export/home
remove /export/home from vfstab
remove /export/home directory
rename /export/home-slash to /export/home
save the disk vtoc to an external media just in case
boot on an installation CD/DVD and launch a shell from it
move all data from slice 0 to slice 7 with dd
extract the disk vtoc to a file
edit the file and swap slice 0 and slice 7
overwrite the disk vtoc
reboot ...
If everything is ok, create a new filesytem on slice 7, a mount point for it and add it to your vfstab

Of course, this is quite tricky and there are several steps where mistakes can be disastrous for all of your data.

Alternatively, could merge slice 7 to slice 0 and growfs while on the boot shell.

Finally, if you have external storage space, backup (ufsdump) both of your slices, recreate a single one and restore from the backup.
 
Old 10-02-2008, 05:41 PM   #4
popowich
Member
 
Registered: Nov 2004
Location: Rochester, New York
Distribution: RHEL7
Posts: 53

Rep: Reputation: 15
Can you remove or /dev/null some files under /var/tmp or logs under /var/adm /var/log to free up some space? Any other logs? 40GB is a lot for a solaris install. Even with the second largest install option you can do it for far less than 20GB. Sounds like you might be able to get yourself temporarily out of trouble by cleaning up logs and stuff. Can't hurt to look for core files and that sort of thing too.

-Raymond
 
Old 10-02-2008, 07:57 PM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
According to df output, the OP has Solaris installed on 1.9 GB, not 40 GB. I doubt much space is wasted there.
 
Old 10-02-2008, 08:23 PM   #6
popowich
Member
 
Registered: Nov 2004
Location: Rochester, New York
Distribution: RHEL7
Posts: 53

Rep: Reputation: 15
Oops, brain fart, I registered some bad info in my head from the duplicate thread here.

-Raymond
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installed Ubuntu but it changed my boot loader. I want this changed... mdorries Linux - Distributions 8 05-31-2007 08:13 PM
[C] get allocated size Ephracis Programming 6 12-29-2006 09:55 PM
Increasing hard-disk space allocated to user guam Linux - General 10 03-01-2005 07:31 AM
About allocated memory in C++ Ephracis Programming 2 12-28-2004 02:56 AM
allocated space of a directory Dave31836 Programming 8 10-04-2004 06:07 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 09:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration