JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Devices and File Systems     Oracle Solaris 10 1/13 Information Library
search filter icon
search icon

Document Information

Preface

1.  Managing Removable Media (Overview/Tasks)

2.  Writing CDs and DVDs (Tasks)

3.  Managing Devices (Tasks)

4.  Dynamically Configuring Devices (Tasks)

5.  Managing USB Devices (Tasks)

6.  Using InfiniBand Devices (Overview/Tasks)

7.  Managing Disks (Overview)

8.  Managing Disk Use (Tasks)

9.  Administering Disks (Tasks)

10.  SPARC: Setting Up Disks (Tasks)

11.  x86: Setting Up Disks (Tasks)

x86: Setting Up Disks for UFS File Systems (Task Map)

x86: Setting Up Disks for UFS File Systems

x86: How to Set Up a Disk for a UFS Root File System

x86: How to Connect a Disk for a UFS File System

x86: How to Create Disk Slices for UFS File Systems

x86: How to Create a UFS File System

x86: How to Install Boot Blocks for a UFS Root File System

x86: Setting Up Disks for ZFS File Systems (Task Map)

x86: Setting Up Disks for ZFS File Systems

x86: How to Set Up a Disk for a ZFS Root File System

x86: Creating a Disk Slice for a ZFS Root File System

x86: How to Create a Disk Slice for a ZFS Root File System

x86: How to Install Boot Blocks for a ZFS Root File System

x86: How to Set Up a Disk for a ZFS File System

Creating and Changing Solaris fdisk Partitions

x86: Guidelines for Creating an fdisk Partition

x86: How to Create a Solaris fdisk Partition

Changing the fdisk Partition Identifier

How to Change the Solaris fdisk Identifier

12.  Configuring Oracle Solaris iSCSI Targets (Tasks)

13.  The format Utility (Reference)

14.  Managing File Systems (Overview)

15.  Creating and Mounting File Systems (Tasks)

16.  Configuring Additional Swap Space (Tasks)

17.  Checking UFS File System Consistency (Tasks)

18.  UFS File System (Reference)

19.  Backing Up and Restoring UFS File Systems (Overview/Tasks)

20.  Using UFS Snapshots (Tasks)

21.  Copying Files and File Systems (Tasks)

22.  Managing Tape Drives (Tasks)

23.  UFS Backup and Restore Commands (Reference)

Index

x86: Setting Up Disks for UFS File Systems (Task Map)

The following task map identifies the procedures for setting up a disk for a UFS root file system or a disk for a UFS file system on an x86 based system.

Task
Description
For Instructions
1. Connect the disk.
Disk for a UFS root file system

Connect the new disk and boot from a local or remote Oracle Solaris DVD.

Disk for a UFS file system

Connect the disk.

2. Create or change the fdisk partition
The disk for an x86 based system must contain an fdisk partition.
3. Create slices and label the disk.
Create disk slices and label the disk if the disk manufacturer has not already done so.
4. Create UFS file systems.
Create UFS file systems on the disk slices with the newfs command. You must re-create the root (/) or /usr file system (or both).
5. Restore UFS file systems.
Restore the UFS root (/) or /usr file system (or both) on the system disk. If necessary, restore file systems on other disks
6. Install boot blocks for a UFS root file system.
Install the boot blocks on the root (/) file system so that the system can boot.

x86: Setting Up Disks for UFS File Systems

A disk can contain the UFS root (/) and /usr file systems, user or data file systems, or a combination of file systems. If the disk contains the UFS root (/) or /usr file systems, you have two ways to recover:

A disk that contains user or data file systems can be replaced and the file systems restored, if necessary, without having to reinstall or reboot the system.

x86: How to Set Up a Disk for a UFS Root File System

You can use this procedure to replace a disk that contained the UFS root or /usr file system. Refer to your hardware installation guide for information on replacing a disk.

  1. Disconnect the damaged system disk from the system, if necessary.
  2. Connect the replacement disk to the system, and check the disk's physical connections.
  3. Follow the instructions in the following table, depending on whether you are booting from a local Oracle Solaris DVD or a remote Oracle Solaris DVD from the network.
    Boot Type
    Action
    From an Oracle Solaris DVD in a local drive
    1. Make sure the Oracle Solaris DVD is in the drive.

    2. Select the option to boot from the media.

    From the network
    3. Select the option to boot from the network.
After You Set Up a Disk for a UFS Root File System ...

Create an fdisk partition, if necessary. Go to x86: How to Create a Solaris fdisk Partition.

x86: How to Connect a Disk for a UFS File System

If you are adding a disk with an EFI disk label, see EFI (GPT) Disk Label for more information.

Generally, most modern bus types support hot-plugging. This means you can insert a disk in an empty slot and the system recognizes it. For more information about hot-plugging devices, see Chapter 4, Dynamically Configuring Devices (Tasks).

  1. Become superuser or assume an equivalent role.
  2. (Optional) If the disk is unsupported by the Oracle Solaris software, add the device driver for the disk by following the instructions included with the hardware.
  3. Connect the disk to the system and check the disk's physical connections.

    Refer to the disk's hardware installation guide for details.

  4. Use the format utility to confirm that the new disk is recognized.
After You Connect a Disk for a UFS File System ...

After the disk is connected, create an fdisk partition. Go to x86: How to Create a Solaris fdisk Partition.

x86: How to Create Disk Slices for UFS File Systems

  1. Become superuser or assume an equivalent role.
  2. Confirm that the disk has a valid Solaris fdisk partition.

    For information about creating or changing a Solaris fdisk partition, see Creating and Changing Solaris fdisk Partitions.

  3. Invoke the format utility.
    # format

    A numbered list of disks is displayed.

  4. Type the number of the disk that you want to repartition.
    Specify disk (enter its number): disk-number

    where disk-number is the number of the disk that you want to repartition.

  5. Select the partition menu.
    format> partition
  6. Display the current partition (slice) table.
    partition> print
  7. Start the modification process.
    partition> modify
  8. Set the disk to all free hog.
    Choose base (enter number) [0]? 1

    For more information about the free hog slice, see Using the Free Hog Slice.

  9. Create a new partition table by answering yes when prompted to continue.
    Do you wish to continue creating a new partition
    table based on above table[yes]? yes
  10. Identify the free hog partition (slice) and the sizes of the slices when prompted.

    When adding a system disk, you must set up slices for the following:

    • root (slice 0) and swap (slice 1) and/or

    • /usr (slice 6)

    After you identify the slices, the new partition table is displayed.

  11. Make the displayed partition table the current partition table by answering yes when prompted.
    Okay to make this the current partition table[yes]? yes

    If you don't want the current partition table and you want to change it, answer no and go to Step 7.

  12. Name the partition table.
    Enter table name (remember quotes): "partition-name"

    where partition-name is the name for the new partition table.

  13. Label the disk with the new partition table after you have finished allocating slices on the new disk.
    Ready to label disk, continue? yes
  14. Quit the partition menu.
    partition> quit
  15. Verify the new disk label.
    format> verify
  16. Exit the format utility.
    format> quit
After You Create Disk Slices and Label a Disk ...

After you create disk slices and label the disk, you can create file systems on the disk. Go to x86: How to Create a UFS File System.

x86: How to Create a UFS File System

  1. Become superuser or assume an equivalent role.
  2. Create a file system for each slice.
    # newfs /dev/rdsk/cwtxdysz

    where /dev/rdsk/cwtxdysz is the raw device for the file system to be created.

    For more information about the newfs command, see Chapter 15, Creating and Mounting File Systems (Tasks) or newfs(1M).

  3. Verify the new file system by mounting it.
    # mount /dev/dsk/cwtxdysz /mnt
    # ls /mnt
    lost+found
After You Create a UFS File System ...

x86: How to Install Boot Blocks for a UFS Root File System

  1. Become superuser or assume an equivalent role.
  2. Install the boot blocks for a UFS root file system.
    # /sbin/installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/cwtxdysz

    For more information, see installgrub(1M).

  3. Verify that the boot blocks are installed by rebooting the system to run level 3.
    # init 6

Example 11-1 x86: Installing Boot Blocks for a UFS Root File System

The following example shows how to install the boot blocks for a UFS root file system on an x86 system.

# /sbin/installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c1d0s0
stage1 written to partition 0 sector 0 (abs 2016)
stage2 written to to partition 0, 227 sectors starting 50 (abs 2066)