File system creation procedure
- Create volume groups
Two volume groups,
pdvg
andsegvg
, are created to contain the/var/pd
and/var/psf/segments
file systems. Creating separate volume groups helps spread I/O across multiple actuators, which can improve performance. Thepdvg
volume group contains the important InfoPrint Manager database objects and should be backed up at regular intervals. Thesegvg
volume group contains the segmented print files, and can be considered to be transient data. If you have multiple hard drives available for use withsegvg
, striping across these disks provides multiple heads accessing the data for faster I/O performance, which is useful when driving high speed/high resolution printers.Note: A 128 MB Physical Partition size is recommended for 73.4GB drives. If your server has larger or smaller drives, you should adjust this value proportionally.- Create
pdvg
volume group:smitty mkvg VOLUME GROUP name [pdvg] Physical partition SIZE in megabytes [128] PHYSICAL VOLUME names [hdisk1] Activate volume group AUTOMATICALLY [yes] at system restart? Volume Group MAJOR NUMBER [] Create VG Concurrent Capable? [no] Auto-varyon in Concurrent Mode [no] LTG Size in kbytes [256]
Commandline:mkvg -f -y'pdvg' -s'128' hdisk1
- Create
segvg
volume groupsmitty mkvg VOLUME GROUP name [segvg] Physical partition SIZE in megabytes [128] PHYSICAL VOLUME names [hdisk2 hdisk3] Activate volume group AUTOMATICALLY [yes] at system restart? Volume Group MAJOR NUMBER [] Create VG concurrent capable? [no] Auto-varyon in Concurrent Mode [no] LTG size in kbytes [128]
Commandline:mkvg -f -y'segvg' -s'128' hdisk2 hdisk3
Note: You need to divide the drives your server has available between your Volume Groups.
- Create
- Create logical volumes
The logical volumes are created to contain the file systems. Since
/var/psf/segments
is a third level directory,/var/psf
must be created first, so that it is mounted before/var/psf/segments
. If for some reason you create them in the wrong order, you will need to edit/etc/filesystems
to correct the order. Try to avoid this.To calculate the number of
LOGICAL PARTITIONS
, issuelsvg pdvg
to get the number of free physical partitions available on the hard drive. Use a number roughly 30 less than the number of free physical partitions to fill the entire drive with the volume group.- Create
lvpd
logical volumesmitty mklv Volume Group name [pdvg] Logical volume NAME [lvpd] VOLUME GROUP name [pdvg] Number of LOGICAL PARTITIONS [512] PHYSICAL VOLUME names [hdisk1] Logical volume TYPE [jfs] POSITION on physical volume middle RANGE of physical volumes minimum MAXIMUM NUMBER of PHYSICAL VOLUMES 1 to use for allocation Number of COPIES of each logical 1 partition Mirror Write Consistency? active Allocate each logical partition copy yes on a separate physical volume RELOCATE the logical volume during yes reorganization Logical Volume label /var/pd MAXIMUM NUMBER of LOGICAL PARTITIONS 512 Enable BAD BLOCK relocation yes SCHEDULING POLICY for reading/writing parallel logical partion copies Enable WRITE VERIFY? no File containing ALLOCATION MAP [] Stripe Size [Not Striped]
Commandline:mklv -y'lvpd' -t'jfs' -u'1' -L'/var/pd' pdvg 512 hdisk1
- Create
lv01
logical volumesmitty mklv Volume Group NAME [rootvg] Logical Volume NAME [lv01] VOLUME GROUP name [rootvg] Number of LOGICAL PARTITIONS [512] PHYSICAL VOLUME names [hdisk0] Logical volume TYPE [jfs] POSITION on physical volume middle RANGE of physical volumes minimum MAXIMUM NUMBER of PHYSICAL VOLUMES 1 to use for allocation Number of COPIES of each logical 1 partition Mirror Write Consistency? active Allocate each logical partition copy yes on a separate physical volume Relocate the logical partition during yes reorganization Logical Volume label /var/psf MAXIMUM NUMBER of LOGICAL PARTITIONS 512 Enable BAD BLOCK relocation yes SCHEDULING POLICY for reading/writing parallel logical partion copies Enable WRITE VERIFY? no File containing ALLOCATION MAP [] Stripe Size [Not Striped]
Commandlinemklv -y'lv01' -t'jfs' -u'1' -L'/var/psf/' rootvg 512 hdisk0
- Create
lvpsfs
logical volumesmitty mklv Volume Group name [segvg] Logical volume NAME [seglv] VOLUME GROUP name [segvg] Number of LOGICAL PARTITIONS [512] PHYSICAL VOLUME names [hdisk2 hdisk3] Logical volume TYPE [jfs] POSITION on physical volume middle RANGE of physical volumes minimum MAXIMUM NUMBER of PHYSICAL VOLUMES 2 to use for allocation Number of COPIES of each logical 1 partition Mirror Write Consistency? active Allocate each logical partition copy yes on a separate physical volume RELOCATE the logical volume during yes reorganization Logical Volume label /var/psf/segments MAXIMUM NUMBER of LOGICAL PARTITIONS 512 Enable BAD BLOCK relocation yes SCHEDULING POLICY for reading/writing parallel logical partion copies Enable WRITE VERIFY? no File containing ALLOCATION MAP [] Stripe Size [Not Striped]
- Create