Hi Yuan,

that’s helpful.   A further question – is it possible to do the nfs mount from 
a non-XCAT server?  IE From a NAS device of some sort?

Really what we’re hoping for is some redundancy and possible throughput 
increase by using our storage system.

Regards,

Jeff Berry, MRC CBSU

From: Yuan Y Bai [mailto:by...@cn.ibm.com]
Sent: 22 August 2018 10:35
To: xcat-user@lists.sourceforge.net
Cc: xcat-user@lists.sourceforge.net
Subject: Re: [xcat-user] nfs mounting root image from different server

Hi Jeff,

Here is my example to nfs mounting root image from different server, I hope 
this can help you.

My example: the remote nfsserver is 10.5.106.2, it is the first xCAT management 
node xcatmn1. Current xCAT management node is xcatmn2. I use xcatmn2 to 
provison statelite compute node bybc0609. I use redhat 7.4 OS, system arch is 
x86_64.

1. create statelite osimage on first xcatmn1 as usual:
copycds <os_iso>
tabedit litefile
genimage rhels7.4-x86_64-statelite-compute
liteimg rhels7.4-x86_64-statelite-compute

2. add nfsserver for compute node definition on second xcatmn2:
chdef bybc0609 nfsserver=10.5.106.2

3. rsync initrd-statelite.gz and kernel from the first xcatmn1 to current xCAT 
MN xcatmn2, execute the followings on xcatmn1:
rsync /install/netboot/rhels7.4/x86_64/compute/initrd-statelite.gz 
xcatmn2:/install/netboot/rhels7.4/x86_64/compute/
rsync /install/netboot/rhels7.4/x86_64/compute/kernel 
xcatmn2:/install/netboot/rhels7.4/x86_64/compute/

4. sync up litefile table the same between xcatmn1 and xcatmn2

5. provision statelite compute node on xcatmn2:
rinstall bybc0609 osimage=rhels7.4-x86_64-statelite-compute

6. You can use "rcons bybc0609" to look at the process, then login CN to check 
result using:
df -h


Best Regards
--------------------------------------------------
Yuan Bai (白媛)

CSTL HPC System Management Development
Tel:86-10-82451401
E-mail: by...@cn.ibm.com<mailto:by...@cn.ibm.com>
Address: IBM ZGC Campus. Ring Building 28,
ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, Haidian District,
Beijing P.R.China 100193

IBM环宇大厦
北京市海淀区东北旺西路8号,中关村软件园28号楼
邮编:100193


----- Original message -----
From: Jeff Berry 
<jeff.be...@mrc-cbu.cam.ac.uk<mailto:jeff.be...@mrc-cbu.cam.ac.uk>>
To: xCAT Users Mailing list 
<xcat-user@lists.sourceforge.net<mailto:xcat-user@lists.sourceforge.net>>
Cc:
Subject: [xcat-user] nfs mounting root image from different server
Date: Tue, Aug 21, 2018 7:42 PM

Good afternoon all,

we'd like to mount our statelite root images from a different machine than our 
XCAT master.   Are there any XCAT specific pitfalls I should be aware of and/or 
best practices I should try to follow?

I had hoped it would be as simple as adding an nfsserver entry to the noderes 
table and adjusting the rootimg dir in the osimage object.  However, that 
didn't work out very smoothly.  When I change the rootimgdir, I can no longer 
run liteimg since it looks for that image directory.   When I try just changing 
the root image mount in the tftp file as a test, my node hangs when attempting 
to mount the root image.

That latter problem may be nfs related and have nothing to do with xcat per se, 
but it seems like there must be a way to build/modify the image on the server, 
copy the image to another server, and then do the mount directly from there.  
However, I could be wrong on this ...

lsxcatd -v
Version 2.14.2 (git commit f2090565b1d1b8efa7558d034de0478456c38e4c, built Wed 
Jul 11 07:15:53 EDT 2018)

Anyone tried to do something like this before?

Jeff Berry, MRC CBSU
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net<mailto:xCAT-user@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/xcat-user



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to