Caution: The procedure in this section can result in the loss of data if it is not performed properly. It is recommended only for experienced IRIX system administrators. This section explains how to convert an EFS filesystem on an option disk (a disk other than the system disk) to XFS. It assumes that neither lv nor XLV logical volumes are used. You must be superuser to perform this procedure.
# dump 0uCf tapesize dumpdevice partition
tapesize is the tape capacity (it's used for backup to disks, too) and dumpdevice is the device name for the tape drive. Table 4-1 gives the values of tapesize and dumpdevice for different local tape drives and disk. You can get the values of tapecntlr and tapeunit used in the table from the output of the command hinv -c tape.
# umount partition
# mkfs -b size=blocksize -l size=logsize partition
blocksize is the filesystem block size (see the section "Choosing the Filesystem Block Size and Extent Size" in this chapter) and logsize is the size of the area dedicated to log records (see the section "Choosing the Log Type and Size" in this chapter). Example 4-1 shows an example of this command line and its output.
# mount partition mountdir
partition mountdir xfs rw,raw=rawpartition 0 0
rawpartition is the raw version of partition.
# cd mountdir
# mt -t device rewind
# restore rf dumpdevice
The value of device is the same as dumpdevice without nsv
or other letters at the end.
You may need to be patient while the restore is taking place; it doesn't generate any output and it can take a while.