Increase root partition by moving starting cylinder


 
Thread Tools Search this Thread
Operating Systems Solaris Increase root partition by moving starting cylinder
# 1  
Old 03-16-2011
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 starting cylinder. My concern is if moving the starting cylinder of root will cause some problems with Solaris. Cylinders 526-54422 seem to unallocated and should be able to use. I was thinking if I can move the starting cylinder and increase it then I can use growfs command on root partition to expand the size.


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

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm   54423 - 60796       48.83GB    (6374/0/0)  102398310
  1       swap    wu       3 -   525        4.01GB    (523/0/0)     8401995
  2     backup    wm       0 - 60796      465.73GB    (60797/0/0) 976703805
  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 unassigned    wm       0                0         (0/0/0)             0
  8       boot    wu       0 -     0        7.84MB    (1/0/0)         16065
  9 alternates    wu       1 -     2       15.69MB    (2/0/0)         32130

I guess my main question is if moving starting cylinder of my root partition be harmful to the system even though I have plenty of unallocated space to use.

Last edited by pludi; 03-16-2011 at 04:44 PM..
# 2  
Old 03-16-2011
The man page for growfs states:
Code:
                                               The following con-
     ditions  prevent  you from expanding file systems: When acct
     is activated and the accounting file is on the  target  dev-
     ice.  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.

Since you are talking about root, I think you're in trouble right there. But growfs is for ufs filesystems. I assume you have a ufs root? If it's zfs then I will have to defer to someone else. I have never used zfs.
# 3  
Old 03-16-2011
Yes, it is ufs root. I've only created slices or partitions on a device, but it would seem that expanding the root and using growfs would be a solution only if moving the starting root partition was valid option. I've read others successfully doing so, but my situation may be different. If all else I guess I could just make another slice of a partition, but then that would require me to move directories/files over and renaming.
# 4  
Old 03-16-2011
I think you can create a new partition on that disk and do a live upgrade that uses the new partition as its root disk.

Code:
man live_upgrade

# 5  
Old 03-17-2011
Perhaps adding a slice and creating a new partition mount might be the safer alternative. I was hoping to expand root, but not at the risk of jeapordizing the system. Seems like a waste of space that is not used just sitting there.
# 6  
Old 03-17-2011
how about a backup of your system with a flasharchive and a "new" install from the flasharchive with a new filesystem layout?
# 7  
Old 03-17-2011
Quote:
Originally Posted by mjaminal
I was thinking if I can move the starting cylinder and increase it then I can use growfs command on root partition to expand the size.
This won't work as growfs can only expand a file system if space is added at the end of it, not before.
As you have plenty of free space available, you can simply create a ~400 GB slice 3, then dump/restore slice 0 to it, then make s3 your boot partition.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

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: http://i.imgur.com/9ywWLNN.png thanks for... (5 Replies)
Discussion started by: guy3145
5 Replies

2. Red Hat

Warning: extended partition does not start at a cylinder boundary.

Can you please help me to remove this error. Disk /dev/sda: 64.4 GB, 64424509440 bytes 255 heads, 63 sectors/track, 7832 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk... (4 Replies)
Discussion started by: karthik9358
4 Replies

3. 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

4. Solaris

Partition 0 not aligned on cylinder boundary: "

hi Guys .. user want mirror disk c3t9d0 (running ) to c2t9d0 (fresh hdd). when i tried to bash : prtvtoc /dev/rdsk/c3t9d0s2 | fmthard -s- /dev/rdsk/c2t9d0s2 it showing following error Partition 0 not aligned on cylinder boundary: " 0 4 222 ..... unable to mirror .... plz... (1 Reply)
Discussion started by: coolboys
1 Replies

5. 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

6. 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

7. 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

8. 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

9. 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

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