Resize root disk slices


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Resize root disk slices
# 1  
Old 06-26-2007
Resize root disk slices

I have a Sun box running Solaris 9.

My root disk was slices too small when it was installed and I am now at 99% capacity for my root partition.

Is it possible, and if so how?, to increase the size of slice 0 and decrease the size of slice 7??

Thanks!


Current partition table (original):
Total disk cylinders available: 24620 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 1440 1.99GB (1441/0/0) 4163049
1 unassigned wm 0 0 (0/0/0) 0
2 backup wm 0 - 24619 33.92GB (24620/0/0) 71127180
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 home wm 1441 - 24618 31.93GB (23178/0/0) 66961242
# 2  
Old 06-26-2007
Hi FredSmith,

Looks like you're onto plums unless you can drop the size of that partition #7 (home).

All the space on this disk is already allocated. You would need to either add another disk, or backup everything on partition 7, shrink the partition (see format command) ensuring that you shrink from the 1441 cylinder mark upwards, rather than from the end of the disk downwards, then create a new filesystem (see newfs command) on the new smaller partition. You can then grow your existing root partition (man growfs command).

Hope this helps,

Craig
# 3  
Old 06-26-2007
I can drop the size of partition #7, it's empty. Woudl that allow me to increase root? (Without losing data in root?)

Thanks!
# 4  
Old 06-26-2007
Alternatively use a filesystem in partition #7 and move a number of directories from / into that filesystem.

What root directories do you still have on the root filesystem?

Last edited by porter; 06-26-2007 at 07:11 PM..
# 5  
Old 06-26-2007
if you have a 2nd disk you can use liveupgrade (man lu) to build a new disk (online) with the needed setup. afterwards you only need a downtime to reboot the machine with the new disk.
# 6  
Old 06-27-2007
What can I *safely* move from / to another filesystem in slice #7?

Can /var be moved?
# 7  
Old 06-27-2007
Quote:
Originally Posted by FredSmith
Can /var be moved?
An excellent candidate to move off the root file system.

In theory you should want the root file system to be

(a) minimalist

(b) able to be mounted read/only
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. SCO

Resize root partition

I have SCO Openserver 5.0.5 Root partition is 96% full and I would like to make it bigger. How can this be done? 1) Can I use 'dd' to backup 'root' and then backup '/u' to a third hard disk, then divvy the primary hard disk to have a larger 'root' filesystem (i.e. previous root + u) 2) ... (5 Replies)
Discussion started by: grips03
5 Replies

2. Red Hat

Fdisk reports the old size after disk resize

Hi, I'm running a Red Hat Enterprise Linux Server release 5.3 (Tikanga) on VMWare. It is a production system for which I may not get downtime soon. I happened to resize a underlying disk and the changes are not reflecting in the fdisk ouput. Further details are as follows. The disk which i... (3 Replies)
Discussion started by: maverick_here
3 Replies

3. Solaris

Resize disk space

I am trying to resize my disk space to be bigger on my solaris server (Sun Fire V240) this server and other windows servers are attached to a SAN disks, the disk I want to resize is on the SAN. I have free space on the SAN disks so I added some space to the windows disks and I made some... (8 Replies)
Discussion started by: sofihdi
8 Replies

4. Red Hat

How to RESIZE / root partition in RHEL5 (VM)?

Hi Team, Require your expertise on how to resize / partition. This is VM. Thank you. Reggy # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 15G 13G 556M 96% / /dev/sda1 965M 43M 873M 5% /boot tmpfs 502M 0 ... (5 Replies)
Discussion started by: regmaster
5 Replies

5. Solaris

Partitioning hard disk. Want 8 slices...have 9

Hi all I'm having difficulty setting up a proper disk structure on a 72GB HDD. The drive was previously part of a zfs pool. The zpool has ben destroyed and now I want to use the disk in a raid 5 array. I need to partition the disk accordingly though. This is what the partition table currently... (7 Replies)
Discussion started by: notreallyhere
7 Replies

6. SuSE

Resize Root Filesystem in SUSE Linux

Hello Experts, I am very new to unix environment. Root filesystem in one of our Linux boxes has almost reached 100%. is there a procedure/ way to resize the root filesystem. ****************************************************** ld8331:/ # df -h|more Filesystem Size Used... (2 Replies)
Discussion started by: ashok1784
2 Replies

7. Solaris

mirroring root disk using svm - but no free slices for metadb's

Hi all, we have an existing system that was configured using just one of the (two) internal disks. I want to mirror the disk using SVM, but have realised there is no free slice for creating the metadb's. Is there a workaround I can use for this? In the past we have always kept slice 7 free -... (8 Replies)
Discussion started by: badoshi
8 Replies

8. UNIX for Dummies Questions & Answers

new disk slices

How do I create new disk slices taking space from an existing slice? Right now I have slice 6 (/usr) with 16G. I'd like to create slices 5 (/opt) and 7 (/export/home) and steal space from slice 6. Thanks (3 Replies)
Discussion started by: kmgrady01
3 Replies
Login or Register to Ask a Question