Contained WithinFind More DocumentationFeatured Support Resources | Scarica il manuale in formato PDF (3134 KB)
Chapter 10 Managing Disks (Overview)This chapter provides overview information about Solaris disk slices and introduces the format utility. This is a list of overview information in this chapter. For instructions on how to add a disk to your system, see Chapter 12, SPARC: Adding a Disk (Tasks) or Chapter 13, x86: Adding a Disk (Tasks). What's New in Disk Management?This section describes new disk management features in the Solaris release. Two-Terabyte Disk Support for Installing and Booting the Solaris OSSolaris Express Community Edition, build 99: In previous Solaris releases, you could not install and boot the Solaris OS from a disk that was greater than 1 Tbyte in size. In the SXCE build 99 release, you can install and boot the Solaris OS from a disk that is up to 2 Tbytes in size. In previous releases, you also had to use an EFI label for a disk that is larger than 1 Tbytes. In this release, you can use the VTOC label on any size disk, but the addressable space by the VTOC is limited to 2 Tbytes. The Solaris disk drivers and disk utilities have been updated to provide the following support:
Keep in mind that you cannot move a disk over 1 Tbyte with a legacy MBR or a legacy VTOC to a previous Solaris release. EFI labeled disks continue to work as in previous Solaris releases. For more information about the EFI label changes in this release, see EFI Disk Label. iSNS Support in the Solaris iSCSI Target and InitiatorSolaris Express 1/08: This Solaris release provides support for the Internet Storage Name Service (iSNS) protocol in the Solaris iSCSI target and initiator software. The iSNS protocol allows for the automated discovery, management, and configuration of iSCSI devices on a TCP/IP network. In this Solaris release, you can use the iscsitadm command to add access to an existing third-party iSNS server or you can user the Solaris iSNS server to automatically discover the iSCSI devices in your network. The iSNS server can be specified by hostname or IP address. After you add the iSNS server information, you will need to enable access to the server. See the following resources for step-by-step instructions:
Solaris iSCSI Target SupportSolaris Express 8/06: This Solaris release provides support for iSCSI target devices, which can be disk or tape devices. Previous Solaris releases provide support for iSCSI initiators. The advantage of setting up Solaris iSCSI targets is you might have existing Fibre-Channel devices that can be connected to clients without the cost of Fibre-Channel HBAs. In addition, systems with dedicated arrays can now export replicated storage with ZFS or UFS file systems. You can use the iscsitadm command to set up and manage your iSCSI target devices. For the disk device that you select as your iSCSI target, you'll need to provide an equivalently sized ZFS or UFS file system as the backing store for the iSCSI daemon. After the target device is set up, use the iscsiadm command to identify your iSCSI targets, which will discover and use the iSCSI target device. For more information, see Chapter 14, Configuring Solaris iSCSI Targets and Initiators (Tasks), iscsiadm(1M), and iscsitadm(1M). Solaris iSCSI Initiator SupportSolaris Express 6/05: iSCSI is an Internet Protocol (IP)-based storage networking standard for linking data storage subsystems. By carrying SCSI commands over IP networks, the iSCSI protocol enables you to mount disk devices, from across the network, onto your local system. On your local system, you can use the devices like block devices. For more information, see Chapter 14, Configuring Solaris iSCSI Targets and Initiators (Tasks). Solaris iSCSI Initiator Support EnhancementsSolaris Express 3/06: The following enhancements have been added to the Solaris iSCSI initiator support:
For more information about configuring Solaris iSCSI initiators, see Chapter 14, Configuring Solaris iSCSI Targets and Initiators (Tasks) and iscsiadm(1M). x86: Disk Management in the GRUB Boot EnvironmentSolaris Express 6/05: The GRUB boot menu has replaced the previous method for booting an x86 system. In the area of disk management, you use the GRUB interface when booting from an alternative device to replace a system disk or when installing the bootblocks. The GRUB boot environment provides the following features:
In the GRUB environment, you cannot use the fmthard command to install the boot blocks automatically when run on an x86 system. You must install the boot blocks separately. For detailed feature information and instructions on using the new GRUB based booting on x86 systems, see Booting an x86 Based System by Using GRUB (Task Map) in System Administration Guide: Basic Administration. For instructions for managing disks in the GRUB boot environment, see the following references: This feature is not available on SPARC systems. Support for SCSI Disks That are Larger Than 2 TbytesSolaris Express 6/05: The SCSI driver, ssd or sd, is limited to 2 terabytes in the Solaris 10 release. Starting in the Solaris 10 1/06 release, the SCSI driver, ssd or sd, supports 2 terabytes and greater. The format utility can be used to label, configure, and partition these larger disks. For information about using the EFI disk label on large disks and restrictions with the fdisk utility, see Restrictions of the EFI Disk Label. Where to Find Disk Management TasksUse these references to find step-by-step instructions for managing disks.
Overview of Disk ManagementManaging disks in the Solaris OS usually involves setting up the system and running the Solaris installation program to create the appropriate disk slices and file systems and to install the Solaris OS. Occasionally, you might need to use the format utility to add a new disk drive or replace a defective disk drive. Disk TerminologyBefore you can effectively use the information in this section, you should be familiar with basic disk architecture. In particular, you should be familiar with the following terms:
For additional information, see the product information from your disk's manufacturer. About Disk LabelsA special area of every disk is set aside for storing information about the disk's controller, geometry, and slices. This information is called the disk's label. Another term that is used to described the disk label is the VTOC (Volume Table of Contents) on a disk with a VTOC label. To label a disk means to write slice information onto the disk. You usually label a disk after you change its slices. The Solaris release supports the following two disk labels:
If you fail to label a disk after you create slices, the slices will be unavailable because the OS has no way of “knowing” about the slices. EFI Disk LabelThe EFI label provides support for physical disks and virtual disk volumes. This release also includes updated disk utilities for managing disks greater than 1 terabyte. The UFS file system is compatible with the EFI disk label, and you can create a UFS file system greater than 1 terabyte. For information on creating a multiterabyte UFS file system, see 64-bit: Support of Multiterabyte UFS File Systems. The unbundled Sun QFS file system is also available if you need to create file systems greater than 1 terabyte. For information on the Sun QFS file system, see Sun QFS, Sun SAM-FS, and Sun SAM-QFS File System Administrator’s Guide. The Solaris Volume Manager software can also be used to manage disks greater than 1 terabyte in this Solaris release. For information on using Solaris Volume Manager, see Solaris Volume Manager Administration Guide. The VTOC label is still available for disks less than 2 terabytes in size. If you are only using disks smaller than 2 terabytes on your systems, managing disks will be the same as in previous Solaris releases. In addition, you can use the format-e command to label a disk 2 terabytes in size or less with an EFI label. For more information, see Example 11–6. You can use the format -e command to apply an EFI label to a disk if the system is running the appropriate Solaris release. However, you should review the important information in Restrictions of the EFI Disk Label before attempting to apply an EFI label. You can also use the format -e command to reapply a VTOC label if the EFI label is no longer needed. For example:
Keep in mind that changing disk labels will destroy any data on the disk. Comparison of the EFI Label and the VTOC LabelThe EFI disk label differs from the VTOC disk label in the following ways:
Restrictions of the EFI Disk LabelKeep the following restrictions in mind when determining whether using disks greater than 1 terabyte is appropriate for your environment:
Support for EFI-Labeled Disks on x86 SystemsSolaris support for the EFI disk label is available on x86 systems. Use the following command to add an EFI label on an x86 system:
Previous label information is not converted to the EFI disk label. You will have to recreate the label's partition information manually with the format command. You cannot use the fdisk command on a disk with an EFI label that is 2 terabytes in size. If the fdisk command is run on disk that is greater than 2Tbytes in size to create a Solaris partition, the Solaris partition is limited to 2 Tbytes. For more information about EFI disk labels, see the preceding section. Installing a System With an EFI-Labeled DiskThe Solaris installation utilities automatically recognize disks with EFI labels. However, you cannot use the Solaris installation program to repartition these disks. You must use the format utility to repartition an EFI-labeled disk before or after installation. The Solaris Upgrade and Live Upgrade utilities also recognize a disk with an EFI label. However, you cannot boot a system from an EFI-labeled disk. After the Solaris release is installed on a system with an EFI-labeled disk, the partition table appears similar to the following:
Managing Disks With EFI Disks LabelsUse the following table to locate information on managing disks with EFI disk labels.
*If a ZFS file system or UFS file system does not meet your needs, consider a QFS file system. Troubleshooting Problems With EFI Disk LabelsUse the following error messages and solutions to troubleshoot problems with EFI-labeled disks.
About Disk SlicesFiles stored on a disk are contained in file systems. Each file system on a disk is assigned to a slice, which is a group of sectors set aside for use by that file system. Each disk slice appears to the Solaris OS (and to the system administrator) as though it were a separate disk drive. For information about file systems, see Chapter 17, Managing File Systems (Overview). Note – Slices are sometimes referred to as partitions. Certain interfaces, such as the format utility, refer to slices as partitions. When setting up slices, remember these rules:
Slices are set up slightly differently on SPARC and x86 platforms. The following table summarizes the differences. Table 10–1 Slice Differences on SPARC and x86 Platforms
Solaris Volume Manager, previously the Solstice DiskSuiteTM, has a partitioning feature, soft partitions. Soft partitions enable more than eight partitions per disk. For general information about Solaris Volume Manager, see Chapter 2, Storage Management Concepts, in Solaris Volume Manager Administration Guide. For information on soft partitions, see Chapter 12, Soft Partitions (Overview), in Solaris Volume Manager Administration Guide. Disk SlicesThe following table describes the slices that might be found on a system that runs the Solaris OS. On x86 systems:
Note – On a disk with a VTOC label, do not modify slice or use slice 2 to store a file system. Products, such as Solaris Volume Manager, Solaris Live Upgrade, and installgrub, do not work correctly if slice 2 is modified in any way. Using Raw Data SlicesThe disk label is stored in block 0 of each disk. So, third-party database applications that create raw data slices must not start at block 0. Otherwise, the disk label will be overwritten, and the data on the disk will be inaccessible. Do not use the following areas of the disk for raw data slices, which are sometimes created by third-party database applications:
Slice Arrangements on Multiple DisksAlthough a single large disk can hold all slices and their corresponding file systems, two or more disks are often used to hold a system's slices and file systems. Note – A slice cannot be split between two or more disks. However, multiple swap slices on separate disks are allowed. For instance, a single disk might hold the root (/) file system, a swap area, and the /usr file system, while another disk holds the /export/home file system and other file systems that contain user data. In a multiple disk arrangement, the disk that contains the OS and swap space (that is, the disk that holds the root (/) and /usr file systems and the slice for swap space) is called the system disk. Other disks are called secondary disks or non-system disks. When you arrange a system's file systems on multiple disks, you can modify file systems and slices on the secondary disks without having to shut down the system or reload the OS. When you have more than one disk, you also increase input-output (I/O) volume. By distributing disk load across multiple disks, you can avoid I/O bottlenecks. Determining Which Slices to UseWhen you set up a disk's file systems, you choose not only the size of each slice, but also which slices to use. Your decisions about these matters depend on the configuration of the system to which the disk is attached and the software you want to install on the disk. System configurations that need disk space are as follows:
Each system configuration can use slices in a different way. The following table lists some examples. Table 10–3 System Configurations and Slices
For more information about system configurations, see Overview of System Types in System Administration Guide: Basic Administration. Note – The Solaris installation utility provides default slice sizes based on the software you select for installation. format UtilityRead the following overview of the format utility and its uses before proceeding to the “how-to” or reference sections. The format utility is a system administration tool that is used to prepare hard disk drives for use on your Solaris system. The following table shows the features and associated benefits that the format utility provides. Table 10–4 Features and Benefits of the format Utility
The format utility options are described in Chapter 16, The format Utility (Reference). When to Use the format UtilityDisk drives are partitioned and labeled by the Solaris installation utility when you install the Solaris release. You can use the format utility to do the following:
The main reason a system administrator uses the format utility is to partition a disk. These steps are covered in Chapter 12, SPARC: Adding a Disk (Tasks) and Chapter 13, x86: Adding a Disk (Tasks). See the following section for guidelines on using the format utility. Guidelines for Using the format UtilityTable 10–5 format Utility Guidelines
Formatting a DiskIn most cases, disks are formatted by the manufacturer or reseller. So, they do not need to be reformatted when you install the drive. To determine if a disk is formatted, use the format utility. For more information, see How to Determine if a Disk Is Formatted. If you determine that a disk is not formatted, use the format utility to format the disk. When you format a disk, you accomplish two steps:
Formatting a disk is a destructive process because it overwrites data on the disk. For this reason, disks are usually formatted only by the manufacturer or reseller. If you think disk defects are the cause of recurring problems, you can use the format utility to do a surface analysis. However, be careful to use only the commands that do not destroy data. For details, see How to Format a Disk. A small percentage of total disk space that is available for data is used to store defect and formatting information. This percentage varies according to disk geometry, and decreases as the disk ages and develops more defects. Formatting a disk might take anywhere from a few minutes to several hours, depending on the type and size of the disk. Partitioning a DiskThe format utility is most often used by system administrators to partitioning a Disk. The steps are as follows:
The easiest way to partition a disk is to use the modify command from the partition menu of the format utility. The modify command allows you to create partitions by specifying the size of each partition without having to keep track of the starting cylinder boundaries. The modify command also keeps tracks of any disk space that remains in the “free hog” slice. Partition Table TerminologyAn important part of the disk label is the partition table. The partition table identifies a disk's slices, the slice boundaries (in cylinders), and the total size of the slices. You can display a disk's partition table by using the format utility. The following describes partition table terminology. Table 10–6 Partition Table Terminology
Partition flags and tags are assigned by convention and require no maintenance. For more information on displaying the partition table, see the following references: Displaying Partition Table InformationThe following format utility output shows an example of a partition table from a 74-Gbyte disk with a VTOC label displayed:
The partition table displayed by the format utility contains the following information.
The following is an example of an EFI disk label displayed by using the prtvtoc command.
The output of the prtvtoc command provides information in the following three sections:
Using the Free Hog SliceWhen you use the format utility to change the size of one or more disk slices, you designate a temporary slice that will expand and shrink to accommodate the resizing operations. This temporary slice donates, or “frees,” space when you expand a slice, and receives, or “hogs,” the discarded space when you shrink a slice. For this reason, the donor slice is sometimes called the free hog. The free hog slice exists only during installation or when you run the format utility. There is no permanent free hog slice during day-to-day operations. For information on using the free hog slice, see SPARC: How to Create Disk Slices and Label a Disk or x86: How to Create Disk Slices and Label a Disk. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||