Skip Navigation Links | |
Exit Print View | |
![]() |
System Administration Guide: Devices and File Systems Oracle Solaris 10 8/11 Information Library |
1. Managing Removable Media (Overview)
2. Managing Removable Media (Tasks)
3. Accessing Removable Media (Tasks)
4. Writing CDs and DVDs (Tasks)
5. Managing Devices (Overview/Tasks)
6. Dynamically Configuring Devices (Tasks)
7. Using USB Devices (Overview)
9. Using InfiniBand Devices (Overview/Tasks)
11. Administering Disks (Tasks)
12. SPARC: Setting Up Disks (Tasks)
13. 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: 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
14. Configuring Oracle Solaris iSCSI Targets and Initiators (Tasks)
15. The format Utility (Reference)
16. Managing File Systems (Overview)
17. Creating and Mounting File Systems (Tasks)
18. Using The CacheFS File System (Tasks)
19. Configuring Additional Swap Space (Tasks)
20. Checking UFS File System Consistency (Tasks)
21. UFS File System (Reference)
22. Backing Up and Restoring UFS File Systems (Overview)
23. Backing Up UFS Files and File Systems (Tasks)
24. Using UFS Snapshots (Tasks)
25. Restoring UFS Files and File Systems (Tasks)
26. UFS Backup and Restore Commands (Reference)
27. Copying Files and File Systems (Tasks)
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.
|
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:
You can reinstall the entire Oracle Solaris OS.
Or, you can replace the disk and restore your Oracle Solaris OS file systems from a backup medium.
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.
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.
|
Create an fdisk partition, if necessary. Go to x86: How to Create a Solaris fdisk Partition.
If you are adding a disk with an EFI disk label, see EFI 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 6, Dynamically Configuring Devices (Tasks).
Refer to the disk's hardware installation guide for details.
After the disk is connected, create an fdisk partition. Go to x86: How to Create a Solaris fdisk Partition.
For information about creating or changing a Solaris fdisk partition, see Creating and Changing Solaris fdisk Partitions.
# format
A numbered list of disks is displayed.
Specify disk (enter its number): disk-number
where disk-number is the number of the disk that you want to repartition.
format> partition
partition> print
partition> modify
Choose base (enter number) [0]? 1
For more information about the free hog slice, see Using the Free Hog Slice.
Do you wish to continue creating a new partition table based on above table[yes]? yes
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.
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.
Enter table name (remember quotes): "partition-name"
where partition-name is the name for the new partition table.
Ready to label disk, continue? yes
partition> quit
format> verify
format> quit
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.
# 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 17, Creating and Mounting File Systems (Tasks) or newfs(1M).
# mount /dev/dsk/cwtxdysz /mnt # ls /mnt lost+found
Disk for a UFS root file system – You need to restore the root (/) and /usr file systems on the disk.
Go to Chapter 25, Restoring UFS Files and File Systems (Tasks).
After the root (/) and /usr file systems are restored, install the boot block. Go to x86: How to Install Boot Blocks for a UFS Root File System.
Disk for a UFS file system – You might need to restore file systems on the new disk. Go to Chapter 25, Restoring UFS Files and File Systems (Tasks). If you are not restoring file systems on the new disk, you are finished adding a secondary disk.
For information on making the file systems available to users, see Mounting and Unmounting Oracle Solaris File Systems.
# /sbin/installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/cwtxdysz
For more information, see installgrub(1M).
# init 6
Example 13-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)