Commit Graph

52 Commits

Author SHA1 Message Date
daniceexi
7da34b6fc2 Make sure the hostname has been set before configure the statelite
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14794 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-08 06:25:22 +00:00
daniceexi
92e781fe74 Fixed the hang issue of reboot/shutdown a nfs-based statelite node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14631 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-12 07:50:29 +00:00
daniceexi
7ebf999353 The script to perform the partition of local disk for statelite node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14520 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-03 08:53:18 +00:00
daniceexi
13f418ce4b this file has incorrect permission
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14519 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-03 08:50:57 +00:00
daniceexi
a67a6bb1bf The script to perform the partition of local disk for statelite node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14348 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-16 14:08:55 +00:00
daniceexi
427b66827f Code drop for local hard disk to be used as persistent storage for statelite node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14346 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-16 14:02:36 +00:00
ligc
6258e5505f fix for bug 3496130: resolve hostname to ip address in /tftpboot/etc/<node>, copy resolv.conf from initrd into rootimg
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13037 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-08 09:00:26 +00:00
ligc
d77845f04e fix for bug 3523175: use nfsv3 to mount the statelite directories
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12484 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-03 04:31:35 +00:00
daniceexi
c444f232b8 defect 3370678:fix the problem that statelite could not handle the link,persistent option correctly
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10144 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-07-23 04:36:47 +00:00
mxi1
7b9fa084c0 for defect 3168785, add code for statelite comptiable reason.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8917 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-02-24 08:04:45 +00:00
mxi1
b6cd3ca5bf for defect 3178022,
added the full path of "mkdir" command in rc.statelite files

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8881 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-02-17 09:24:21 +00:00
jbjohnso
e748077621 Put hostname -s for rc.statelite
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8799 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-02-07 16:02:03 +00:00
mxi1
680a09572e the code to generate ifcfg-ethx files has been moved from rc.statelite to the enablekdump script
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8437 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-12-16 09:36:17 +00:00
mxi1
dd661c6aa0 code is committed for kdump feature
the "dump" attribute is added for the linuximage table

/install/kdump/tmp directory will be created by default when xCAT rpm package is installed;

the "enablekdump" postscript is added for kdump feature

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8396 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-12-14 07:15:45 +00:00
mxi1
fb867bc6b8 removed the sleep time interval before litefile and litetree commands
replace /sysroot with $NEWROOT in rc.statelite and rc.statelite.ppc.redhat

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8251 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-11-24 03:29:17 +00:00
mxi1
3822bfc406 Squashed commit of the following:
update the code to handle the scenario when both the parent and child directory exist in the litefile table

    remove one line from xcat-prepivot.sh

    updated the manpage for litefile

    the statelite document is updated

    /etc/mtab is added as one default entry when "litefile" or "ilitefile" commands are running, even it is not in litefile table

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8100 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-11-09 12:49:55 +00:00
mxi1
eb7a1b66c3 merge the code change to rc.statelite.ppc.redhat
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8081 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-11-06 07:51:34 +00:00
mxi1
7ccb6dc32e add code to support "/var/" and "/var/tmp/logs" as parent&child directory;
some bug fix in rc.statelite

    fix one bug when recovering the files in litefile.save
    update the example for parselitefile subroutine

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8080 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-11-06 07:36:48 +00:00
mxi1
d6a37d7277 Squashed commit of the following:
remove two echo in xcat-prepivot.sh;
    the stateltie script is updated,
    two typos in the manpage of litefile table are fixed;

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7935 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-10-27 03:28:15 +00:00
mxi1
8b22241384 The litefile options have been updated to what we wished in design;
also the documents related with "statelite" and "genimage" are updated;
the description for "litefile" options are updated in Schema.pm

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7527 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-20 17:16:25 +00:00
mxi1
444bdd0b8e the code change for genimage enhancement is here
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7491 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-17 09:54:47 +00:00
mxi1
a6f6a92f56 one typo in rc.statelite is fixed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7445 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-14 09:25:43 +00:00
mxi1
cb923e17c8 update the sample data for rhel5.x,
also fix one defect when the litetree table is empty
also replace "hostname -s" with "hostname" on redhat5.5 of ppc64 platform

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7373 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-07 12:16:52 +00:00
mxi1
0feee7a7b8 update the sleep time from 20+random%30 to random%50;
and if it can not get the litefile table or litetree table from xCATd on the management node, it will fail into shell, and also echo one error message


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7216 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-25 03:08:52 +00:00
phamt
52fdb2a246 hostname -s will not work on boot for SUSE nodes. Added conditional statement to use hostname if it is a SUSE node.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7150 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-19 15:27:30 +00:00
mxi1
67126f0ad2 fixed on defect on persistent*) option
when one file/directory is copied to the persistent directory, need to check whether the parent directory exist in the persistent directory or not.


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7148 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-19 14:42:31 +00:00
phamt
5bc53f2fe4 Fixed error in rc.statelite: /sysroot/etc/init.d/statelite: line 326: [!: command not found
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7133 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-19 01:29:28 +00:00
mxi1
021457531b from now on, the entries in "litetree" table are no longer restricted to use different mnt point name; for example,
The "litetree" table has the following entries:

"1","ALL","192.168.11.107:/test/$node",,
"2","ALL","192.168.11.108:/test/$node",,

before the code is checked in, if you run "litetree <nodename>", you should get one message like this:

<nodename>: 192.168.11.107:/test/<nodename>
# 192.168.11.107 and 192.168.11.108 both mount /test. This not supported.

After the code is checked in, there will be no any error/warning message about the entries in litetree table.
Accordingly, the naming of mount points on the compute nodes are updated to "/.statelite/mnt/<nfs server ip>/<nfs directory>/" from "/.statelite/mnt/<nfs directory>/".



git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7105 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-17 02:57:52 +00:00
mxi1
92b99d0a9d fix one bug for "FindFile()" function in rc.statelite
now, "ls -A ${path}|wc -l" is used to judge whether one directory is empty or not


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7094 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-15 16:06:23 +00:00
mxi1
a58b3eee52 bug 3042361 is fixed;
And also, added the code to retry if the "litefile" or "litetree" command gets nothing  from xCATd on MN/SN;
use "tcp" as the default nfs option instead of "udp"


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7078 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-13 02:42:39 +00:00
mxi1
4f80ea942c "cp -a" can't copy the files with "." as the prefix,
and "cp -r -a" can do it.


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6791 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-07-19 11:05:38 +00:00
mxi1
461c236542 for defect 2989912,
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6790 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-07-19 10:10:47 +00:00
mxi1
ec11964907 for defect 3031489,
expr is not installed on redhat6 by default, so I removed expr form statelite script


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6789 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-07-19 08:31:42 +00:00
mxi1
8637c96318 update the code to handle the entries with "persistent" option,
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6449 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-06-12 10:03:48 +00:00
mxi1
1e2a27663c add one new rc.statelite file for rc.statelite.ppc.redhat,
on redhat5.x PPC64, we need to use "chroot" to run "openssl" command, or else, it will fail without any output


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6428 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-06-11 08:16:30 +00:00
mxi1
1c59d01b64 changed "#!/bin/sh" to "#!/bin/bash"
because redhat5.x use "anaconda.busybox sh" which doesn't support POSIX shell standards very well,
for example, it doesn't support array-type variables


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6420 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-06-10 09:45:15 +00:00
bp-sawyers
e7d4696c69 Fixed bug 3011426 (var MYNAME undefined)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6360 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-06-04 20:36:55 +00:00
jbjohnso
5c4fece838 -Try Use shortname explicitly for STATEMNT things
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6344 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-06-03 17:27:52 +00:00
mxi1
8a532cabce update rc.statelite to support both one directory and its sub-items in the litefile table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6233 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-05-26 07:56:41 +00:00
vallard
508af695e9 removed noderange to be backwards compatible
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5994 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-05-06 17:47:07 +00:00
mxi1
bb9f222eaf use ${3} to instead the $hn variable in the xCATcmd function
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5851 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-04-22 11:47:03 +00:00
mxi1
eb756f9804 the litefile and litetree commands need the <noderange> argument,
xCATcmd() is updated by adding "<noderange></noderange>" 


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5660 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-04-03 08:36:41 +00:00
mxi1
9658788864 add code to enchance the litimg command, if the entry is changed/removed from the litefile table, or some file are replaced in the root image, the code can both handle them now
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5438 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-03-11 07:03:56 +00:00
linggao
666713d204 bug fix for statelite.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5396 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-03-05 22:29:56 +00:00
mxi1
aeae30cc5b -two new optins: bind and bind,perssistent is added for the statelite mode support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5296 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-02-25 14:52:57 +00:00
vallard
fa1f259c9b fixed bug for mounting directories. Now will mount the full path
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5064 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-01-27 19:05:26 +00:00
vallard
c9ad6e7855 fixed a bug to get rid of trailing / so link would work
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5049 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-01-27 00:10:34 +00:00
mxi1
3f3b504df8 add one checkpoint for this situation when the directory already exists during booting up
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5031 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-01-25 10:41:32 +00:00
vallard
ee5cb54bcb removed verbose output
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5024 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-01-23 19:29:10 +00:00
vallard
226c0a64f2 updated to fix mounting directory and paths. In this way if there is an NFS server that has two paths like: mgt:/statelite/new-york and mgt:/statelite/globals to sync from then it will only mount mgt:/statelite and then traverse the directories. This should make boot up faster and look cleaner as there are not as many mount points.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5023 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-01-23 19:28:46 +00:00