Anda di halaman 1dari 2

Bakeathon 2014

Primary Data Demo


Show exported shares (DD) and mount on a client
Create test directory and generate IO to it
Heat files and execute mobility task
This page was setup for the Protocols Team to document information from Bakeathon 2014.

Primary Data Demo


This setup needs to be reviewed and approved by Apollo since he was the last person to work on the Sony setup in its current
configuration. The instructions at this point reflect the environment when I worked on it for the first Sony POC and may be different now
for the current environment.
Phil Burr - please check with Apollo, Roy Dahan and Ilan Gayda to make sure the test below is ok to run.

Show exported shares (DD) and mount on a client


1. Log into client VM (Apollo can provide information information on which VM to log into) as root.
2. Run the showmount command against the cluster IP of the DD.

[root@client-vm ~]# showmount -e 172.16.10.190


Export list for 172.16.10.190:
/tonian/dcns/exports/share_ds2 *
/tonian/dcns/exports
*
/tonian/dcns/exports/share_ds1 *
/tonian/dcns/exports/share_ds4 *

3. Create a mount point on the client VM to mount the share you'd like to demonstrate IO on and mount it.

mkdir /mnt/bakeathon
mount -t nfs -o intr,rw,proto=tcp,vers=4.1,rsize=1048576,wsize=1048576
172.16.10.190:/share_ds1 /mnt/bakeathon

Create test directory and generate IO to it


1. Create a subdirectory for you to do your demo from and

mkdir /mnt/bakeathon/phil
cd /mnt/bakeathon/phil

2. Apply the cls_bake1 classifier to the test directory you created. Files will be written to the COOL storage (one_ds) and then moved to HO
T storage if accessed more than 3 times in 1 hour.
Classifier:
pdcli classifier-update --name cls_bake1 --rule "HOT,ANY>3/1h,four_dses,DEFAULT" --rule
"COOL,NOOP,one_ds,CREATE"

ssh root@172.16.10.190
pdcli share-classifier-set --classifier-name cls-bake1 --name share_ds1 --path
/phil

3. Download the create_files.sh script to create 12 directories and 45 x 1M files.

# Download the create_files.sh script to the /mnt/bakeathon/phil directory


time ./create_files.sh
tree

4. Check with Apollo for the netstat command to validate that the client DSs were automatically mounted when you mounted the DS.

Heat files and execute mobility task


1. First show that all files are currently in compliance because they were written to the storage that was defined in the cls_bake1 classifier.

Run from DD
ssh root@172.16.10.190
pdcli share-rebalance --name share_ds1 --report

2. Heat 2 files in the directory structure using the heat_files.sh script and then re-run the data-mobility report

Run from client VM


./heat_files.sh

Run from the DD


pdcli share-rebalance --name share_ds1 --report

3. Run the mobility task to move the two non-compliant files.

pdcli share-rebalance --name share_ds1

4. Run the data-mobility-task-list command to show the status of the mobility task.

pdcli data-mobility-task-list --share-name share_ds1

Anda mungkin juga menyukai