Metadata Utilities: nsck and sync
Rebuilding a Namespace
5-34
CLI Maintenance Guide
Rebuilding a Namespace
The
nsck rebuild
utility completely rebuilds all managed volumes in a namespace: it
re-imports the back-end shares and rebuilds its metadata databases. This command
disables the namespace during the rebuild process, and it forces all NFS clients to
unmount and then re-mount their managed volumes; use this only in situations where
sync files
fails. This has no effect on direct volumes.
From priv-exec mode, use the
nsck rebuild
command to rebuild all managed volumes
in a namespace:
nsck
namespace
rebuild
where
namespace
(1-30 characters) is the name of the namespace to rebuild. Use
the
show namespace
command to see a list of configured namespaces.
The CLI prompts for confirmation before re-importing all managed volumes in the
namespace: enter
yes
to continue. Enter
no
to cancel the rebuild.
You can run one nsck job at a time on a given namespace. Use
show nsck
to monitor
the progress of nsck jobs; see
“Showing the Progress of nsck and sync Jobs” on
page 5-2
.
For example, the following command sequence exits to priv-exec mode and rebuilds
the ‘wwmed’ namespace.
bstnA6k(gbl)#
end
bstnA6k#
nsck wwmed rebuild
Reimport all shares in the namespace wwmed? [yes/no]
yes
By default, this stops all modifications (client writes and file renames on import) in all
managed volumes after the rebuild. Essentially, the nsck utility issues a
no modify
for
every managed volume in the namespace.
To guarantee that managed-volume modifications are enabled after the rebuild, run the
modify
command in each volume and raise the
reimport-modify
flag before you rebuild
the namespace. The
reimport-modify
flag stops the nsck utility from running
no modify
.
If do not do this but the rebuild/import succeeds without any collisions, you can use the
modify
command on each volume after the rebuild.
For details on the
modify
command, see
“Allowing the Volume to Modify on Re-Import”
on page 9-11
of the
CLI Storage-Management Guide
.
Summary of Contents for Adaptive Resource Switch
Page 12: ...2 xii CLI Maintenance Guide...
Page 62: ...Backing Up the Running Configuration Restoring the Configuration 3 24 CLI Maintenance Guide...
Page 128: ...Metadata Utilities nsck and sync Clearing All nsck Jobs 5 48 CLI Maintenance Guide...
Page 206: ...Troubleshooting Network Connections Configuring Port Mirroring 7 32 CLI Maintenance Guide...
Page 306: ...GUI Maintenance Restarting the GUI 10 4 CLI Maintenance Guide...
Page 316: ...Powering Down the ARX Restoring Power 11 10 CLI Maintenance Guide...
Page 318: ...Copyright 2 CLI Maintenance Guide...
Page 324: ...Index 6 CLI Maintenance Guide...