반응형

1. Single Disk Example
Create a new XML node file that will replace the current partition.xml XML node file:
# cd /export/rocks/install/site-profiles/5.3/nodes/
# cp skeleton.xml replace-partition.xml

# vi replace-partition.xml

Inside replace-partition.xml, add the following section right after the <main> </main> section:
<main>
<!-- kickstart ’main’ commands go here -->
</main>
<pre>
echo "clearpart --all --initlabel --drives=sda
part / --size 8000 --ondisk sda
part swap --size 32768 --ondisk sda
part /BiO --size 1 --grow --ondisk sda" > /tmp/user_partition_info
</pre>

# cd /export/rocks/install
# rocks create distro

# rocks remove host partition compute-0-0

# vi nukeit.sh

for file in $(mount | awk '{print $3}')
do
if [ -f $file/.rocks-release ]
then
rm -f $file/.rocks-release
fi
done

# cd /root

# scp nukeit.sh compute-0-0:/root/nukeit.sh

# ssh compute-0-0 "sh /root/nukeit.sh"

# ssh compute-0-0 "/boot/kickstart/cluster-kickstart"

 

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

[root@compute-0-0 ~]# df -h
Filesystem            Size    Used  Avail Use%   Mounted on
/dev/sda1             7.6G     3.8G  3.5G  52%     /
/dev/sda3             251G  188M  238G   1%     /BiO
tmpfs                   7.9G          0   7.9G   0%     /dev/shm

=========================================
[root@compute-0-0 ~]# free -m
                    total       used       free     shared    buffers     cached
Mem:         16054        330      15724          0         16        225
-/+ buffers/cache:         88      15966
Swap:        32765          0      32765

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

 

 

2. Software Raid Example
Create a new XML node file that will replace the current partition.xml XML node file:
# cd /export/rocks/install/site-profiles/5.3/nodes/
# cp skeleton.xml replace-partition.xml

# vi replace-partition.xml

Inside replace-partition.xml, add the following section right after the <main> </main> section:
<main>
<!-- kickstart ’main’ commands go here -->
</main>
<pre>
echo "clearpart --all --initlabel --drives=sda,sdb,sdc,sdd
part / --size 60000 --ondisk sda
part swap --size 32768 --ondisk sda

part raid.00 --size=1 --grow --ondisk sda
part raid.01 --size=1 --grow --ondisk sdb
part raid.02 --size=1 --grow --ondisk sdc
part raid.03 --size=1 --grow --ondisk sdd

raid /BiO --level=0 --device=md0 raid.00 raid.01 raid.02 raid.03" > /tmp/user_partition_info
</pre>

# cd /export/rocks/install
# rocks create distro

# rocks remove host partition compute-0-0

# vi nukeit.sh

for file in $(mount | awk '{print $3}')
do
if [ -f $file/.rocks-release ]
then
rm -f $file/.rocks-release
fi
done

# cd /root

# scp nukeit.sh compute-0-0:/root/nukeit.sh

# ssh compute-0-0 "sh /root/nukeit.sh"

# ssh compute-0-0 "/boot/kickstart/cluster-kickstart"

# rocks list host partition

HOST              DEVICE   MOUNTPOINT  START  SIZE     ID    TYPE      FLAGS                                                   FORMATFLAGS

compute-0-0:     md0        /BiO                     0.00kB 1183GB --     ext3          raid.sda3 raid.sdb1 raid.sdc1 raid.sdd1     --level=0  
compute-0-0:     sda1        /                           32.3kB 62.9GB  --     ext3          boot                                                       -----------
compute-0-0:     sda2        swap                    62.9GB 34.4GB  --   linux-swap   ---------------------------------------          -----------
compute-0-0:     sda3        raid.sda3              97.3GB 223GB   --    ----------     raid                                                         -----------
compute-0-0:     sdb1        raid.sdb1              32.3kB 320GB   --    ----------     boot raid                                                  -----------
compute-0-0:     sdc1        raid.sdc1              32.3kB 320GB   --    ----------     boot raid                                                  -----------
compute-0-0: sdd1   raid.sdd1         32.3kB 320GB  -- ----------    boot raid                               -----------

반응형

'HPC > Rocks Clusters' 카테고리의 다른 글

[Rocks] em1 to eth0  (0) 2013.08.20
[Rocks] rootpw 관련 문제  (0) 2013.08.20
Interface 정보 변경  (0) 2013.01.30
rocks 명령어 문제 발생 시 에러 처리  (0) 2013.01.10
mysql root 패스워드 확인  (0) 2013.01.08
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기