Drive Configuration of Computers at LCO
1. pi1 computer
Currently pi computer has 2 disks ( see photos at
http://grb.fuw.edu.pl/pi0/rescue/wymiana_dyskow_bm.pdf ) :
- DOLNY - SLAVE -
/dev/hdb - mounted as : /dev/hdb3=/data1 can be chaned
- GORNY - MASTER - /dev/hdc
- CANNOT BE CHANGED !!!!!!!!!!!!
- THIS IS SYSTEM DISK FOR pi1 !!!!!!!!
Disks
are partitioned ( 2005-05-13 ) :
Device
Boot
Start
End Blocks Id System
/dev/hdb1
1
1217 9775521 83 Linux
/dev/hdb2
1218
1340 987997+ 83 Linux
/dev/hdb3
1341 24321
184594882+ 83 Linux
Disk /dev/hdc: 200.0 GB,
200049647616 bytes
255 heads, 63 sectors/track,
24321 cylinders
Units = cylinders of 16065 * 512
= 8225280 bytes
Device
Boot
Start
End Blocks Id System
/dev/hdc1
1 1825
14659281 83
Linux
<<------------ SYSTEM PARTITION ( 15GB = 1825 * 8225280
bytes )
/dev/hdc2
1826
1948 987997+ 82 Linux
swap - 1GB = 122 * 8225280
bytes
/dev/hdc3
1949 24321
179711122+ 83
Linux - 184 GB
1 cylinder = 8225280 bytes = 8.225280 MB ( Start and
End are in cylinder units )
Currently :
- DOLNY - SLAVE = PI4 SLAVE
2. pi2 computer
pi2 computer has 2 disks which can be changed and 1 system disk :
-
DOLNA KIESZEN - SLAVE - /dev/hdb - mounted as /dev/hdb3=/data2
- GORNA KIESZEN - MASTER - /dev/hdc -
mounted as /dev/hdc3=/data1
Output from fdisk ( 2005-05-13 ) :
[root@pi2 root]# fdisk -l
Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot
Start
End Blocks Id System
/dev/hda1
*
1 1275
10241406 83 Linux
/dev/hda2
1276 5099
30716280 83 Linux
/dev/hda3
5100
5226 1020127+ 82 Linux swap
/dev/hda4
5227 14593
75240427+ f W95 Ext'd (LBA)
/dev/hda5
5227 14593
75240396 83 Linux
Disk /dev/hdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot
Start
End Blocks Id System
/dev/hdb1
1
1217 9775521 83 Linux
/dev/hdb2
1218
1340 987997+ 83 Linux
/dev/hdb3
1341 24321
184594882+ 83 Linux
Disk /dev/hdc: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot
Start
End Blocks Id System
/dev/hdc1
1
1217 9775521 83 Linux
/dev/hdc2
1218
1340 987997+ 82 Linux swap
/dev/hdc3
1341 24321
184594882+ 83 Linux
Currently :
- DOLNY - PI8
- GORNY - PI7 MASTER
3. Changing disks
When changing
disks in racks always remeber !!!
- to
comment out disks to be changed in crontab - in case some partitions
are missing or different
- turn off database on pi2 , and copy DB files from /data1/pidb/ to safe location /disk01/pidb_backup which will
remain after disk change ,
turn off
automatic startup of postgres after reboot :
by removing symbolic links S99postgresql
in /etc/init.d/rc3.d and
/etc/init.d/rc5.d
- umount disks
- make sure all important things from /data1/results/ASAS_PIPELINE has
been backuped
4. Preparing new disk for LCO changes in
rack
Disk should have 3 partitions - primary 10 GB , swap 1/2GB , rest for
data ( see above output from fdisk from pi1 / pi2 )
Create folders :
mkdir -p /data1/results/
mkdir -p /data2/results/
make user pi owner of this folders :
cd /data1/results/
chown pi .
chgrp pi .
In case of pi1 create also folder ASAS_PIPELINE :
cd /data1/results/
mkdir ASAS_PIPELINE
chown asas ASAS_PIPELINE
5. Data cleaning on pi1 and pi2
It is described here