LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-01-2012, 02:41 AM   #1
solaris10
LQ Newbie
 
Registered: Jul 2012
Posts: 12

Rep: Reputation: Disabled
Increase the size of existing partition on Solaris 10.


Hello,
I am newly joined to this forum. Need advise on how to increase the size of a partition on Solaris 10 Server post the installation process. My requirement is, Server is installed with OS now I have change the partition size by dropping few and increasing the other by acquiring the blocks from the dropped ones.

Server Spec: Sparc 420R with 2 HDD 300GB each. Os - Solaris 10(installed) each disk is sliced to 7. Randomly partitions(size) got created.

Please do pint me the thread, if it this is already discussed.
 
Old 07-01-2012, 03:28 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,479

Rep: Reputation: Disabled
Hello, welcome to LQ.

If your file system is UFS you could try gparted, which can be used a live cd or usb key.

Last edited by Didier Spaier; 07-01-2012 at 03:29 AM.
 
Old 07-01-2012, 05:07 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,781

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
Unfortunately, gparted doesn't support growing UFS.

If you use UFS, backup all valuable data you might already have created then reinstall the OS and select a single ZFS pool using all the available disk.
 
Old 07-01-2012, 05:52 AM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,479

Rep: Reputation: Disabled
Sorry, I should have checked before answering
 
Old 07-01-2012, 08:31 AM   #5
solaris10
LQ Newbie
 
Registered: Jul 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thank you for the comments.

I tried to re-install OS on the machine, but it failed due to DVD drive problem. I used to see a message whenever I type " (0) OK boot cdrom "Can't open DVD device" I believe this is an hardware issue.

Could you please get me some reference on NETWORK based installation for the same. I mean System requisite to start network based installation?
 
Old 07-01-2012, 09:08 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,781

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
http://docs.oracle.com/cd/E23823_01/...preface-1.html
 
Old 07-04-2012, 12:47 AM   #7
solaris10
LQ Newbie
 
Registered: Jul 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks!

How long the media verification take place. I did format of required disk using the "format" command. On the screen it say "Format complete" as below
format> format
Ready to format. Formatting cannot be interrupted
and takes 362 minutes (estimated). Continue? y
Beginning format. The current time is Tue Jul 3 15:38:42 2012

Formatting...
97% complete (00:04:59 remaining) done

Verifying media...
pass 0 - pattern = 0xc6dec6de

It is running for almost 14 hours by now. Not completed. any idea?
 
Old 07-04-2012, 01:03 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,781

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
This looks too long. You might have hardware issues. Why did you reformat the disk ? Disks are always already formatted by their manufacturer.
 
Old 07-04-2012, 01:11 AM   #9
solaris10
LQ Newbie
 
Registered: Jul 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
we just wanted to remove all the existing partition and make it as one,so we reformatted it .
 
Old 07-04-2012, 02:56 AM   #10
solaris10
LQ Newbie
 
Registered: Jul 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Now the format is complete. My concern is to combine two partitions into one. Please find the below

Part Tag Flag Cylinders Size Blocks

2 backup wu 0 - 45264 279.38GB (45265/0/0) 585910160
6 usr wm 42 - 45264 279.12GB (45223/0/0) 585366512

above TWO parts needs to be combined together. Could you please help me on this?
 
Old 07-04-2012, 03:30 AM   #11
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,781

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
Quote:
Originally Posted by solaris10 View Post
we just wanted to remove all the existing partition and make it as one,so we reformatted it .
There was no need to reformat the disk. (Low-level) formatting is the process that create tracks and sectors on the disk.
 
Old 07-04-2012, 03:32 AM   #12
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,781

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
Quote:
Originally Posted by solaris10 View Post
Now the format is complete. My concern is to combine two partitions into one. Please find the below

Part Tag Flag Cylinders Size Blocks

2 backup wu 0 - 45264 279.38GB (45265/0/0) 585910160
6 usr wm 42 - 45264 279.12GB (45223/0/0) 585366512

above TWO parts needs to be combined together. Could you please help me on this?
They are already combined. Just use slice 6 for your needs. Slice 2 is by convention the whole disk and shouldn't be used to create a file system or whatever.
 
Old 07-04-2012, 10:21 PM   #13
solaris10
LQ Newbie
 
Registered: Jul 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Would like to get clarify the following.
1. /opt will be used to install optional packages - correct?
2. i have disk 0 which is partitioned like below
/dev/dsk/c0t0d0s0 15G 444M 15G 3% /
/dev/dsk/c0t0d0s3 9.9G 3.2G 6.6G 33% /usr
/dev/dsk/c0t0d0s4 48G 139M 48G 1% /var
/dev/dsk/c0t0d0s5 48G 357M 47G 1% /tmp
/dev/dsk/c0t0d0s6 3.9G 1.3G 2.6G 34% /opt

Will I be able to increase size of /opt by reducing some disk space from any of the above? Will that work?
3. iostat -En shows some hard errors, what that really mean ex:
c0t1d0 Soft Errors: 1 Hard Errors: 1938 Transport Errors: 0
Vendor: SEAGATE Product: ST3300007LC Revision: 0005 Serial No:
Size: 299.99GB <299992629248 bytes> - Could you please comment on it?
 
Old 07-05-2012, 03:50 AM   #14
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,781

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
Quote:
Originally Posted by solaris10 View Post
Would like to get clarify the following.
1. /opt will be used to install optional packages - correct?
Usually but not necessarily.
Quote:
2. i have disk 0 which is partitioned like below
/dev/dsk/c0t0d0s0 15G 444M 15G 3% /
/dev/dsk/c0t0d0s3 9.9G 3.2G 6.6G 33% /usr
/dev/dsk/c0t0d0s4 48G 139M 48G 1% /var
/dev/dsk/c0t0d0s5 48G 357M 47G 1% /tmp
/dev/dsk/c0t0d0s6 3.9G 1.3G 2.6G 34% /opt

Will I be able to increase size of /opt by reducing some disk space from any of the above?
Yes but this will be more or less complex depending on the partition layout.
Quote:
Will that work?
If you have enough disk space elsewhere to backup the filesystem(s) that will need to be recreated, yes.
Quote:
3. iostat -En shows some hard errors, what that really mean ex:
c0t1d0 Soft Errors: 1 Hard Errors: 1938 Transport Errors: 0
Vendor: SEAGATE Product: ST3300007LC Revision: 0005 Serial No:
Size: 299.99GB <299992629248 bytes> - Could you please comment on it?
That's odd. Have a look at the system logs (dmesg) to see what blocks are in cause.
 
Old 07-11-2012, 01:33 AM   #15
solaris10
LQ Newbie
 
Registered: Jul 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks for helping on this. We re-formatted again followed by a reboot. Now we are not seeing any hard errors or soft errors which we reported earlier.

We have below query. Out HDD total size is 300GB
Part Tag Flag Cylinders Size Blocks
0 root wm 3565 - 6805 20.00GB (3241/0/0) 41951504
1 swap wu 0 - 1620 10.01GB (1621/0/0) 20982224
2 backup wm 0 - 45264 279.38GB (45265/0/0) 585910160
3 usr wm 1944 - 5184 20.00GB (3241/0/0) 41951504
4 var wm 14027 - 16457 15.00GB (2431/0/0) 31466864
5 unassigned wm 6097 - 41740 220.00GB (35644/0/0) 461375936
6 unassigned wm 1296 - 1943 4.00GB (648/0/0) 8387712
7 unassigned wm 21957 - 45264 143.86GB (23308/0/0) 301698752

We do not want to see the overlapping partitions 5/6/7 - is there any way to remove them and make it as one?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to increase the size of existing swap partition ? gautamnarayan Linux - Newbie 5 12-10-2010 11:24 AM
[SOLVED] How big is my existing Linux partition & how do I increase it? Robert.Thompson Linux - Newbie 11 12-03-2009 08:31 AM
Increase memory size of oracle 8i running on solaris 10 mirmohsin Solaris / OpenSolaris 2 03-30-2009 03:18 PM
tricky backup of Linux system to NTFS partition to increase partition size Pandarsson Linux - General 5 07-09-2008 02:35 PM
How to increase the size of solaris on the fly rajaniyer123 Solaris / OpenSolaris 1 06-03-2007 12:03 PM

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

All times are GMT -5. The time now is 04:08 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