JavaScript is required to for searching.
跳过导航链接
退出打印视图
Oracle Solaris 11.1 管理:设备和文件系统     Oracle Solaris 11.1 Information Library (简体中文)
search filter icon
search icon

文档信息

前言

1.  管理可移除介质(任务)

2.  写入 CD 和 DVD(任务)

3.  管理设备(任务)

4.  动态配置设备(任务)

5.  管理 USB 设备(任务)

6.  使用 InfiniBand 设备(概述/任务)

7.  管理磁盘(概述)

8.  管理磁盘使用(任务)

9.  管理磁盘(任务)

10.  设置磁盘(任务)

SPARC: 设置磁盘(任务列表)

SPARC: 为 ZFS 文件系统设置磁盘

SPARC: 如何为 ZFS 根文件系统设置磁盘

SPARC: 为 ZFS 根文件系统创建磁盘分片

SPARC: 如何为 ZFS 根文件系统创建磁盘分片

SPARC: 如何为 ZFS 根文件系统安装引导块

SPARC: 如何为 ZFS 非根文件系统设置磁盘

x86: 为 ZFS 文件系统设置磁盘(任务列表)

x86: 为 ZFS 文件系统设置磁盘

x86: 如何为 ZFS 根文件系统设置磁盘

x86: 为 ZFS 根文件系统准备磁盘

如何重新创建 ZFS 根池 (EFI (GPT))

x86: 如何为 ZFS 根文件系统 (VTOC) 创建磁盘分片

x86: 如何替换 ZFS 根池磁盘 (EFI (GPT))

x86: 如何替换 ZFS 根池磁盘 (VTOC)

x86: 如何为 ZFS 根文件系统安装引导块

x86: 如何为 ZFS 非根文件系统设置磁盘

x86: 创建并更改 Solaris fdisk 分区

x86: 创建 fdisk 分区指南

x86: 如何创建 Solaris fdisk 分区

更改 fdisk 分区标识符

如何更改 Solaris fdisk 标识符

11.  使用 COMSTAR 配置存储设备(任务)

12.  配置和管理 Oracle Solaris Internet 存储名称服务 (Internet Storage Name Service, iSNS)

13.  format 实用程序(参考信息)

14.  管理文件系统(概述)

15.  创建和挂载文件系统(任务)

16.  配置附加交换空间(任务)

17.  复制文件和文件系统(任务)

18.  管理磁带机(任务)

索引

x86: 创建并更改 Solaris fdisk 分区

有关创建或更改 Solaris fdisk 分区的指南和示例,请查看以下各节。

x86: 创建 fdisk 分区指南

当设置一个或多个 fdisk 分区时,请遵循以下准则:


仅适用于 x86 - Solaris 分片也称为分区。某些接口可能将分片称为分区

仅在基于 x86 的系统中支持 fdisk 分区。为了避免混淆,Oracle Solaris 文档尝试区分 fdisk 分区和 Solaris fdisk 分区内的实体。这些项可能称为分片或分区。


x86: 如何创建 Solaris fdisk 分区

开始之前

如果需要有关 fdisk 分区的信息,请参见x86: 创建 fdisk 分区指南

  1. 成为管理员。

    有关更多信息,请参见《Oracle Solaris 11.1 管理:安全服务》中的"如何使用指定给您的管理权限"

  2. 调用 format 实用程序。
    # format

    显示磁盘的编号列表。

    有关更多信息,请参见format(1M)

  3. 键入创建 Solaris fdisk 分区的磁盘编号。
    Specify disk (enter its number): disk-number

    其中 disk-number 是希望创建 Solaris fdisk 分区的磁盘编号。

  4. 选择 fdisk 菜单。
    format> fdisk

    所显示的 fdisk 菜单取决于磁盘是否存在现有 fdisk 分区。

  5. 通过在提示符下指定 y,创建并激活跨整个磁盘的 Solaris fdisk 分区。然后,转至步骤 13。
    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
  6. 如果不希望 Solaris fdisk 分区跨整个磁盘,请在提示符下指定 n
    Type "y" to accept the default partition, otherwise type "n" to edit the
     partition table.
    n
                 Total disk size is 17848 cylinders
                 Cylinder size is 16065 (512 byte) blocks
    
                                                   Cylinders
          Partition   Status    Type          Start   End   Length    %
          =========   ======    ============  =====   ===   ======   ===
    
    
    
    SELECT ONE OF THE FOLLOWING:
       1. Create a partition
       2. Specify the active partition
       3. Delete a partition
       4. Change between Solaris and Solaris2 Partition IDs
       5. Edit/View extended partitions
       6. Exit (update disk configuration and exit)
       7. Cancel (exit without updating disk configuration)
    Enter Selection: 
  7. 选择选项 1 Create a partition 以创建 fdisk 分区。
    Enter Selection: 1
  8. 通过选择 1(=Solaris2) 创建 Solaris fdisk 分区。
    Select the partition type to create:
       1=SOLARIS2   2=UNIX      3=PCIXOS     4=Other        5=DOS12
       6=DOS16      7=DOSEXT    8=DOSBIG     9=DOS16LBA     A=x86 Boot
       B=Diagnostic C=FAT32     D=FAT32LBA   E=DOSEXTLBA    F=EFI (Protective)
       G=EFI_SYS    0=Exit? 
  9. 确定要为 Solaris fdisk 分区保留的磁盘百分比。计算该百分比时,请记住任何现有 fdisk 分区的大小。
    Specify the percentage of disk to use for this partition
    (or type "c" to specify the size in cylinders). nn
  10. 通过在提示符下键入 y,激活 Solaris fdisk 分区。
    Should this become the active partition? If yes, it will be 
    activated each time the computer is reset or turned on.
    Please type "y" or "n". y

    激活 fdisk 分区之后,将显示提示 "Enter Selection"(输入选择)。

  11. 选择选项 1 Create a partition 以创建另一个 fdisk 分区。

    有关创建 fdisk 分区的说明,请参见步骤 8–10。

  12. 更新磁盘配置,然后从 selection 菜单中退出 fdisk 菜单。
    Selection: 6
  13. 使用 label 命令重新为磁盘设置标签。
    format> label
    Ready to label disk, continue? yes
    format> 
  14. 退出 format 实用程序。
    format> quit

示例 10-2 x86: 创建一个跨整个驱动器的 Solaris fdisk 分区

以下示例使用 format 实用程序的 fdisk 选项创建一个跨整个驱动器的 Solaris fdisk 分区。

# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
       0. c8t0d0 <SEAGATE-ST973401LSUN72G-0556 cyl 8921 alt 2 hd 255 sec 63>
          /pci@0,0/pci1022,7458@11/pci1000,3060@4/sd@0,0
          /dev/chassis/SYS/HD0/disk
       1. c8t1d0 <SEAGATE-ST973401LSUN72G-0556 cyl 8921 alt 2 hd 255 sec 63>
          /pci@0,0/pci1022,7458@11/pci1000,3060@4/sd@1,0
          /dev/chassis/SYS/HD1/disk
       2. c8t2d0 <SEAGATE-ST973401LSUN72G-0556-68.37GB>
          /pci@0,0/pci1022,7458@11/pci1000,3060@4/sd@2,0
          /dev/chassis/SYS/HD2/disk
       3. c8t3d0 <SEAGATE-ST973401LSUN72G-0556 cyl 14087 alt 2 hd 24 sec 424>
          /pci@0,0/pci1022,7458@11/pci1000,3060@4/sd@3,0
          /dev/chassis/SYS/HD3/disk
Specify disk (enter its number): 3
selecting c8t3d0
[disk formatted]
No Solaris fdisk partition found.
format> fdisk
No fdisk table exists. The default partitioning for your disk is:
 
  a 100% "SOLARIS System" partition.
 
Type "y" to accept the default partition, otherwise type "n" to edit the
partition table. y

format> label
Ready to label disk, continue? yes
format> quit

更改 fdisk 分区标识符

x86 系统中的 Solaris fdisk 分区标识符已从130 (0x82) 更改为 191 (0xbf)。所有的 Oracle Solaris 命令、实用程序和驱动程序已更新为适用于任一 fdisk 标识符。fdisk 功能没有任何更改。

如何更改 Solaris fdisk 标识符

新的 fdisk 菜单选项使您能够在新标识符和旧标识符之间来回切换。甚至当挂载分区中所包含的文件系统时,也可以更改 fdisk 标识符。

fdisk 菜单中的两个 type 值反映旧标识符和新标识符,如下:

  1. 成为管理员。
  2. 显示当前的 fdisk 标识符。

    例如:

                Total disk size is 39890 cylinders
                Cylinder size is 4032 (512 byte) blocks
    
                                                  Cylinders
         Partition   Status    Type          Start   End   Length    %
         =========   ======    ============  =====   ===   ======   ===
             1       Active    x86 Boot          1     6       6      0
             2                 Solaris2          7  39889    39883    100
  3. fdisk 菜单中选择选项 4,以将 fdisk 分区标识符更改回 0x82
    SELECT ONE OF THE FOLLOWING:
      1. Create a partition
      2. Specify the active partition
      3. Delete a partition
      4. Change between Solaris and Solaris2 Partition IDs
      5. Exit (update disk configuration and exit)
      6. Cancel (exit without updating disk configuration)
    Enter Selection: 4
  4. 选择选项 6,以更新磁盘配置,然后退出。
  5. 如有必要,从 fdisk 菜单中选择选项 4,以将 fdisk 分区标识符更改回 0xbf

    例如:

    Total disk size is 39890 cylinders
                Cylinder size is 4032 (512 byte) blocks
    
                                                  Cylinders
         Partition   Status    Type          Start   End   Length    %
         =========   ======    ============  =====   ===   ======   ===
             1       Active    x86 Boot          1     6       6      0
             2                 Solaris           7  39889    39883    100
    
    SELECT ONE OF THE FOLLOWING:
      1. Create a partition
      2. Specify the active partition
      3. Delete a partition
      4. Change between Solaris and Solaris2 Partition IDs
      5. Exit (update disk configuration and exit)
      6. Cancel (exit without updating disk configuration)
    Enter Selection: 4
  6. 选择选项 6,以更新磁盘配置,然后退出。