return to PRS Technologies website

HP/UX Logical Volume Manager notes



Here's an example of the whole thing in a script. This will need to be edited before use.

Note: When using 2 Gb logical volumes with a size of 2,048 Mb, create Informix chunks that are 2,097,150 Kb.
mkdir /dev/vg04

mknod /dev/vg04/group c 64 0x040000
ls -ls /dev/vg04

pvcreate /dev/rdsk/c5t1d3

vgcreate /dev/vg04 /dev/dsk/c5t1d3

lvcreate -n root_dbs     /dev/vg04
lvcreate -n physical_dbs /dev/vg04
lvcreate -n logical_dbs  /dev/vg04
lvcreate -n chunk1       /dev/vg04
lvcreate -n chunk2       /dev/vg04
lvcreate -n chunk3       /dev/vg04
lvcreate -n chunk4       /dev/vg04
lvcreate -n chunk5       /dev/vg04
lvcreate -n chunk6       /dev/vg04
lvcreate -n chunk7       /dev/vg04

lvextend -L 2048 /dev/vg04/root_dbs     /dev/dsk/c5t1d3
lvextend -L 2048 /dev/vg04/physical_dbs /dev/dsk/c5t1d3
lvextend -L 2048 /dev/vg04/logical_dbs  /dev/dsk/c5t1d3
lvextend -L 2048 /dev/vg04/chunk1       /dev/dsk/c5t1d3
lvextend -L 2048 /dev/vg04/chunk2       /dev/dsk/c5t1d3
lvextend -L 2048 /dev/vg04/chunk3       /dev/dsk/c5t1d3
lvextend -L 2048 /dev/vg04/chunk4       /dev/dsk/c5t1d3
lvextend -L 2048 /dev/vg04/chunk5       /dev/dsk/c5t1d3
lvextend -L 2048 /dev/vg04/chunk6       /dev/dsk/c5t1d3
lvextend -L 2048 /dev/vg04/chunk7       /dev/dsk/c5t1d3

chmod 660 /dev/vg04/rroot_dbs
chmod 660 /dev/vg04/rphysical_dbs
chmod 660 /dev/vg04/rlogical_dbs
chmod 660 /dev/vg04/rchunk1
chmod 660 /dev/vg04/rchunk2
chmod 660 /dev/vg04/rchunk3
chmod 660 /dev/vg04/rchunk4
chmod 660 /dev/vg04/rchunk5
chmod 660 /dev/vg04/rchunk6
chmod 660 /dev/vg04/rchunk7

chown informix:informix /dev/vg04/rroot_dbs
chown informix:informix /dev/vg04/rphysical_dbs
chown informix:informix /dev/vg04/rlogical_dbs
chown informix:informix /dev/vg04/rchunk1
chown informix:informix /dev/vg04/rchunk2
chown informix:informix /dev/vg04/rchunk3
chown informix:informix /dev/vg04/rchunk4
chown informix:informix /dev/vg04/rchunk5
chown informix:informix /dev/vg04/rchunk6
chown informix:informix /dev/vg04/rchunk7

ln -s /dev/vg04/rroot_dbs      /RawSpaces/root_dbs
ln -s /dev/vg04/rphysical_dbs  /RawSpaces/physical_dbs
ln -s /dev/vg04/rlogical_dbs   /RawSpaces/logical_dbs
ln -s /dev/vg04/rchunk1        /RawSpaces/chunk1
ln -s /dev/vg04/rchunk2        /RawSpaces/chunk2
ln -s /dev/vg04/rchunk3        /RawSpaces/chunk3
ln -s /dev/vg04/rchunk4        /RawSpaces/chunk4
ln -s /dev/vg04/rchunk5        /RawSpaces/chunk5
ln -s /dev/vg04/rchunk6        /RawSpaces/chunk6
ln -s /dev/vg04/rchunk7        /RawSpaces/chunk7



mirror_stripe.ksh Script to do mirroring and striping at the same time on HP-UX.
mirror_stripe_config.ksh Config file used with above script.



Change the size of /usr, /var, /tmp filesystems

If you want to change the size of a Unix filesystem that is always mounted and used by the operating system, it is a problem because you can only change the size of a filesystem that is un-mounted. This is how you get around that problem.

The following example is how I increased the size of /usr (on /dev/vg00/lvol7) from 400 MG to 700 MG.