Sei sulla pagina 1di 3

VERITAS Storage Foundation™ 4.

1—Fundamentals Commands

DISK OPERATIONS Join disk groups vxdg join sourcedg targetdg


Action Command Line vxdg listmove sourcedg targetdg
List objects affected by a
vxdisksetup -i device (CDS disk) disk group move operation object...
Initialize a disk vxdisksetup -i device format=sliced (sliced Display bootdg
disk) vxdg bootdg
List disks owned by local Display defaultdg vxdg defaultdg
vxdisk –o alldgs list
and remote hosts
List disk header vxdisk list diskname|device Set defaultdg vxdctl defaultdg diskgroup
Evacuate a disk vxevac -g diskgroup from_disk to_disk Manually back up the disk vxconfigbackup diskgroup
group configuration
vxedit -g diskgroup rename oldname
Rename a disk
newname Perform precommit analysis vxconfigrestore -p diskgroup
of a restore
Set spare, no hot relocation, vxedit -g diskgroup set
or reserved space on a disk {spare|nohotuse|reserve}=on|off diskname Restore the disk group vxconfigrestore -c [-l directory]
configuration diskgroup
Unrelocate a disk vxunreloc -g diskgroup original_diskname

VOLUME OPERATIONS
DISK GROUP OPERATIONS
Action Command Line
Action Command Line
vxassist -g diskgroup make vol_name size
Create a disk group vxdg init diskgroup diskname=device Create a volume
layout=format diskname
vxdg -g diskgroup adddisk
Add a disk to disk group vxedit -g diskgroup -rf rm vol_name
diskname=device
Remove a volume or
Remove a disk from disk
vxdg –g diskgroup rmdisk diskname
group vxassist -g diskgroup remove volume vol_name
Deport, import or destroy a
vxdg {deport|import|destroy} diskgroup vxprint -g diskgroup -vt vol_name
disk group Display a volume
List disk groups vxdg list [diskgroup] vxprint -g diskgroup –l vol_name
vxvol -g diskgroup rdpol round vol_name
Show free/spare space pool vxdg –g diskgroup {free|spare}
Change volume read vxvol -g diskgroup rdpol prefer vol_name
Upgrade disk group version vxdg [-T version] upgrade diskgroup policy preferrred_plex_name
Rewrite disk headers, vxdg flush diskgroup targetdg object... vxvol -g diskgroup rdpol select vol_name
configuration copies, and
or
kernel log copies in a disk Mirror an existing plex vxassist -g diskgroup mirror vol_name
group. vxdctl enable (for all disk groups)
Add a log to a volume vxassist –g diskgroup addlog vol_name
Move an object between
vxdg move sourcedg targetdg object...
disk groups
Split objects between disk
vxdg split sourcedg targetdg object...
groups
VERITAS Education http://us.training.veritas.com 800-327-2232 (option 2) 1
Copyright © 2004 VERITAS Software Corporation. All Rights Reserved. VERITAS, VERITAS Software, the VERITAS logo, and all other VERITAS product names and slogans are trademarks or
registered trademarks of VERITAS Software Corporation in the US and/or other countries. Other product names and/or slogans mentioned herein may be trademarks or registered trademarks of
their respective companies. Specifications and product offerings subject to change without notice. Printed in USA and the EU. March 2004.
VOLUME CONFIGURATION OPERATIONS VERITAS FILE SYSTEM ADMINISTRATION
Action Command Line Action Command Line
vxassist -g diskgroup growto vol_name mkfs –F vxfs [generic_options] [-o
Make a VxFS file system
new_length vxfs_options] char_device [size]
vxassist -g diskgroup growby vol_name mount –F vxfs [generic_options] [-o
Mount a file system
length_change vxfs_options] block_device mount_point
vxassist -g diskgroup shrinkto vol_name Unmount a file system umount mount_point
Resize a volume
new_length
Determine file system type fstyp [-v] block_device
vxassist -g diskgroup shrinkby vol_name
length_change Report free blocks/inodes df –F vxfs [-o s] mount_point
vxresize -g diskgroup vol_name fsck –F vxfs [generic_options] [y|Y] [n|N]
Check/repair a file system
[+|-]length character_device
vxdisk -g diskgroup resize disk_name fasdm [-b newsize] [-r raw_device]
Resize a dynamic LUN Resize a file system
length=attribute mount_point
vxupgrade [-n new_version] [-r raw_device]
Upgrade the VxFS layout
mount_point
Display layout version vxupgrade mount_point
Report on directory
fsadm –D mount_point
fragmentation
Report on extent
fsadm –E [-l largesize] mount_point
fragmentation
Defragment directories fsadm –d mount_point
Defragment extents fsadm –e mount_point
Reorganize a file system to
fsadm –o largefiles mount_point
support files > 2GB
Activate file change log fcladm on mount_point
fsadm -F vxfs -o log=size[,logdev=device]
Resize the intent log
mount_point
fsck –F vxfs [generic_options]
Change default logging
–o delaylog|tmplog|nodatainlog|blkclear
behavior
block_device mount_point

VERITAS Education http://us.training.veritas.com 800-327-2232 (option 2) 2


Copyright © 2004 VERITAS Software Corporation. All Rights Reserved. VERITAS, VERITAS Software, the VERITAS logo, and all other VERITAS product names and slogans are trademarks or
registered trademarks of VERITAS Software Corporation in the US and/or other countries. Other product names and/or slogans mentioned herein may be trademarks or registered trademarks of
their respective companies. Specifications and product offerings subject to change without notice. Printed in USA and the EU. March 2004.
POINT-IN-TIME COPIES: STANDARD
Action Command Line
vxassist -g diskgroup [-b] snapstart orig
Create a traditional volume
snapshot vxassist -g diskgroup snapshot origvol
snapvol
Display information about
vxassist –g diskgroup snapprint origvol
traditional volume snapshots
Reassociate a traditional vxassist -g diskgroup [-o
snapshot resyncfromreplica] snapback snapvol
Dissociate a traditional
vxassist -g diskgroup snapclear snapvol
volume snapshot
mount -F vxfs -o
Create a file system
snapof=origfs[,snapsize=size] destination
snapshot
snap_mount_point
Back up a file system
vxdump [options] [snap_mount_point]
snapshot
Remove a file system
umount snap_mount_point
snapshot

VERITAS Education http://us.training.veritas.com 800-327-2232 (option 2) 3


Copyright © 2004 VERITAS Software Corporation. All Rights Reserved. VERITAS, VERITAS Software, the VERITAS logo, and all other VERITAS product names and slogans are trademarks or
registered trademarks of VERITAS Software Corporation in the US and/or other countries. Other product names and/or slogans mentioned herein may be trademarks or registered trademarks of
their respective companies. Specifications and product offerings subject to change without notice. Printed in USA and the EU. March 2004.

Potrebbero piacerti anche