Upgrading Moab may require changing the database. Please see the README.database file included in the Moab distribution for specific version information. You can test the newest version of Moab on your system (before making the new version live) to verify your policies, scripts, and queues work the way you want them to.
The Moab 5.4 uninstaller does not remove the 5.4 man pages. These must be removed manually when upgrading from Moab 5.4. You can use this script to remove the man pages: ------Start of script------ |
To upgrade Moab:
> tar -xzvf moab-6.0.0.tar.gz
> cd moab-6.0.0
Use the same configure options as when Moab was installed previously. If you cannot remember which options were used previously, check the config.log file in the directory where the previous version of Moab was installed from.
For a complete list of configure options, use ./configure --help.
The Moab server must be stopped before the new version is installed.
> mschedctl -k moab will be shutdown immediately
While Moab is down:
|
> sudo make install
Moab should be installed by root. If you cannot install Moab as root, please contact Customer Support. |
> moab --about Defaults: server=:42559 cfgdir=/opt/moab vardir=/opt/moab Build dir: /home/admin01/dev/moab/ Build host: node01 Build date: Thu Mar 5 13:08:47 MST 2009 Build args: NA Compiled as little endian. Version: moab server 5.0.0 (revision 12867) Copyright 2000-2008 Cluster Resources, Inc., All Rights Reserved
> moab
> moabd is a safe and recommended method of starting Moab if things are not installed in their default locations. |
The ODBC database schema has been updated for Moab 6.0. When updating Moab to version 6.0, the changes below must be applied to the database for database functionality to work. If the schema Moab expects to operate against is different from the actual schema of the database Moab is connected to, Moab might not be able to use the database properly and data might be lost. Below are the SQL statements required to update the schema for Moab 6.0.
< Description VARCHAR(1024), --- > Description TEXT, --- ALTER TABLE Events ADD COLUMN Name VARCHAR(64); CREATE TABLE Nodes ( ID VARCHAR(64), State VARCHAR(64), OperatingSystem VARCHAR(64), ConfiguredProcessors INTEGER UNSIGNED, AvailableProcessors INTEGER UNSIGNED, ConfiguredMemory INTEGER UNSIGNED, AvailableMemory INTEGER UNSIGNED, Architecture VARCHAR(64), AvailGres VARCHAR(64), ConfigGres VARCHAR(64), AvailClasses VARCHAR(64), ConfigClasses VARCHAR(64), ChargeRate DOUBLE, DynamicPriority DOUBLE, EnableProfiling INTEGER UNSIGNED, Features VARCHAR(64), GMetric VARCHAR(64), HopCount INTEGER UNSIGNED, HypervisorType VARCHAR(64), IsDeleted INTEGER UNSIGNED, IsDynamic INTEGER UNSIGNED, JobList VARCHAR(64), LastUpdateTime INTEGER UNSIGNED, LoadAvg DOUBLE, MaxLoad DOUBLE, MaxJob INTEGER UNSIGNED, MaxJobPerUser INTEGER UNSIGNED, MaxProc INTEGER UNSIGNED, MaxProcPerUser INTEGER UNSIGNED, OldMessages VARCHAR(64), NetworkAddress VARCHAR(64), NodeSubstate VARCHAR(64), Operations VARCHAR(64), OSList VARCHAR(64), Owner VARCHAR(64), ResOvercommitFactor VARCHAR(64), Partition VARCHAR(64), PowerIsEnabled INTEGER UNSIGNED, PowerPolicy VARCHAR(64), PowerSelectState VARCHAR(64), PowerState VARCHAR(64), Priority INTEGER UNSIGNED, PriorityFunction VARCHAR(64), ProcessorSpeed INTEGER UNSIGNED, ProvisioningData VARCHAR(64), AvailableDisk INTEGER UNSIGNED, AvailableSwap INTEGER UNSIGNED, ConfiguredDisk INTEGER UNSIGNED, ConfiguredSwap INTEGER UNSIGNED, ReservationCount INTEGER UNSIGNED, ReservationList VARCHAR(64), ResourceManagerList VARCHAR(64), Size INTEGER UNSIGNED, Speed DOUBLE, SpeedWeight DOUBLE, TotalNodeActiveTime INTEGER UNSIGNED, LastModifyTime INTEGER UNSIGNED, TotalTimeTracked INTEGER UNSIGNED, TotalNodeUpTime INTEGER UNSIGNED, TaskCount INTEGER UNSIGNED, VMOSList VARCHAR(64), PRIMARY KEY (ID) ); CREATE TABLE Jobs ( ID VARCHAR(64), SourceRMJobID VARCHAR(64), DestinationRMJobID VARCHAR(64), GridJobID VARCHAR(64), AName VARCHAR(64), User VARCHAR(64), Account VARCHAR(64), Class VARCHAR(64), QOS VARCHAR(64), OwnerGroup VARCHAR(64), JobGroup VARCHAR(64), State VARCHAR(64), EState VARCHAR(64), SubState VARCHAR(64), UserPriority INTEGER UNSIGNED, SystemPriority INTEGER UNSIGNED, CurrentStartPriority INTEGER UNSIGNED, RunPriority INTEGER UNSIGNED, PerPartitionPriority TEXT, SubmitTime INTEGER UNSIGNED, QueueTime INTEGER UNSIGNED, StartTime INTEGER UNSIGNED, CompletionTime INTEGER UNSIGNED, CompletionCode INTEGER, UsedWalltime INTEGER UNSIGNED, RequestedMinWalltime INTEGER UNSIGNED, RequestedMaxWalltime INTEGER UNSIGNED, CPULimit INTEGER UNSIGNED, SuspendTime INTEGER UNSIGNED, HoldTime INTEGER UNSIGNED, ProcessorCount INTEGER, RequestedNodes INTEGER, ActivePartition VARCHAR(64), SpecPAL VARCHAR(64), DestinationRM VARCHAR(64), SourceRM VARCHAR(64), Flags TEXT, MinPreemptTime INTEGER UNSIGNED, Dependencies TEXT, RequestedHostList TEXT, ExcludedHostList TEXT, MasterHostName VARCHAR(64), GenericAttributes TEXT, Holds TEXT, Cost DOUBLE, Description TEXT, Messages TEXT, NotificationAddress TEXT, StartCount INTEGER UNSIGNED, BypassCount INTEGER UNSIGNED, CommandFile TEXT, Arguments TEXT, RMSubmitLanguage TEXT, StdIn TEXT, StdOut TEXT, StdErr TEXT, RMOutput TEXT, RMError TEXT, InitialWorkingDirectory TEXT, UMask INTEGER UNSIGNED, RsvStartTime INTEGER UNSIGNED, BlockReason TEXT, BlockMsg TEXT, PSDedicated DOUBLE, PSUtilized DOUBLE, PRIMARY KEY (ID) ); CREATE TABLE Requests ( JobID VARCHAR(64), RIndex INTEGER UNSIGNED, AllocNodeList VARCHAR(1024), AllocPartition VARCHAR(64), PartitionIndex INTEGER UNSIGNED, NodeAccessPolicy VARCHAR(64), PreferredFeatures TEXT, RequestedApp VARCHAR(64), RequestedArch VARCHAR(64), ReqOS VARCHAR(64), ReqNodeSet VARCHAR(64), ReqPartition VARCHAR(64), MinNodeCount INTEGER UNSIGNED, MinTaskCount INTEGER UNSIGNED, TaskCount INTEGER UNSIGNED, TasksPerNode INTEGER UNSIGNED, DiskPerTask INTEGER UNSIGNED, MemPerTask INTEGER UNSIGNED, ProcsPerTask INTEGER UNSIGNED, SwapPerTask INTEGER UNSIGNED, NodeDisk INTEGER UNSIGNED, NodeFeatures TEXT, NodeMemory INTEGER UNSIGNED, NodeSwap INTEGER UNSIGNED, NodeProcs INTEGER UNSIGNED, GenericResources TEXT, ConfiguredGenericResources TEXT, PRIMARY KEY (JobID,RIndex) ); INSERT INTO ObjectType (Name,ID) VALUES ("Rsv",13); INSERT INTO ObjectType (Name,ID) VALUES ("RM",14); INSERT INTO ObjectType (Name,ID) VALUES ("Sched",15); INSERT INTO ObjectType (Name,ID) VALUES ("SRsv",16); INSERT INTO ObjectType (Name,ID) VALUES ("Sys",17); INSERT INTO ObjectType (Name,ID) VALUES ("TNode",18); INSERT INTO ObjectType (Name,ID) VALUES ("Trig",19); INSERT INTO ObjectType (Name,ID) VALUES ("User",20); INSERT INTO ObjectType (Name,ID) VALUES ("CJob",23); INSERT INTO ObjectType (Name,ID) VALUES ("GRes",30); INSERT INTO ObjectType (Name,ID) VALUES ("Gmetric",31); INSERT INTO ObjectType (Name,ID) VALUES ("Stats",39); INSERT INTO ObjectType (Name,ID) VALUES ("TJob",42); INSERT INTO ObjectType (Name,ID) VALUES ("Paction",43); INSERT INTO ObjectType (Name,ID) VALUES ("VM",45); INSERT INTO ObjectType (Name,ID) VALUES ("VPC",47); INSERT INTO ObjectType (Name,ID) VALUES ("JGroup",48); INSERT INTO EventType (Name,ID) VALUES ("TRIGTHRESHOLD",41); INSERT INTO EventType (Name,ID) VALUES ("VMCREATE",42); INSERT INTO EventType (Name,ID) VALUES ("VMDESTROY",43); INSERT INTO EventType (Name,ID) VALUES ("VMMIGRATE",44); INSERT INTO EventType (Name,ID) VALUES ("VMPOWERON",45); INSERT INTO EventType (Name,ID) VALUES ("VMPOWEROFF",46); INSERT INTO EventType (Name,ID) VALUES ("NODEMODIFY",47); INSERT INTO EventType (Name,ID) VALUES ("NODEPOWEROFF",48); INSERT INTO EventType (Name,ID) VALUES ("NODEPOWERON",49); INSERT INTO EventType (Name,ID) VALUES ("NODEPROVISION",50); INSERT INTO EventType (Name,ID) VALUES ("ALLSCHEDCOMMAND",51); INSERT INTO EventType (Name,ID) VALUES ("AMCANCEL",52); INSERT INTO EventType (Name,ID) VALUES ("AMDEBIT",53); INSERT INTO EventType (Name,ID) VALUES ("AMQUOTE",54); INSERT INTO EventType (Name,ID) VALUES ("AMRESERVE",55); INSERT INTO EventType (Name,ID) VALUES ("RMPOLLEND",56); INSERT INTO EventType (Name,ID) VALUES ("RMPOLLSTART",57); INSERT INTO EventType (Name,ID) VALUES ("SCHEDCYCLEEND",58); INSERT INTO EventType (Name,ID) VALUES ("SCHEDCYCLESTART",59); INSERT INTO EventType (Name,ID) VALUES ("JOBCHECKPOINT",60);