hpux disks

create PV

find free devices with:

ioscan -funCdisk|grep dsk|awk '{print $1}'|xargs -i pvdisplay {} >/dev/null

note: use the raw device

pvcreate /dev/rdsk/c32t0d3
pvcreate /dev/rdsk/c34t0d3
pvcreate /dev/rdsk/c36t0d3
pvcreate /dev/rdsk/c38t0d3

create VG

mkdir /dev/vg_dbback

major number is 64 for lvm find minor number with

ll /dev/vg*/group

mknod /dev/vg_dbback/group c 64 0x040000

create and extend vg

vgcreate -s 32 vg_dbback /dev/dsk/c32t0d3
vgextend vg_dbback /dev/dsk/c34t0d3 /dev/dsk/c36t0d3 /dev/dsk/c38t0d3

create LV

find PE from vgdisplay

lvcreate -l 19517 -n lv_rman /dev/vg_dbback

create FS

newfs -F vxfs -o largefiles /dev/vg_dbback/rlv_rman

mkdir /rman_tmp

mount /dev/vg_dbback/lv_rman /rman_tmp

Sync files

rsync -av /rman/* /rman_tmp

rsync -av --exclude='*.arc' /rman/* /rman_tmp