1: Backup current Perl directories
# cd /opt
# mv perl perl.old
# cd /usr/opt
# mv perl perl.old
2: Wake up the alternate root volume group disk
Replace hdiskX with the actual disk identifier of your alt_rootvg.
# alt_rootvg_op -W -d hdiskX # Wake up the alt_rootvg disk
3: Copy Perl from the alternate rootvg to the active filesystem
# cd /alt_inst/opt
# cp -rp perlX /opt/
# cd /alt_inst/usr/opt/perlX
# cp -rp perlX /usr/opt/
Note: Replace perlX with the actual Perl directory name from the alt_rootvg.
4: Create symbolic link for Perl binary
# cd /usr/bin
# ln -s /usr/opt/perlX/bin/perlX perl
5: Verify Perl version
# perl -v
6: Put the alternate disk back to sleep
# alt_rootvg_op -S -d hdiskX # Sleep the alt_rootvg disk
Summary:
- This procedure backs up your current Perl installation.
- Activates the alternate rootvg disk.
- Copies the old Perl installation from it.
- Creates a symlink so perl points to the old version.
- Then puts the alternate disk back to sleep.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Restore Perl from Alternate Rootvg on AIX
1: Copy Perl directories from alternate rootvg
# cp -pr /alt_inst/usr/opt/perl5 /usr/opt/
# cp -pr /alt_inst/opt/perl5 /opt/
2: Create a symbolic link for perl binary
# cd /usr/local/bin
# ln -s /usr/opt/perl5/bin/perl perl
3: Verify Perl version
# perl -V
No comments:
Post a Comment