Managing Systems and Workgroups: A Guide for HP-UX System Administrators

Administering a System: Managing Disks and Files
Managing File Systems
Chapter 6 629
Using HP-UX
Commands
Table 6-8 summarizes the commands you will need to do mirror set-up
and configuration tasks when you do not use SAM. Consult Section 1M of
the HP-UX Reference for the appropriate command line options to use.
Table 6-8 HP-UX Commands Needed to Create and Configure Mirroring
Task
Commands and
Options Needed
Creating a mirrored logical volume.
Subtasks:
Setting strict or nonstrict allocation.
Setting the Mirror Write Cache method.
Setting the Mirror Consistency Recovery method.
Setting parallel or sequential scheduling policy.
Setting contiguous allocation vs. noncontiguous allocation.
Creating a mirror copy within separate physical volume groups.
lvcreate -m
Add:
-s y or -s n
-M y or -M n
-c y or -c n
-d p or -d s
-C y or -C n
-s g
Removing a mirrored logical volume. lvremove
Increasing the number of mirror copies. lvextend -m
Reducing the number of mirror copies. lvreduce -m
Changing logical volume characteristics.
Subtasks:
Same tasks and options as for lvcreate above.
lvchange
Add:
(see above)
Creating physical volume groups to mirror across separate I/O
channels.
1. vgcreate
2. vgextend
Designating/changing whether a physical volume will serve as a
spare physical volume within the volume group.
One of:
vgextend -z y
vgextend -z n
pvchange -z y
pvchange -z -n