r1 - 29 May 2008 - 15:11:43 - MarcoAndreFerreiraDiasYou are here: TWiki >  Main Web > LogBook > EntryDescriptionNo47
Entry Template

MIgração do /OSG_app e Criação do novo Pool

Description

Criar espaco na spraid02 para novo pool, pois esta alojava anteriormente o OSG_app
mkdir /home/OSG_app
cd /home/OSG_app/
mkdir app  data  pool  read  write
chmod 1777  app  data  pool  read  write
nohup rsync -Cravzp /raid0/OSG/ /home/OSG_app/ &
unlink /usr/local/share/OSG
ln -s /home/OSG_app /usr/local/share/OSG
vim /OSG/monitoring/osg-attributes.conf
vim /OSG/monitoring/grid3-info.conf
Ir localizando os files que fazem referencia ao antigo diretorio e trocando suas entradas (tanto no /OSG, quanto debaixo do /home/OSG_app), usando /ro t/rename.sh:
grep "/raid0/OSG" -clr * > rename.temp
for i in `cat rename.temp`
do
sed -i 's/raid0\/OSG/home\/OSG_app/g' $i
done
rm rename.temp
(o script entra em loop se encontra links simbolicos)
umount /raid0/
ln -s /home/OSG_app /raid0/OSG
vim /etc/fstab

clcmd umount -l /raid0
clcmd ln -s /home/OSG_app /raid0/OSG
clcmd "sed -i '/storage02/D' /etc/fstab "
Na spraid02:
vim /etc/exports
/etc/init.d/nfs restart
rm -rf /raid0/OSG/
/etc/init.d/dcache-pool stop
vim /opt/d-cache/config/spraid02.poollist
vim /opt/d-cache/etc/pool_path
/etc/init.d/dcache-pool start

Updates

Fulano em dd/mm/aaaa

Coloca o que fez.

Ciclano em dd/mm/aaaa

Mais comentarios

-- MarcoAndreFerreiraDias - 29 May 2008

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Home
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback