inrease partition size


 
Thread Tools Search this Thread
Operating Systems Solaris inrease partition size
# 1  
Old 11-29-2006
inrease partition size

hi,
i created a partition c1t0d0s5 sized 10gb and a soft partition on it. now i want to expand this size to 15gb (my hard disk is 36gb). anybody show me the way to do that, please.
here are the outputs of the df and format commands:
Code:
# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/md/dsk/d0         9.6G   3.4G   6.1G    36%    /
/proc                    0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
fd                       0K     0K     0K     0%    /dev/fd
swap                   2.3G    40K   2.3G     1%    /var/run
swap                   2.3G     0K   2.3G     0%    /tmp
/dev/md/dsk/d25        5.2G   224M   4.5G     5%    /globalfs
/dev/md/dsk/d26       10.0G   9.1G   900M    92%    /u01
#

Code:
# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>  os
          /pci@1c,600000/scsi@2/sd@0,0
Specify disk (enter its number): 0
selecting c1t0d0: os
[disk formatted]


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> p

PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit
partition> p
Volume:  os
Current partition table (original):
Total disk cylinders available: 24620 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm   17531 - 24619        9.77GB    (7089/0/0)  20480121
  1       swap    wu       0 -  1088        1.50GB    (1089/0/0)   3146121
  2     backup    wm       0 - 24619       33.92GB    (24620/0/0) 71127180
  3 unassigned    wm    1125 -  1266      200.31MB    (142/0/0)     410238
  4 unassigned    wm    1267 -  4896        5.00GB    (3630/0/0)  10487070
  5 unassigned    wm    4897 - 12156       10.00GB    (7260/0/0)  20974140
  6 unassigned    wm       0                0         (0/0/0)            0
  7 unassigned    wm    1089 -  1124       50.78MB    (36/0/0)      104004

partition>


thanks so much

xuxi
# 2  
Old 11-29-2006
Did you create a soft partition, or just a metadevice ?

Whats the output from metastat -p
Tornado
# 3  
Old 11-29-2006
yes, i did.
Code:
# metastat -p
d1 1 1 c1t0d0s1
d0 1 1 c1t0d0s0
d25 2 1 c1t0d0s3 \
         1 c1t0d0s4
d26 -p c1t0d0s5 -o 1 -b 8388608

thanks
xuxi
# 4  
Old 11-29-2006
Why would you create a soft partition that is the whole disk slice ????

You use soft partitions if you have a big lun or disk that you want to slice up into more then 6 partitions/slices/filesystems ... what ever you want to call it today.

For a 36GB disk I would have used standard disk slices and I would have created only 2. A root and a swap partition

But since you want tu use a soft partition for slice5, what you should have done was use the rest of your available disk in slice5 ..

You should of had slice 5 using the cylinders 4897 - 24619

In your case though your only option is to create a slice 6 from cylinders 12157 to 24169 and then thats it, you can modify your disk any more...

Also why have only one disk ? You should really use a min of 2 disks and mirror them. You leave yourself open to disaster with only one disk.

If I was you I would buy a second disk, partition it up to the sizes you need(partition / to use the same cylinders as your first disk so you can attach it as a mirror), copy your data from the first disk to the new disk, mirror your root filesystem(d0), then change the rest of your first disk to look like the new partitions on your second disk and attache that half to your mirror. Then you will have the disk layed out the way you want it and it would be mirrored.

It would look something like this:
Code:
d10 -m d0 d20 1
d0 1 1 c1t0d0s0
d20 1 1 c1t1d0s0

d1 -m d11 d21 1
d11 1 1 c1t0d0s1
d21 1 1 c1t1d0s1

d3 -m d13 d23 1
d13 1 1 c1t0d0s3
d23 1 1 c1t1d0s3

d4 -m d14 d24 1
d14 1 1 c1t0d0s4
d24 1 1 c1t1d0s4

This means that you filesystem would look like this
Code:
Filesystem             size   used  avail capacity  Mounted on
/dev/md/dsk/d10        9.6G   3.4G   6.1G    36%    /
/proc                    0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
fd                       0K     0K     0K     0%    /dev/fd
swap                   2.3G    40K   2.3G     1%    /var/run
swap                   2.3G     0K   2.3G     0%    /tmp
/dev/md/dsk/d3         5.2G   224M   4.5G     5%    /globalfs
/dev/md/dsk/d4        10.0G   9.1G   900M    92%    /u01

I'm assuming that d1 is swap and that slice7 is for your metadb. The size of d3 and d4 would be adjusted on your second disk before changing sizes on your first disk and attaching to your mirror.

The normal practice with SVM is to use d? for the mirror and d1? for the first disk and d2? for the second disk, But since you used d0 for the root partition you root mirror is d10. It should realy look like this:
Code:
d0 -m d10 d20 1
d10 1 1 c1t0d0s0
d20 1 1 c1t1d0s0

Just as an FYI.. here is an example of the use of softpartitions..
d80, d90, d100, d110 and d120 are logical drives from some attached disk arrays, each logical drive is 955GB
Code:
d0 -m d10 d20 1
d10 1 1 c1t0d0s0
d20 1 1 c1t1d0s0

d1 -m d11 d21 1
d11 1 1 c1t0d0s1
d21 1 1 c1t1d0s1

d3 -m d13 d23 1
d13 1 1 c1t0d0s3
d23 1 1 c1t1d0s3

d4 -m d14 d24 1
d14 1 1 c1t0d0s4
d24 1 1 c1t1d0s4

d5 -m d15 d25 1
d15 1 1 c1t0d0s5
d25 1 1 c1t1d0s5

d80 -p c2t600C0FF000000000086A4C7AA9CCC200d0s0 -o 1 -b 409600
d81 -p c2t600C0FF000000000086A4C7AA9CCC200d0s0 -o 409602 -b 167772160
d82 -p c2t600C0FF000000000086A4C7AA9CCC200d0s0 -o 168181763 -b 167772160
d83 -p c2t600C0FF000000000086A4C7AA9CCC200d0s0 -o 335953924 -b 62914560
d84 -p c2t600C0FF000000000086A4C7AA9CCC200d0s0 -o 398868485 -b 62914560
d85 -p c2t600C0FF000000000086A4C7AA9CCC200d0s0 -o 461783046 -b 209715200
d86 -p c2t600C0FF000000000086A4C7AA9CCC200d0s0 -o 671498247 -b 209715200
d87 -p c2t600C0FF000000000086A4C7AA9CCC200d0s0 -o 881213448 -b 1048576000

d90 -p c2t600C0FF000000000086A4C44AC0B8600d0s0 -o 1 -b 409600 
d91 -p c2t600C0FF000000000086A4C44AC0B8600d0s0 -o 409602 -b 167772160
d92 -p c2t600C0FF000000000086A4C44AC0B8600d0s0 -o 168181763 -b 167772160
d93 -p c2t600C0FF000000000086A4C44AC0B8600d0s0 -o 335953924 -b 62914560
d94 -p c2t600C0FF000000000086A4C44AC0B8600d0s0 -o 398868485 -b 62914560
d95 -p c2t600C0FF000000000086A4C44AC0B8600d0s0 -o 461783046 -b 209715200
d96 -p c2t600C0FF000000000086A4C44AC0B8600d0s0 -o 671498247 -b 209715200
d97 -p c2t600C0FF000000000086A4C44AC0B8600d0s0 -o 881213448 -b 1048576000

d100 -p c2t600C0FF000000000086A4C498D854200d0s0 -o 1 -b 409600 
d101 -p c2t600C0FF000000000086A4C498D854200d0s0 -o 409602 -b 985661440
d102 -p c2t600C0FF000000000086A4C498D854200d0s0 -o 986071043 -b 985661440

d110 -p c2t600C0FF000000000086A4C3795679100d0s0 -o 1 -b 409600
d111 -p c2t600C0FF000000000086A4C3795679100d0s0 -o 409602 -b 1468006400
d112 -p c2t600C0FF000000000086A4C3795679100d0s0 -o 1468416003 -b 419430400
d113 -p c2t600C0FF000000000086A4C3795679100d0s0 -o 1887846404 -b 10485760
d114 -p c2t600C0FF000000000086A4C3795679100d0s0 -o 1898332165 -b 10485760
d115 -p c2t600C0FF000000000086A4C3795679100d0s0 -o 1908817926 -b 10485760
d116 -p c2t600C0FF000000000086A4C3795679100d0s0 -o 1919303687 -b 10485760

d120 -p c2t600C0FF000000000086A4C1A6991D300d0s0 -o 1 -b 409600 
d121 -p c2t600C0FF000000000086A4C1A6991D300d0s0 -o 409602 -b 167772160
d122 -p c2t600C0FF000000000086A4C1A6991D300d0s0 -o 168181763 -b 62914560
d123 -p c2t600C0FF000000000086A4C1A6991D300d0s0 -o 231096324 -b 838860800
d124 -p c2t600C0FF000000000086A4C1A6991D300d0s0 -o 1069957125 -b 10485760
d125 -p c2t600C0FF000000000086A4C1A6991D300d0s0 -o 1080442886 -b 104857600
d126 -p c2t600C0FF000000000086A4C1A6991D300d0s0 -o 1185300487 -b 83886080
d127 -p c2t600C0FF000000000086A4C1A6991D300d0s0 -o 1269186568 -b 10485760
d128 -p c2t600C0FF000000000086A4C1A6991D300d0s0 -o 1279672329 -b 83886080
d129 -p c2t600C0FF000000000086A4C1A6991D300d0s0 -o 1363558410 -b 10485760

Filesystem          kbytes      used     avail capacity  Mounted on
/dev/md/dsk/d0     4138926   1273827   2823710    32%    /
/dev/md/dsk/d3     8268461    466049   7719728     6%    /var
/dev/md/dsk/d4     8268461    608821   7576956     8%    /opt
/dev/md/dsk/d5     8268461    261098   7924679     4%    /usr/local

/dev/md/dsk/d81   82610963  36384226  45400628    45%    /export/proj1r1
/dev/md/dsk/d82   82610963  58056204  23728650    71%    /export/proj1r3
/dev/md/dsk/d83   30979101  18798629  11870681    62%    /export/proj2r1
/dev/md/dsk/d84   30979101  14965530  15703780    49%    /export/proj2r3
/dev/md/dsk/d85  103263708   3216574  99014497     4%    /export/proj7r1
/dev/md/dsk/d86  103263708  16254873  85976198    16%    /export/proj7r3
/dev/md/dsk/d87  516318605 377258480 133896939    74%    /export/proj3r1

/dev/md/dsk/d91   82610963  37954746  43830108    47%    /export/proj1r2
/dev/md/dsk/d92   82610963  36605547  45179307    45%    /export/proj1r4
/dev/md/dsk/d93   30979101  13965804  16703506    46%    /export/proj2r2
/dev/md/dsk/d94   30979101  26927131   3742179    88%    /export/proj2r4
/dev/md/dsk/d95  103263708   7889421  94341650     8%    /export/proj7r2
/dev/md/dsk/d96  103263708  26919321  75311750    27%    /export/proj7r4
/dev/md/dsk/d97  516318605 425930464  85224955    84%    /export/proj3r2

/dev/md/dsk/d101 485339487 418502148  61983945    88%    /export/proj3r3
/dev/md/dsk/d102 485339487 420466164  60019929    88%    /export/proj3r4

/dev/md/dsk/d111 722843517 275822536 439792546    39%    /export/proj6r
/dev/md/dsk/d112 206527432  42074197 162387961    21%    /export/proj9r
/dev/md/dsk/d113   5162822      8965   5102229     1%    /export/proj4r1
/dev/md/dsk/d114   5162822      5139   5106055     1%    /export/proj4r2
/dev/md/dsk/d115   5162822      5139   5106055     1%    /export/proj4r3
/dev/md/dsk/d116   5162822      5139   5106055     1%    /export/proj4r4

/dev/md/dsk/d121  82614151     65553  81722457     1%    /export/proj1r5
/dev/md/dsk/d122  30980158     30737  30639620     1%    /export/proj2r5
/dev/md/dsk/d123 413076399 372186945  36758691    92%    /export/proj3r5
/dev/md/dsk/d124   5162934      5137   5106168     1%    /export/proj4r5
/dev/md/dsk/d125  51634432     51219  51066869     1%    /export/proj7r5
/dev/md/dsk/d126  41307067  24055730  16838267    59%    /export/app_a1/proj1r5
/dev/md/dsk/d127   5162934      5137   5106168     1%    /export/app_a1/proj4r5
/dev/md/dsk/d128  41307067  24351935  16542062    60%    /export/app_a2/proj1r5
/dev/md/dsk/d129   5162934      5137   5106168     1%    /export/app_a2/proj4r5

AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w21000011c6c06310,0
       1. c1t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w21000011c6c0cd97,0
       2. c2t600C0FF000000000086A4C1A6991D300d0 <SUN-StorEdge3510-411I cyl 65533 alt 2 hd 64 sec 340>
          /scsi_vhci/ssd@g600c0ff000000000086a4c1a6991d300
       3. c2t600C0FF000000000086A4C7AA9CCC200d0 <SUN-StorEdge3510-411I cyl 65533 alt 2 hd 64 sec 477>
          /scsi_vhci/ssd@g600c0ff000000000086a4c7aa9ccc200
       4. c2t600C0FF000000000086A4C44AC0B8600d0 <SUN-StorEdge3510-411I cyl 65533 alt 2 hd 64 sec 477>
          /scsi_vhci/ssd@g600c0ff000000000086a4c44ac0b8600
       5. c2t600C0FF000000000086A4C498D854200d0 <SUN-StorEdge3510-411I cyl 65533 alt 2 hd 64 sec 477>
          /scsi_vhci/ssd@g600c0ff000000000086a4c498d854200
       6. c2t600C0FF000000000086A4C3795679100d0 <SUN-StorEdge3510-411I cyl 65533 alt 2 hd 64 sec 477>
          /scsi_vhci/ssd@g600c0ff000000000086a4c3795679100
Specify disk (enter its number):

Tornado
# 5  
Old 11-29-2006
thank you, Tornado. I have to buy a second disk.

xuxi
# 6  
Old 11-30-2006
oops sorry,
I posted my format output but I didn't post the partition layout of the logical drive, so you can see that we use the whole disk.

Here it is. This is disk 3 in the format output which is d80 - d87, slice 7 is used for the metadb
Code:
Total disk cylinders available: 65533 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0 unassigned    wm       1 - 65532      953.94GB    (65532/0/0) 2000560896
  1 unassigned    wm       0                0         (0/0/0)              0
  2 unassigned    wm       0                0         (0/0/0)              0
  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    wu       0 -     0       14.91MB    (1/0/0)          30528

# metadb
        flags           first blk       block count
     a m  p  luo        16              1034            /dev/dsk/c1t0d0s7
     a    p  luo        1050            1034            /dev/dsk/c1t0d0s7
     a    p  luo        2084            1034            /dev/dsk/c1t0d0s7
     a    p  luo        16              1034            /dev/dsk/c1t1d0s7
     a    p  luo        1050            1034            /dev/dsk/c1t1d0s7
     a    p  luo        2084            1034            /dev/dsk/c1t1d0s7
     a    p  luo        16              1034            /dev/dsk/c2t600C0FF000000000086A4C44AC0B8600d0s7
     a    p  luo        16              1034            /dev/dsk/c2t600C0FF000000000086A4C498D854200d0s7
#

Tornado
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Increasing size of root partition

Dear All , We need to increase the size of the root partition in a RHEL server. The model is Product Name: SUN FIRE X4170 SERVER. Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 119G 47G 67G 41% /... (3 Replies)
Discussion started by: jegaraman
3 Replies

2. Shell Programming and Scripting

Check size of a partition

hi want to schedule a script for displaying the size of the partiition. For example df -g /dev/fslv03 2000.00 535.43 74% 179943 1% /nvbkp we have several mount point like this but i want to schedule script to display size of the above mount point only. Thanks Ankit (4 Replies)
Discussion started by: ankit2012
4 Replies

3. Shell Programming and Scripting

Check the partition size on server

Dear All, I need notification mail from server while device size crossed 80% approximately.I tried following shell .its working fine when the device name like /dev/sdc1 etc.Its not working in LVM name.For example Script: #!/bin/sh echo "Storage server space details"; df -H | grep -vE... (4 Replies)
Discussion started by: kpoobathi
4 Replies

4. Solaris

how to expand root partition size?

Dear All For installing an application that will seat under /opt , I need to increase my root partition size (/c0t0d0s0) . Can you please let me know how can I increase this partition size? Thank you (10 Replies)
Discussion started by: hadimotamedi
10 Replies

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

6. Linux

primary partition size

hi I am trying to create primary,extended and logical partitions. when I try to create a primary partition, I can give it maximum 1027M (1gb). Why? (9 Replies)
Discussion started by: tjay83
9 Replies

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

8. UNIX for Dummies Questions & Answers

Increasing the Size of the Samba Partition

Hi, Is there any command to increase the size of the samba partition when the samba share is online?? Regards Arun (1 Reply)
Discussion started by: Arun.Kakarla
1 Replies

9. Solaris

Partition size calculations

Hi guys, I have an V100 server and I'm about to install solaris 8 on it (I have 10 on currently but most of my work is on 8 so I'm going to that). It would be easy for me to post system specs and get a recommendation, but what I'd like is to know HOW to calculate so that I can set up other... (1 Reply)
Discussion started by: Stin
1 Replies

10. Solaris

Increasing size of Root Partition

Dear all, How can we increase the space for the root partition, ensuring that there is no loss of data in Solaris 9. How can the growfs command be utilized in this case. Thanks. (7 Replies)
Discussion started by: asadlone
7 Replies
Login or Register to Ask a Question