HP-UX HB v13.00 Ch-13 - LVM
HP-UX Handbook – Rev 13.00 Page 37 (of 110)
Chapter 13 LVM
October 29, 2013
# lvreduce -m 0 /dev/vg00/lvolX /dev/dsk/c1t6d0
Of course, this can also be done automatically using a shell loop, e.g.:
# for lvol in lvol8 lvol7 ... lvol1(specify all LVs you need to reduce)
> do
> lvreduce -m 0 /dev/vg00/$lvol /dev/dsk/c1t6d0
> done
Root Mirror (Itanium based Systems)
The following procedure shows how to mirror the root disk. Let c3t2d0 be the existing
primary disk and c2t1d0 the new mirror boot disk:
1. Setup the disk partitions
A. Create a partition description file:
# vi /tmp/partitionfile
2
EFI 100MB
HPUX 100%
B. Use the idisk(1M) command to partition the disk according to this file:
# idisk -wf /tmp/partitionfile /dev/rdsk/c2t1d0
idisk version: 1.2
********************** WARNING ***********************
If you continue you may destroy all data on this disk.
Do you wish to continue(yes/no)? yes
...
2. Create the new device files for the new partitions (c2t1d0s1 and c2t1d0s2)
# insf -e -C disk
3. Use mkboot(1M) to format the EFI partition (s1), populate it with the EFI files
under /usr/lib/efi/, format the LIF volume (part of s2), and populate it with the LIF
files (ISL, AUTO, HPUX, LABEL) under /usr/lib/uxbootlf:
# mkboot -e -l /dev/rdsk/c2t1d0
# efi_ls -d /dev/rdsk/c2t1d0s1 (to check EFI)
FileName Last Modified Size
EFI/ 5/19/2003 0
STARTUP.NSH 5/19/2003 336