To Restore a File System (UNIX)
M
Use the following procedure to configure a slice (also known as a partition) on a
disk.
1. Verify that the device label meets your requirements.
You can use the prtvtoc command to inspect the label for your disk. To modify the
label, use the format command. See the prtvtoc(1M) and format(1M) man pages
for more information.
2. Ensure that the disk's partitions match those of the file system(s) you intend to re-
create.
You can use the prtvtoc command to inspect the label for your device. If you need
to modify the disk layout, use the format command. Refer to the prtvtoc(1M) and
format(1M) man pages for more information. For example:
# prtvtoc /dev/rdsk/cwtxdysz
If you have saved a copy of the disk's partition table using the format utility and if
the replacement disk type matches the old disk type, then you can use the format
utility's partition function to configure the partition table of the replacement disk.
See the select and label commands in the partition menu.
If the replacement disk is of a different type than the disk it replaced, you can use
the partition size information from the previous disk as a guideline when formatting
the partitions on the replacement disk.
3. After you have partitioned the disk, identify the disk slice on which to build the
file system.
4. Once you have selected a disk slice for the file system, use the newfs command to
create a file system on the slice:
#
5. Mount the new file system using the mount command:
# mount mount-point
where: mount-point is the directory on which the disk is mounted.
The new disk is ready to be used. You can now restore data onto the new disk from
backups of the failed disk.
4-12
Sun StorEdge D2 Array Installation, Operation, and Service Manual • February 2002
newfs /dev/rdsk/cwtxdysz
Need help?
Do you have a question about the StorEdge D2 Array and is the answer not in the manual?
Questions and answers