跳过导航链接 | |
退出打印视图 | |
Oracle Solaris 11.1 管理:设备和文件系统 Oracle Solaris 11.1 Information Library (简体中文) |
x86: 如何为 ZFS 根文件系统 (VTOC) 创建磁盘分片
x86: 如何替换 ZFS 根池磁盘 (EFI (GPT))
12. 配置和管理 Oracle Solaris Internet 存储名称服务 (Internet Storage Name Service, iSNS)
有关创建或更改 Solaris fdisk 分区的指南和示例,请查看以下各节。
当设置一个或多个 fdisk 分区时,请遵循以下准则:
磁盘最多可以分成四个 fdisk 分区。其中之一必须是 Solaris 分区。
Solaris 分区必须在磁盘中为活动分区。活动分区是指其操作系统在缺省情况下在系统启动时引导的分区。
Solaris fdisk 分区必须在柱面边界开始。
Solaris fdisk 分区必须在第一个磁盘的柱面 1(而不是柱面 0)开始,因为附加引导信息(包括主引导记录)写在扇区 0 中。
Solaris fdisk 分区可以为整个磁盘。或者,可能需要使其更小,以便为 DOS 分区留出空间。可能还需要在磁盘上创建新的 fdisk 分区,而不扰乱现有分区(如果有足够的空间),以创建新的分区。
仅适用于 x86 - Solaris 分片也称为分区。某些接口可能将分片称为分区。
仅在基于 x86 的系统中支持 fdisk 分区。为了避免混淆,Oracle Solaris 文档尝试区分 fdisk 分区和 Solaris fdisk 分区内的实体。这些项可能称为分片或分区。
开始之前
如果需要有关 fdisk 分区的信息,请参见x86: 创建 fdisk 分区指南。
# format
显示磁盘的编号列表。
有关更多信息,请参见format(1M)。
Specify disk (enter its number): disk-number
其中 disk-number 是希望创建 Solaris fdisk 分区的磁盘编号。
format> fdisk
所显示的 fdisk 菜单取决于磁盘是否存在现有 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
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:
Enter Selection: 1
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?
Specify the percentage of disk to use for this partition (or type "c" to specify the size in cylinders). nn
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"(输入选择)。
有关创建 fdisk 分区的说明,请参见步骤 8–10。
Selection: 6
format> label Ready to label disk, continue? yes 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
x86 系统中的 Solaris fdisk 分区标识符已从130 (0x82) 更改为 191 (0xbf)。所有的 Oracle Solaris 命令、实用程序和驱动程序已更新为适用于任一 fdisk 标识符。fdisk 功能没有任何更改。
新的 fdisk 菜单选项使您能够在新标识符和旧标识符之间来回切换。甚至当挂载分区中所包含的文件系统时,也可以更改 fdisk 标识符。
fdisk 菜单中的两个 type 值反映旧标识符和新标识符,如下:
Solaris 标识 0x82
Solaris2 标识 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 Solaris2 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
例如:
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