NAME
vxupgrade — upgrade the disk layout of a VxFS file system
SYNOPSIS
/usr/sbin/vxupgrade
[-n
new_version]
[-r
rawdev]
mount_point
DESCRIPTION
vxupgrade
prints the current disk layout version number for a VxFS file system
or upgrades the file system to a new disk layout.
vxupgrade
operates on file systems mounted for
read/write access:
mount_point
must be a mounted VxFS file system.
Only a privileged user can query or upgrade a VxFS file system.
When invoked with the
-n
option,
vxupgrade
upgrades the disk layout to the specified version.
When invoked without the the
-n
option, vxfs prints the disk layout version number of the file system.
Options
- -n new_version
Disk layout version number to upgrade to.
new_version
is 3.
- -r rawdev
Pathname of raw device to use.
This option can be used when
vxupgrade
cannot determine what
the raw device corresponding to the mount point is (when
/etc/mnttab
is corrupted, for instance).
To perform an upgrade,
vxupgrade
freezes the file system, allocates and
initializes the new structures,
frees the space used by the old structures,
and then thaws the file system.
This process should not keep the file system frozen for more
than a few seconds.
vxupgrade
makes use of a lock file
(lost+found/.fsadm)
on the file system
to ensure that
only one instance of
vxupgrade
is running at any time.
vxupgrade
and
fsadm
cannot be run simultaneously,
so the lock file also ensures that
vxupgrade
is not run while a file system
reorganization is in progress.
When
vxupgrade
is invoked for an upgrade,
it opens the lock file
in the root of the file system
specified by
mount_point.
If the file
doesn't exist, it is created.
The
fcntl(2)
system call is used to
obtain a write lock on the file.
If the write lock fails,
vxupgrade
will
assume that another
vxupgrade
or an
fsadm
is running and will fail.
NOTES
(sV + \
(sU \{\The VxFS 2.0 or later kernel must be running before
vxupgrade
can be used.
\}
Once a file system has been upgraded to Version 3, it is no
longer mountable with releases of VxFS prior to VxFS 3.0.
File systems cannot be downgraded.
Free Space Requirement
vxupgrade
requires some free space on the file system in order to perform
the upgrade, and the upgrade may fail if not enough free space
is available. It is difficult to determine the exact amount of
space required to upgrade a VxFS file system; however, one can
estimate the maximum space required.
To upgrade a Version 2 file system with
n
* 1024 inodes (allocated only) and
m
* 32768 blocks to Version 3,
the worst-case minimum value is at least
n
* 2432 bytes +
m
* 8220 bytes + 115 Kbytes, in extents of 8 Kbytes or larger.
Free extents of larger than 8 Kbytes may be required, so
this is only a lower bound on the worst-case minimum required.
Since this is the worst-case minimum, it may be possible to upgrade
with less free space available. After the upgrade to Version 3 is
completed, all of this free space, plus some additional free space,
will be reclaimed.
DIAGNOSTICS
An exit value of 0 is returned if the upgrade was successful,
1 if the upgrade failed due to a lack of free space,
and 2 if the upgrade failed for some other reason.
FILES
- mount_point/lost+found/.fsadm
lock file