Disk mirroring AIX

hi guys,
output from the lspv comands for both hdisk1 and hdisk2 is below. seems like I will have to free some space on hdisk0 to have around 500 PPS free and then mirror /t24 app directory. Can you please advise me on how to go about it. Apologies I am not an AIX expert so am asking basic questions.

# lspv hdisk0
PHYSICAL VOLUME:    hdisk0                   VOLUME GROUP:     rootvg
PV IDENTIFIER:      00c739e22258cb96 VG IDENTIFIER     00c739e200004c000000011c2258cc13
PV STATE:           active
STALE PARTITIONS:   0                        ALLOCATABLE:      yes
PP SIZE:            256 megabyte(s)          LOGICAL VOLUMES:  12
TOTAL PPs:          546 (139776 megabytes)   VG DESCRIPTORS:   2
FREE PPs:           420 (107520 megabytes)   HOT SPARE:        no
USED PPs:           126 (32256 megabytes)    MAX REQUEST:      1 megabyte
FREE DISTRIBUTION:  109..39..54..109..109
USED DISTRIBUTION:  01..70..55..00..00
# lspv hdisk1
PHYSICAL VOLUME:    hdisk1                   VOLUME GROUP:     rootvg
PV IDENTIFIER:      00c739e2222bf6b9 VG IDENTIFIER     00c739e200004c000000011c2258cc13
PV STATE:           active
STALE PARTITIONS:   0                        ALLOCATABLE:      yes
PP SIZE:            256 megabyte(s)          LOGICAL VOLUMES:  10
TOTAL PPs:          546 (139776 megabytes)   VG DESCRIPTORS:   1
FREE PPs:           8 (2048 megabytes)       HOT SPARE:        no
USED PPs:           538 (137728 megabytes)   MAX REQUEST:      1 megabyte
FREE DISTRIBUTION:  00..00..00..00..08
USED DISTRIBUTION:  110..109..109..109..101
aojhaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dfkeCommented:
what is the output of lsvg -l rootvg?
0
aojhaAuthor Commented:
Hi dfke,
output is below.
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
hd5                 boot       1       2       2    closed/syncd  N/A
hd6                 paging     2       4       2    open/syncd    N/A
hd8                 jfs2log    1       2       2    open/syncd    N/A
hd4                 jfs2       8       16      2    open/syncd    /
hd2                 jfs2       24      48      2    open/syncd    /usr
hd9var              jfs2       1       2       2    open/syncd    /var
hd3                 jfs2       8       16      2    open/syncd    /tmp
hd1                 jfs2       1       2       2    open/syncd    /home
hd10opt             jfs2       12      24      2    open/syncd    /opt
lg_dumplv           sysdump    8       8       1    open/syncd    N/A
fslv00              jfs2       480     480     1    open/syncd    /t24
fslv01              jfs2       40      40      1    open/syncd    /swtmp
fslv02              jfs2       20      20      1    open/syncd    /imtf
0
woolmilkporcCommented:
Hi,
according to the posts in your related question it will not be possible to clear enough space on hdisk0 for mirroring /t24.
You need at least ~ 480 PPs, you have ~ 420
Even if we would shrink e.g. /, /usr. sysdump or /var, which are rather big, this could never give us 60 PPs.
 
So, if you can't get additional harddisks, the only possibility to spread I/O more evenly over the hds will be splitting /t24.
 
Please tell us whether you would like to do that.
 
wmp
 
0
Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

woolmilkporcCommented:
Hi again,
I've just created a small script to move half of your /t24 volume to hdisk0.
If you wish to use it, please do so off-shift, and make sure to have a valid backup (just in case ...)
The script should be run only once, because running it again would mean migrating the same partitions one more time, which will, of course, have no effect.
A last chance for mirroring /t24 could exist if the FS had enough free space to shrink it for ~ 60 partitions ( ~ 15 GB in your case).  Look at the FS by issuing 'df -g /t24' and examine the 'Free' column.
Please post how you wish to proceed in this case.
 
wmp
 
 
 

#!/bin/ksh
 
LV=fslv00
target=hdisk1
numlps=240
 
count=1
 
while [ ${count} -le ${numlps} ]
 
        do
                echo Partition ${count} of ${LV} being processed ...
                echo migratelp ${LV}/${count} ${target}
                count=$(($count+1))
        done
 
exit

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
woolmilkporcCommented:
Sorry, the 'target' variable in line 4 must be set to 'hdisk0', of course!
0
woolmilkporcCommented:
... and the 'echo' statement before 'migratelp' (I put it there for testing) must be removed.
0
aojhaAuthor Commented:
Hi wmp,

looks like I can free up some space in the /t24 filesystem. Currently there is only 13.3 gig available. I can possiblfe free up around 15 more gig. Can I then reduce the /t24 filesystem using smitty and then make it mirrored ?

Regards,

Atap
0
woolmilkporcCommented:
Hi,
yes, if you then have enough partitions available.
After freeing up some space in /t24, use
'chfs -a size=-15G /t24' (or use smit)  to reduce the filesystem's size.
Look at 'lspv hdisk0'. There must be at least as much free partitions as is the actual size of /t24 (use 'lspv -l hdisk1' to check /t24)
Then do
'mklvcopy -u 2 fslv00 2 hdisk0' (or use smit).
-u 2 is to allow for using 2 hdisks.
 
Please come back here (or open a new question) in case you should encounter problems.
 
Good luck!
 
Norbert (wmp)

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.