免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1516 | 回复: 0
打印 上一主题 下一主题

solaris disk partition [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-05-22 11:12 |只看该作者 |倒序浏览

/* 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          1  8321    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) [0]? 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]? yes
Free Hog partition[6]?
Enter size of partition '0' [0b, 0c, 0.00mb, 0.00gb]: 500mb
Enter size of partition '1' [0b, 0c, 0.00mb, 0.00gb]: 500mb
Enter size of partition '3' [0b, 0c, 0.00mb, 0.00gb]: 1gb
Enter size of partition '4' [0b, 0c, 0.00mb, 0.00gb]: 500mb
Enter size of partition '5' [0b, 0c, 0.00mb, 0.00gb]: 500mb
Enter size of partition '7' [0b, 0c, 0.00mb, 0.00gb]:
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]? 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 serv  kps tps serv  kps tps serv  kps tps serv   us sy wt id
   0   17 215  15   38  709  18  230    0   0    4    0   0    0    1 51  0 48








本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/38597/showart_306857.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP