Project

General

Profile

Task #9171

Retire/reshoot cmssrv158

Added by Tim Skirvin over 5 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Start date:
06/11/2015
Due date:
% Done:

100%

Estimated time:
Spent time:
Duration:

History

#1 Updated by Natalia Ratnikova about 5 years ago

Changes in natasha_development environment installed on cmsdev33. Currently in testing.

#2 Updated by Natalia Ratnikova about 5 years ago

  • % Done changed from 0 to 60

I have two accounts on cmssrv158: natasha and cmsprod:

The former has home set on the shared storage area: /uscms/home/natasha

The latter mainly used for phedex and spacemon development and has home on the system disk: /home/cmsprod/

There are also ~40 GB of data on the local disk.

==========
-bash-3.2$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 39G 22G 16G 59% /
/dev/sda3 157G 39G 110G 27% /storage/local/data1
tmpfs 16G 0 16G 0% /dev/shm
cms-nas-0.fnal.gov:/uscms
2.5T 1.9T 707G 73% /uscms ===================

Reviewing cmsprod home area:

bash-3.2$ cat ~/.k5login

-bash-3.2$ echo $SHELL
/bin/bash
-bash-3.2$ cat .emacs
(setq column-number-mode t)
(set-default-font "-adobe-courier-bold-r-normal--14-140-75-75-m-90-iso8859-1")
(custom-set-variables
;; custom-set-variables was added by Custom -
don't edit or cut/paste it!
;; Your init file should contain only one such instance.
'(auto-compression-mode t nil (jka-compr))
'(case-fold-search t)
'(current-language-environment "Latin-9")
'(default-input-method "latin-9-prefix")
'(global-font-lock-mode t nil (font-lock)))
(custom-set-faces
;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
)
-bash-3.2$ cat /home/cmsprod/.gitconfig
[user]
name = nataliaratnikova
mail =
email =
-bash-3.2$ rpm -qa | grep evince
evince-0.6.0-17.el5
evince-0.6.0-17.el5
-bash-3.2$ rpm -qa > cmssrv158_rpm-qa.list
-bash-3.2$ scp cmssrv158_rpm-qa.list natasha@cmsdev33:
cmssrv158_rpmqa.list 100% 29KB 29.4KB/s 00:00

Review all stuff in ~cmsprod, remove obsolete, pack and copy the rest onto cmsdev33 (16 GB):

on cmssrv158:
-bash-3.2$ du -hcs ~cmsprod/
16G /home/cmsprod/
16G total

on cmsdev33:
[cmsdev33 11:43] du -hs ~natasha/cmsprod-home.cmssrv158.backup*
114M /storage/local/data1/home/natasha/cmsprod-home.cmssrv158.backup1.tgz
4.3G /storage/local/data1/home/natasha/cmsprod-home.cmssrv158.backup2.tgz

=============

#3 Updated by Natalia Ratnikova about 5 years ago

  • % Done changed from 60 to 90

Installed PhEDEx and SpaceMon development version on cmsdev33,
documented the procedure in SpaceMon developers twiki.

#4 Updated by Natalia Ratnikova about 5 years ago

[cmssrv158 11:54] pwd
/storage/local/data1
[cmssrv158 11:54] ls latr
total 36
drwx-----
2 root root 16384 May 31 2012 lost+found
drwxr-xr-x 3 root root 4096 May 31 2012 ..
drwxr-xr-x 6 root root 4096 Apr 29 2014 .
drwxr-xr-x 2 root root 4096 Apr 29 2014 COMPLETE_FILE_LISTING
drwxr-xr-x 6 cmsprod us_cms 4096 Sep 8 2014 cmsprod
drwxr-xr-x 14 natasha root 4096 Apr 30 15:58 natasha
[cmssrv158 11:54] whoami
natasha
[cmssrv158 11:54] gtar -c -C COMPLETE_FILE_LISTING -f /tmp/COMPLETE_FILE_LISTING_cms.tgz COMPLETE_FILE_LISTING_cms
[cmssrv158 11:54] scp /tmp/COMPLETE_FILE_LISTING_cms.tgz root@cmssrv33:/storage/local/data1/cmssrv158.backup
COMPLETE_FILE_LISTING_cms.tgz 10% 407MB 29.1MB/s 02:04 ETA
[cmssrv158 11:54] tar -czvf /tmp/COMPLETE_FILE_LISTING_cms.Mar-18-2013.tgz SPACEMON/COMPLETE_FILE_LISTING_cms
SPACEMON/COMPLETE_FILE_LISTING_cms
[cmssrv158 11:54] scp -p /tmp/COMPLETE_FILE_LISTING_cms.Mar-18-2013.tgz natasha@cmsdev33:/storage/local/data1/cmssrv158.backup/COMPLETE_FILE_LISTING/

history:

1042 gtar -czvf cmssrv158.cmsprod.stuff.tgz -C / storage/local/data1/cmsprod/syntax_debug storage/local/data1/cmsprod/DEBUG storage/local/data1/cmsprod/siteconf
1045 scp cmssrv158.cmsprod.stuff.tgz natasha@cmsdev33:/storage/local/data1/cmssrv158.backup/cmsprod/
1047 rm cmssrv158.cmsprod.stuff.tgz

#5 Updated by Natalia Ratnikova about 5 years ago

Following instructions at https://cmsweb.fnal.gov/bin/view/Software/Cobbler

Network configuration:

[cmssrv158 11:54] /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 78:2B:CB:3F:90:F2
inet addr:131.225.204.165 Bcast:131.225.207.255 Mask:255.255.252.0
inet6 addr: fe80::7a2b:cbff:fe3f:90f2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:747116717 errors:0 dropped:0 overruns:0 frame:0
TX packets:32639556 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:104464690251 (97.2 GiB) TX bytes:17590203284 (16.3 GiB)
Interrupt:66 Memory:da000000-da012800

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4972014 errors:0 dropped:0 overruns:0 frame:0
TX packets:4972014 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2705072029 (2.5 GiB) TX bytes:2705072029 (2.5 GiB)

Disk configuration:

[cmssrv158 11:54] df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 40149044 22893328 15183336 61% /
/dev/sda3 163841368 38933112 116451240 26% /storage/local/data1
tmpfs 16474504 0 16474504 0% /dev/shm
cms-nas-0.fnal.gov:/uscms
2684354560 1945650112 738704448 73% /uscms

Now CONFIGURE in COBBLER:

[root@cmssrv201 ~]# cobbler-wrapper report cmssrv158
host 'cmssrv158' not found
[root@cmssrv201 ~]# cobbler-wrapper init cmssrv158
host cmssrv158 has >1 interfaces; please run with one of:
--bond
--mac 78:2B:CB:3F:90:F3
--mac 78:2B:CB:3F:90:F2
added 0 system(s)
[root@cmssrv201 ~]# cobbler-wrapper init cmssrv158 --mac 78:2B:CB:3F:90:F2
not configuring device eth0 (78:2B:CB:3F:90:F3)
cmssrv158
Hostname cmssrv158.fnal.gov
Profile slf6-x86_64
Gateway 131.225.207.200
Interface eth1 (static)
IP 131.225.204.165
MAC 78:2B:CB:3F:90:F2
Netmask 255.255.252.0
MTU
Meta disk=default
Comment
Status development
Netboot Enabled? False

added 1 system(s)
[root@cmssrv201 ~]#

Here are some hints about enabling PXE in BIOS: http://lapserv.maths.cam.ac.uk/docs/bios.html .

#6 Updated by Anthony Tiradani about 4 years ago

  • Status changed from New to Resolved

#7 Updated by Anthony Tiradani about 4 years ago

  • % Done changed from 90 to 100


Also available in: Atom PDF