Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Solaris partitioning

Status
Not open for further replies.

DFM

Technical User
Oct 30, 2001
30
0
0
US
Is there anyway to increase the size of "/"?....I have a 18GB drive and need to free up space for other software. Any help would be greatly appreciated
 
is /opt, /var and /usr independant filesystems or part of /
 
I believe they are...But I would like to verify this. If so, How do I accomplish this?
 
cd /usr ( or whatever )

df -k .

if its mounted on /usr then it is its own filesystem
if its mounted on / then its part of the / filesystem
 
It would take a bunch of typing to give you this step by step with all the syntax
here is the short version

find a free partition on one of your disks ( format)
make the partition the appropriate size
newfs the cXtXdXsX
mount that partition as /opt.new
copy /opt into /opt.new
cd /opt
find . -depth |cpio -pvdum /opt.new
edit your vfstab file and change the entry for /opt to use the new device /dev/dsk/cXtXdXsX and/dev/rdsk/cXtXdXsX
reboot
 
can you do a 'df -F ufs -k' and post it here?

then for each of your disks can you 'format' then 'partition' and paste them here as well ...

we'll see if we can work it out for you from there.

Jon
 
This box is going to be used for OpenView only, There is another proprietary telecom protocol conversion software i'm going to run on it and thats it. I'm interested in allocating as much space as I can to "/". You folks are great for advising me along like this.

Df –k shows

Kbytes used avail capacity mounted on
/dev/dsk/c0t0d0s0 629055 626876 0 100% /
/proc 0 0 0 0% /proc
/fd 0 0 0 0% /dev/fd
/dev/dsk/c0t0d0s7 16236975 9 16074597 1% /export/home
swap 1323936 216 1323720 1% /tmp
/vol/dev/dsk/cot6d0 16566 16566 0 100% /cdrom/netscape
 
hmm ... 16Gb in /export/home ... do you have any directories in /export/home?

please can you past in the partition information?

jon
 
I am a telecom guy folks, please forgive if i'm not posting the right info. This is Solaris 2.6 running on a Sun Ultra 80. It's going to be used as a protocol converter and basically nothing else. I'm interested in gaining all the space in / as I can. Thanks for all your help.


/ /dev/dsk/c0t0dos0 4358 blocks 282031 files
/proc /proc 0 15967 files
/dev/fd fd 0 0 files
/export/home /dev/dsk/c0t0d0s7 32473932 1980348
/tmp swap 2646544 171077
 
do you feel like reinstalling the whole system,if you want to use it for a different purpose it might not be such a bad idea ... otherwise you can try changing your /export/home partition into 3 partitions ...

to get the partition info type (as root):

format <return>
0 <return>
partition <return>
print <return>
quit <return>
quit <return>

and paste in the list of parts, blocks and sizes ... (produced by the 'print')
 
It looks like you got lucky on that one. Your /usr and /opt are on the / partition, so the best thing to repartion your /export/home into 3 partitions. Then you can copy & remove the directories from / to create the needed space.
 
0 root wm 223-506 653.42MB (284/0/0) 1338208
1 swap wu 0 -222 513.07MB (223/0/0) 1050776
2 Bkup wm 0-7505 16.86GB (7506/0/0) 35368272
3 Unassigned
4 Unassigned
5 Unassigned
6 Unassigned
7 home 507-7505 15.73GB (6999/0/0) 32979288


Thank you all for your continued attention to my lack of knowledge.
 
brilliant ...

umount /export/home

format
0
partition
3
usr
wm
507
1500
4
var
wm
1501
3300
7
home
wm
3301
7505
label
save (might have to quit before this)

then you'll have to 'newfs' the 3 partitions that we've just created ...

but after that we can do the clever backup/restore onto the new partitions
 
0 root wm 223-506 653.42MB (284/0/0) 1338208
1 swap wu 0 -222 513.07MB (223/0/0) 1050776
2 Bkup wm 0-7505 16.86GB (7506/0/0) 35368272
3 usr wm 507-2006 3.37GB
4 var wm 1501-4800 7.41GB
5 Unassigned
6 Unassigned
7 home 3301-7507 9.45GB (6999/0/0) 32979288

There....I had done some previous monkeying around with the /home, but I think the space is now allocated to my needs. Let us proceed...


 
Hey,
Wait a minute....u haven't configured it correctly...
Jad had marked /var to use cylinders till 3300 but u have used till 4800 for that and from 3300 to 4800 there is overlapping with /home and overlapping is there bet /usr and /var as well.So do as Jad has written or make changes accordingly......
 
ik ... see what happens when you go off sick for a day?

i thought i'd do it the way i did so it'd be easy to work with ...

ok ... this'll require you to look at the print screen each time you want to make a partition.

format
0
partition
3
usr
wm
507
2gb
print
<-- check out the number after the minus ... something like 507-1500 ... add 1 to it ... giving 1501 then:
4
var
wm
*1501* <-- insert that number here.
3gb
<-- check out the number after the minus ... something like 1501-3300 ... add 1 to it ... giving 3301 then:
7
home
wm
3301
<just return should give you the rest here ... i think>
label
save ...

i really hope this works :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top