How to distribute paging space among multiple PV

Greetings

I have an older box (H50) that has it's paging space setup the following way:

$ lsps -a
Page Space      Physical Volume   Volume Group    Size %Used Active  Auto  Type
paging00        hdisk0            rootvg         224MB     1     yes   yes    lv
hd6             hdisk0            rootvg         288MB     1     yes   yes    lv

So here's what I'm thinking. If all my paging space is on hdisk0, and if hdisk0 were to go bad, I'd be screwed, glued, and tatooed.

Therefore, my question is this - How do I distribute my paging space evenly between two seperate physical volumes?

Much thanks!

outta.

Mirror your disks

My disks are mirrored:

> lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            active            537         265         106..00..00..56..103
hdisk1            active            537         265         106..00..00..51..108
> lsvg -l rootvg
rootvg:
LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT POINT
hd5                 boot       2     4     2    closed/syncd  N/A
hd6                 paging     36    72    2    open/syncd    N/A
paging00            paging     28    56    2    open/syncd    N/A
hd8                 jfslog     1     2     2    open/syncd    N/A
hd4                 jfs        8     16    2    open/syncd    /
hd2                 jfs        179   358   2    open/syncd    /usr
hd9var              jfs        5     10    2    open/syncd    /var
hd3                 jfs        4     8     2    open/syncd    /tmp
hd1                 jfs        3     6     2    open/syncd    /home
hd10opt             jfs        6     12    2    open/syncd    /opt

You could use migratepv to move one of the paging spaces to a different disk. I believe it would be:

migratepv -l paging00 hdisk0 targetdisk

I highly recommend checking the man page for migratepv to verify I have the syntax correct before running that though . . . .

outta,
Your paging spaces are already mirrored onto both hdisk0 and hdisk1, lsps is just reporting that they reside on hdisk0. If you did loose hdisk0, the box would crash, but you should be able to just start the machine up and everything should be ok. If this is all the disk you have, remove paging00 and increase the size of hd6, as it's not recommended to have two paging devices on the same disk. If you do have another volume group, create a new paging device on it, and remove paging00

On a slightly related topic, what is you primary dump device, as if hd6 is your primary dump device I don't think it is supported, as the dump device cannot be mirrored.

Regards
Craig Murray