Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Native AIX TL Upgrade on a VIO Server Post 303038451 by wibhore on Tuesday 3rd of September 2019 10:09:23 AM
Old 09-03-2019
Native AIX TL Upgrade on a VIO Server

What happens if we perform a Native AIX TL Upgrade on a VIO server? I mean instead of updateios I logged into oem_setup_env and ran a update_all to a new TL.
 

10 More Discussions You Might Find Interesting

1. AIX

How can I take control the native X server on AIX5.3 via VNC ?

Hello I need to be able to take control of the native X server ( :0.0 ) on AIX5.3 workstations via VNC to be able to assist users...seeing what they are doing is much better than them telling me what they are doing. I know that this can be done on linux so it should doable on AIX. On linux... (0 Replies)
Discussion started by: art
0 Replies

2. AIX

urgent problems with ESS SAN, SDD upgrade on AIX 5.3 server

Hi all, Sorry if this is in the wrong place but needed to make sure lots of people saw this so that hopefully someone will be able to help. Basically i've upgraded a test server from 4.3 to 5.3 TL04. The server has hdisk0 and 1 as rootvg locally but then has another vg setup on our ESS... (5 Replies)
Discussion started by: djdavies
5 Replies

3. AIX

AIX native MPIO

Hi folks, does anybody have a link to a documentation how to implement native MPIO on AIX? We are using EMC PowerPath and Datacore SanSymphony/Cambex for this so far and I wasn't able to find a good description on that topic. All I know so far is that mkpath, chpath and lspath are used to... (3 Replies)
Discussion started by: zaxxon
3 Replies

4. AIX

finding memory frequency on vio server in aix

is it possible to find out memory frequency(speed) in vio server in aix? Regards Manoj (0 Replies)
Discussion started by: manoj.solaris
0 Replies

5. AIX

vio server and vio client

Hi, I want to know wheather partition size for installation of vio client can be specified on vio server example If I am installing vio server on blade with 2*300gb hard disk,after that I want to create 2 vio client (AIX Operating system) wheather I can specify hard disk size while... (1 Reply)
Discussion started by: manoj.solaris
1 Replies

6. AIX

Uninstall native MPIO driver on AIX

Hi, I was trying to uninstall the native MPIO driver on the AIX 6.1 machine we have in our lab and ran into a whole bunch dependent filesets initially. I deleted the disks, fcsX, fscsiX, fcnetX and tried again, but ran into the same error. Subsequently, I figured out that the OS disks in... (4 Replies)
Discussion started by: ronykris
4 Replies

7. AIX

Upgrading from native MPIO to SDDPCM AIX 6.1

We have AIX 6.1 system attached to SAN disks (DS4700 and DS8100) thru SVC. Initially when the system was I forgot to install sddpcm drivers. and wanted to know how can i go with the installation of the sddpcm drivers. My understandin going thru the manual ... (3 Replies)
Discussion started by: mk8570
3 Replies

8. AIX

mq upgrade from version 6 to 7 in aix server

Hi What are the steps to be followed when upgrading MQ version from 6 to 7 in aix server? cbsdbprd01 # oslevel -s 5300-10-01-0921 cbsdbprd01 # lslpp -l | grep -i mq mqm.base.runtime 6.0.2.1 COMMITTED WebSphere MQ Runtime for mqm.base.samples 6.0.2.1 ... (0 Replies)
Discussion started by: samsungsamsung
0 Replies

9. AIX

vio server ethernet to vio client ethernet(concepts confusing)

Hi In the vio server when I do # lsattr -El hdisk*, I get a PVID. The same PVID is also seen when I put the lspv command on the vio client partition. This way Im able to confirm the lun using the PVID. Similarly how does the vio client partition gets the virtual ethernet scsi client adapter... (1 Reply)
Discussion started by: newtoaixos
1 Replies

10. AIX

AIX native SNMP producing limited results when walking MIB tree

The company I work for has various AIX servers that I've recently migrated to AIX 7.1 (from 6.1). Some are powerHA clusters some are not. Likewise, the systems engineer that I replaced had net-snmp installed on said clustered systems. Long story short I am re-invoking AIX's native SNMP (v3) for... (1 Reply)
Discussion started by: davix
1 Replies
Jifty::Manual::Upgrading(3pm)				User Contributed Perl Documentation			     Jifty::Manual::Upgrading(3pm)

NAME
Jifty::Manual::Upgrading - How-to change your application database over time DESCRIPTION Jifty provides a way for you to upgrade the database schema and data of your application between versions. If all you are doing is adding new models or columns to existing models Jifty will do the upgrade almost automatically. If more extensive changes are required you need to write some code to tell Jifty what to do. TERMINOLOGY
Be sure you know the following terms before reading this document: o "schema" in Jifty::Manual::Glossary o "schema version" in Jifty::Manual::Glossary o "database version" in Jifty::Manual::Glossary HOW TO
General Instructions For all of these actions, the the database version stored in your Jifty configuration is significant. See the value stored in etc/config.yml at: framework: Database: Version: 0.0.1 Make all your code changes using the version number you are going to use. Once you have finished updating your code and are ready to test, bump the version stored in etc/config.yml to match the new version you are going to use. If you are writing tests as you go (shame on you if you aren't!), you should be able to run: perl Makefile.PL make make test to test the latest version and check for problems. Once you are sure you've worked out the kinds, you may perform the actual upgrade by running: bin/jifty schema --setup This will take care of the work of adding any new columns and models, dropping old columns, and running any upgrade scripts you have scheduled. Basic column and model operations Adding a new model Create your model just as you normally would: bin/jifty model --name MyModel Then, you need to tell Jifty at which version of your application the model was created. To do this add a since sub to your new model class. sub since { '0.0.5' } Adding a new column to an existing model When you have an existing model and decide that you need to add another column to it you also need to tell Jifty about this. This is done by using "since" as well. However, the "since" goes into the column definition itself. column created_by => refers_to Wifty::Model::User, since '0.0.20'; Dropping a column from a model CAUTION: Be aware that all the data that was stored in this column will be destroyed at upgrade if you follow this procedure. If you no longer need a particular column in your model, you can have it dropped by setting the "till" property on your column definition. column extra_info type is 'text', label is 'Extra info', till '0.0.13'; The version you use for "till" is the version the drop is effective. In the example above, the "extra_info" column will be available in version 0.0.12, but not in version 0.0.13. This column will be dropped from the schema at the next upgrade, which will destroy all data stored in that column. TODO Dropping a model Data migration and schema changes If a file called Upgrade.pm exists in your application it will be run by "jifty schema --setup". Upgrade.pm can be used to make any schema changes or to manipulate your applications data. At the very least your Upgrade.pm should contain the following: package MyApp::Upgrade; use base qw(Jifty::Upgrade); use Jifty::Upgrade qw( since rename ); since '0.6.1' => sub { .... }; The "since" function is where you do all the work. Each "since" will be run in version order until the application is up to date. Renaming a column To rename a column, you need to make sure that your schema and upgrade script both cooperate in the process. Your schema will record changes to your model API and the upgrade script will tell Jifty about the rename. The old column name needs to marked with "till" to notify Jifty that the column name no longer exists. The new column name needs to marked with "since" to notify Jifty that a column by the new name exists. Here we are renaming "zip" to "postcode": column zip => type is 'text', label is 'ZIP code', till '0.6.1'; column postcode => type is 'text', label is 'Postal code', since '0.6.1'; Notice that both "since" and "till" have the same version number set. This is the version number the change will take place. Before you upgrade, though, you must tell Jifty that a rename is happening here, which is done in your upgrade script: use MyApp::Upgrade; use base qw(Jifty::Upgrade); use Jifty::Upgrade qw( since rename ); since '0.6.1' => sub { rename( table => 'MyApp::Model::User', column => 'zip', to => 'postcode' ); }; Migrating data You can perform any action you want inside the "since" blocks of your upgrade script. In the case of data migration, you might want to convert your data from one form to another. For example, let's say our users always gave us "first_name" and "last_name" before, but we've added a new column "display_name" which will normally contain their name in "last, first" format, but could be customized per-account. We want to go ahead and initialize this new column during the upgrade. In your upgrade script, you could add: since '0.2.4' => sub { my $users = MyApp::Model::UserCollection->new( current_user => Jifty->app_class('CurrentUser')->superuser ); $users->unlimit; while (my $user = $users->next) { # error checks may save you from hours of debugging my ($status, $msg) = $user->set_display_name( join(', ', $user->last_name, $user->first_name) ); Jifty->log->error("Couldn't change user record: $msg") unless $status; } }; Note that collection created using super user to pass ACL checks and other restrictions, if your models are protected from super user then you may have problems. See also Jifty::Manual::AccessControl. SEE ALSO
Jifty::Upgrade, Jifty::Script::Schema, Jifty::Manual::Models, Jifty::Manual::Tutorial, Jifty::Manual::Glossary perl v5.14.2 2010-09-25 Jifty::Manual::Upgrading(3pm)
All times are GMT -4. The time now is 09:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy