Increase the / partition


 
Thread Tools Search this Thread
Operating Systems Solaris Increase the / partition
# 1  
Old 03-27-2016
Increase the / partition

Hi all

im new to solaris and i got the task to increase the size of the / partition.
its solaris 9 update6 running in a vmware esxi. i already added space on the VM, when im trying the "growfs" command im gettings error. see attached picture:

Image

thanks for helping...
# 2  
Old 03-27-2016
According to the man page you need to use the raw device (so the corresponding raw device would be/dev/rdsk/c1t0d0s0)

But the man page for growfs also says:
Code:
LIMITATIONS
       Only  UFS file systems (either mounted or unmounted) can be expanded using the growfs com-
       mand. Once a file system is expanded, it cannot be decreased in size. The following condi-
       tions  prevent  you from expanding file systems: When acct is activated and the accounting
       file is on the target device. When C2 security is activated and the logging file is on the
       target  file  system.  When there is a local swap file in the target file system. When the
       file system is root (/), /usr, or swap.


Last edited by Scrutinizer; 03-27-2016 at 11:58 AM..
# 3  
Old 03-27-2016
Growing / is doable, you just need to boot to a different boot media, for example an Solaris installation CD.

The main issue is your first need to repartition and relabel your disk for the slice that contain the root file system to have its size increased. Growing the whole disk is not enough.
# 4  
Old 03-28-2016
this is the output im getting after adding the "r" im not getting back the prompt, i waited more than 15 hours.
Image

---------- Post updated at 03:10 AM ---------- Previous update was at 01:30 AM ----------

Hi jlliagre
"repartition and relabel your disk for the slice that contain the root file system to have its size increased"
how do i do that?

---------- Post updated at 03:10 AM ---------- Previous update was at 03:10 AM ----------

Hi jlliagre
"repartition and relabel your disk for the slice that contain the root file system to have its size increased"
how do i do that?
# 5  
Old 03-28-2016
There is no point "growing" a file system located on a slice that has its size unchanged.

Before attempting to enlarge its slice, you first need to know how the slices and partitions are laid out on your disk. Post these commands output:

Code:
fdisk -G /dev/rdsk/c1t0d0p0

echo 6 | fdisk /dev/rdsk/c1t0d0p0

fdisk -v -W - /dev/rdsk/c1t0d0p0

prtvtoc /dev/rdsk/c1t0d0s2

# 6  
Old 03-28-2016
the last picture is the result of the "echo" command.
Image
Image
Image
Image
Image
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Shrink LVM partition & create new Linux Primary partition

Hello All, I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows, /boot - Linux Partition & another is LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc). Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Discussion started by: gr8_usk
5 Replies

2. Linux

How to increase root space from another partition?

Hi OS Experts I would like to increase root partition from another partition so that I can save more documents in Home and Desktop. whether it is possible without formating root partition if so please explain here is o/p of df -h Filesystem Size Used Avail Use% Mounted on /dev/sda9... (8 Replies)
Discussion started by: Akshay Hegde
8 Replies

3. Red Hat

increase root partition

i am using redhat 5.4 and my root size shows 98 %, how can i increase root size # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 77G 16G 75G 98% / /dev/sda1 2.4G 82M 2.2G 4% /boot tmpfs 3.8G 0 3.8G 0%... (8 Replies)
Discussion started by: reply.ravi
8 Replies

4. Red Hat

Increase root partition in LVM

I have a RHEL6 guest running on vmware esx server and the root disk size is 30G and i increased the disk size and create another partition /dev/sda3 but i do not know how to increase the size of the VG and then intrun LV .. can anyone help me on this . fdisk -l /dev/sda Disk /dev/sda:... (1 Reply)
Discussion started by: fugitive
1 Replies

5. Solaris

Increase root partition by moving starting cylinder

I am trying to expand the root partition on Solaris 10. I can expand root partition using format/partition command, but usually increasing cylinders on partition is done on back end. In this case I would have to expand from the front end following the table below, meaning I would have to move the... (12 Replies)
Discussion started by: mjaminal
12 Replies

6. Red Hat

Increase Linux partition size

Hi All, this should be probably a already asked question but highly appreciate if someone can guide me on this i have a business critical linux system (which is running a SMS system) where one of it's partition size is shrinking i want to know the possible options of increasing the size of... (4 Replies)
Discussion started by: asela115
4 Replies

7. HP-UX

Increase of partition Size In HP-UX

Experts, I want to know how to increase partion size in Hp-ux.Actually we installed oracle in separate part ion.As increase of database went to 99% :eek:.What ever data which is in it is important.so i dont want to delete any data in that partion.Now the size of that is 250 GB.I want the same to... (2 Replies)
Discussion started by: naveennella
2 Replies

8. Solaris

how to increase size of the root partition

Hi we have a sunfire v880 server . we have a problem with root partion it showing 90% full. so anyone can help me how to increase the size of that partion. NOTE: It is not in veritas & SVM control. Regards prakash (6 Replies)
Discussion started by: pshelke
6 Replies

9. UNIX for Dummies Questions & Answers

I've created a partition with GNU Parted, how do I mount the partition?

I've created a partition with GNU Parted, how do I mount the partition? The manual information at http://www.gnu.org/software/parted/manual/parted.html is good, but I am sure about how I mount the partition afterwards. Thanks, --Todd (1 Reply)
Discussion started by: jtp51
1 Replies

10. AIX

Increase a logical partition

hello I have a volume group of 737 Go (EMC) To add 250 Go, i split the 250 Go to 2*125 No problem to add in the volum group, but when i want to increase the size of the logical volume, i have the message : 0516-787 extendlv: Maximum allocation for logical volume simdatabaselv is... (3 Replies)
Discussion started by: pascalbout
3 Replies
Login or Register to Ask a Question