** Myself
Step 1. Pool the physical volumes into a volume group. To complete this step:
mkdir /dev/vgnn
mknod /dev/vgnn/group c 64 0xNN0000
#The c following the device file name specifies that group is a
#character device file.The 64 is the major number for the group device file; it will #always be 64.The 0xNN0000 is the minor number for the group file in hexadecimal.
#Note that each particular NN must be a unique number across all
volume groups.
#### if minor already in use then rm /dev/vgnn/group
Step 2. Select one or more disks
ioscan –fnc disk
# if CLAIMED but no device file use to
insf -e
Step 3. Initialize each disk as an LVMdisk by using the pvcreate
pvcreate /dev/rdsk/cXtXdX
# for an HP 9000 (PA-RISC)System; on an HP Integrity Server, make sure that the device filespecifies the HP-UX partition number ,enter:
pvcreate /dev/rdsk/cXtXdX
Step 4. Create volume group on disk
vgcreate -s 16 /dev/vg01 /dev/dsk/cxtxdx
#vgcreate [-f] [-A autobackup] [-x extensibility] [-e max_pe]
[-l max_lv] [-p max_pv] [-s pe_size] [-g pvg_name] vg_name
pv_path .
Step 5.Create logical volume
lvcreate –L 200M -n ora01 /dev/vgnn
#lvcreate [-A autobackup] [-c mirror_consistency]
[-C contiguous] [-d schedule] [-D distributed]
[-i stripes -I stripe_size] [-l le_number | -L lv_size]
[-m mirror_copies] [-M mirror_write_cache] [-n lv_name]
[-p permission] [-r relocate] [-s strict] vg_name
-- or –
for i in 1 2 3 4 5 6 7 8
> do
> lvcreate -L 2000M -n lvol$i /dev/vg04
> done
Step 6.Create file system
mkfs -F vxfs -o largefiles /dev/vnn/lvolnn
-- or –
for i in 1 2 3 4 5 6 7 8
> do
> mkfs -F vxfs -o largefiles /dev/v04/lvol$i
> done
Step 7. Edit fstab
Step 8. Mount fstab
Mount -a
Increase the logical volume size to 400 MB:
lvextend -L 400 /dev/vg01/lvol4 (mirror or no mirror is same)
fsadm -b <new size in sectors bytes> /mountpoint = fsadm -e /mountpoint
fsadm -b 409600 /home
--or –
#No online jfs
umount /dev/vg01/lvol4
extendfs /dev/vg01/lvol4
mount –a
# if Step 4. you want to change parameter volume group then
vgchange –a n vgxx
vgreduce vgxx /dev/dsk/cxtxdx
pvremove /dev/dsk/cxtxdx
pvcreate –f /dev/rdsk/cXtXdX
Go to Step 1
0 comments:
Post a Comment