4 step 4: backing up the system database, 3 lun roles, used by, and preferred server changes, Step 4: backing up the system database -26 – HP StorageWorks Scalable File Share User Manual
Page 110: Ee section 5.2.4), Section 5.2.3.2
Creating and modifying file systems
5–26
5.2.3.2
Using the create filesystem command in scripted mode — SFS20 storage
You can create a file system in scripted mode by entering the
create filesystem
command with all of
the parameters for the file system. The syntax for the script is as follows:
create filesystem filesystem_name parameter_list
For example:
create filesystem data mds_lun=3/south2 ost_lun=17/south3,18/south4 mount_point=/
mnt/data/ stripe_size=4MB stripe_count=2 quota_opts=quotaon=ug interconnect=tcp,gm
If you wish, you can use the interactive mode (as described in Section 5.2.3.1) to specify the file system
parameters interactively; then, when you are prompted to create the file system, enter
no
instead of
proceeding to create the file system. The screen output then shows the script that is required to create the
file system; you can capture this script and use it at a later time.
See Section A.6.5 for more information on using the
create filesystem
command in scripted mode.
5.2.4 Step 4: Backing up the system database
Back up the system database, as follows:
1.
Back up the database, as follows:
# sfsmgr
.
.
.
sfs> create database_backup
2.
Save the backup file to an external system, as shown in the following example, where the full name of
the backup file is
/var/hpls.local/hplsdb_20040311-1041.tar.gz
, the external system
host address is
16.123.123.1
, and the account on the host is named
fred
:
# scp /var/hpls.local/hplsdb_200403011-1041.tar.gz \
[email protected]:/home/fred
5.3 LUN Roles, used by, and preferred server changes
When the
create filesystem
command creates a file system, it can change the
Role
,
Used by
, and
Preferred server
fields for the LUN. The
Preferred server
field is set to whichever server you
specified to the
create filesystem
command. The values in the
Role
and
Used by
fields depend on
whether you chose to mirror an MDS or OST service across two LUNs, as follows:
•
Non-mirrored. The
Role
field is unchanged. For MDS LUNs, the
Used by
field is set to the name of
the file system. For OST LUNs, the
Used by
field is set to the name of the OST service using that LUN.
•
Mirrored. The
create filesystem
command creates a new LUN. This LUN is in effect a RAID1
device whose components are the LUNs you specified to the
create filesystem
command. The
Role
field of each of the component LUNs is changed to
mirror
, and the
Used by
field is set to
the number of the new LUN.
The new LUN itself has a
Role
and
Used by
field. The Role field is set to either
MDS
or
OST
,
depending on whether the new LUN is used by an MDS or OST service. For MDS services, the
Used
by
field is set to the name of the file system. For OST services, the
Used by
field is set to the OST
service name.