solaris disk partition
/* On x86 solaris10, VM installation. new disks added, format needed. */
-bash-3.00# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0d0
/pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
1. c0d1
/pci@0,0/pci-ide@7,1/ide@0/cmdk@1,0
2. c1d1
/pci@0,0/pci-ide@7,1/ide@1/cmdk@1,0
3. c2t0d0
/pci@0,0/pci1000,30@10/sd@0,0
Specify disk (enter its number): 2
/* c1d1 is a new IDE disk. c2t0d0 is a new SCSI disk. */
format> fdisk
No fdisk table exists. The default partition for the disk is:
a 100% "SOLARIS System" partition
Type "y" to accept the default partition,otherwise type "n" to edit the
partition table.
y
format> fdisk
Total disk size is 8322 cylinders
Cylinder size is 1008 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ================= === ====== ===
1 Active Solaris2 18321 8321 100
/* if other partitions are needed (such as DOS), use fdisk to change the partition.*/
format> partition
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
! - execute , then return
quit
partition>
partition> mod
Select partitioning base:
0. Current partition table (original)
1. All Free Hog
Choose base (enter number) ? 1
Part Tag Flag Cylinders Size Blocks
0 root wm 0 0 (0/0/0) 0
1 swap wu 0 0 (0/0/0) 0
2 backup wu 0 - 8872 4.00GB (8873/0/0) 8384985
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 usr wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 0.46MB (1/0/0) 945
9 alternates wm 1 - 2 0.92MB (2/0/0) 1890
Do you wish to continue creating a new partition
table based on above table? yes
Free Hog partition?
Enter size of partition '0' : 500mb
Enter size of partition '1' : 500mb
Enter size of partition '3' : 1gb
Enter size of partition '4' : 500mb
Enter size of partition '5' : 500mb
Enter size of partition '7' :
Part Tag Flag Cylinders Size Blocks
0 root wm 3 - 1086 500.19MB (1084/0/0) 1024380
1 swap wu 1087 - 2170 500.19MB (1084/0/0) 1024380
2 backup wu 0 - 8872 4.00GB (8873/0/0) 8384985
3 unassigned wm 2171 - 4390 1.00GB (2220/0/0) 2097900
4 unassigned wm 4391 - 5474 500.19MB (1084/0/0) 1024380
5 unassigned wm 5475 - 6558 500.19MB (1084/0/0) 1024380
6 usr wm 6559 - 8872 1.04GB (2314/0/0) 2186730
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 0.46MB (1/0/0) 945
9 alternates wm 1 - 2 0.92MB (2/0/0) 1890
Okay to make this the current partition table? yes
Enter table name (remember quotes):
Enter table name (remember quotes): newide1
Ready to label disk, continue? y
partition> p
Current partition table (newide1):
Total disk cylinders available: 8873 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 3 - 1086 500.19MB (1084/0/0) 1024380
1 unassigned wm 1087 - 2170 500.19MB (1084/0/0) 1024380
2 backup wu 0 - 8872 4.00GB (8873/0/0) 8384985
3 unassigned wm 2171 - 4390 1.00GB (2220/0/0) 2097900
4 unassigned wm 4391 - 5474 500.19MB (1084/0/0) 1024380
5 unassigned wm 5475 - 6558 500.19MB (1084/0/0) 1024380
6 unassigned wm 6559 - 8872 1.04GB (2314/0/0) 2186730
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 0.46MB (1/0/0) 945
9 alternates wm 1 - 2 0.92MB (2/0/0) 1890
/* Now c0d1s0~c0d1s7 are available for newfs and mount. */
Note that iostat will report the io statistics of the disks.
-bash-3.00# iostat
tty cmdk0 cmdk1 cmdk2 sd0 cpu
tin tout kps tps servkps tps servkps tps servkps tps serv us sy wt id
0 17 21515 3870918230 0 0 4 0 0 0 1 510 48
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/38597/showart_306857.html
页:
[1]