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:
# 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>
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.
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
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
#
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)
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)
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)
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)
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)
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)
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)
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)
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)