My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 51 attachment: log3-4-09 (6.2 KB)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
Applying OHSM Patch 1.2
-----------------------------------------------------
[root@localhost kernels]# patch -p0 < ohsm_patch-1.2
patching file linux-2.6.27/drivers/md/dm.c
patching file linux-2.6.27/fs/ext2/balloc.c
patching file linux-2.6.27/fs/ext2/ext2.h
patching file linux-2.6.27/fs/ext2/ext2.mod.c
patching file linux-2.6.27/fs/ext2/ialloc.c
patching file linux-2.6.27/fs/ext2/inode.c
patching file linux-2.6.27/fs/ext2/Makefile
patching file linux-2.6.27/fs/ext2/namei.c
patching file linux-2.6.27/fs/ext2/ohsm.c
patching file linux-2.6.27/include/linux/ext2_fs.h
patching file linux-2.6.27/include/linux/ohsm.h
[root@localhost kernels]#

Successful
------------------------------------------------------
Compiling kernel

[root@localhost linux-2.6.27]# make menuconfig

[root@localhost linux-2.6.27]# make && make modules_install && make install

Done
------------------------------------------------------

Creating LVM, formatting with ext2 fs mounting in /mnt
(working with loop devices)

30G LVM

[root@localhost ~]# ../lvm

[root@localhost /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 72G 46G 23G 68% /
/dev/sda1 190M 20M 161M 11% /boot
tmpfs 500M 88K 500M 1% /dev/shm
/dev/mapper/vg-lvol0 30G 602M 28G 3% /mnt <<=============


Done
------------------------------------------------------

Configuring ohsm.

[root@localhost admin]# ./run

------------------------------------------------------

SAM table (4 tiers)

tier 1
/dev/loop0
/dev/loop3

tier2
/dev/loop5
/dev/loop7

tier3
/dev/loop1
/dev/loop6

tier4
/dev/loop2
/dev/loop4



- 1 - 0 - 240

- 3 - - 214 - - 239 - - 123 - - 151 - - 0 - - 240

- 3 - - 62 - - 90 - - 0 - - 29 - - 0 - - 240

- 3 - - 184 - - 212 - - 31 - - 60 - - 0 - - 240

- 3 - - 153 - - 182 - - 92 - - 121 - - 0 - - 240

--------------------------------------------------------------

Copied file to /mnt

root@localhost mnt]# ls -ilh
total 49M
16385 drwxr-xr-x 64 root root 8.0K 2009-02-04 04:21 fs
245761 drwxr-xr-x 2 root root 4.0K 2009-02-04 04:33 images
1048577 drwxr-xr-x 6 root root 8.0K 2009-02-04 04:21 kernel
13 -rwxr-xr-x 1 root root 49M 2008-12-21 01:55 linux-2.6.27.tar.bz2
11 drwx------ 2 root root 16K 2009-02-04 04:10 lost+found
450561 drwxr-xr-x 2 root root 4.0K 2009-02-04 04:21 mm
917505 drwxr-xr-x 2 root root 4.0K 2009-02-04 04:19 OLD GOOD
12 -rwxr-xr-x 1 root root 533K 2009-02-03 01:54 slides.ppt
[root@localhost mnt]#

output of ls -R in lsout file.

[root@localhost mnt]# ls -R >lsout
[root@localhost mnt]#

No. of files copied

[root@localhost mnt]# ls -R | wc -l
3266
[root@localhost mnt]#

OHSM allocation is successfull
------------------------------------------------------------------

I copied many files at a time
here are some policy checkings...

In get_tier_name
The Name Entered .bootmem.o.cmd
The Lenth is 14
The Current character . Name : .bootmem.o.cmd Name : .bootmem.o.cmd<1>In get
Tier name 2<1>
The EXTENSION entered is cmd
The Policy Tables -> type (number of types) 4
The Value of i outside loop is 0
The Value of i outside loop is 1
The Value of i outside loop is 2
The Value of i outside loop is 3
Calling Get Tier Uid
In get uid tier<1>
Inside Loop of UID<1>
In get_tier_name
The Name Entered filemap.o
The Lenth is 9

The Current character . Name : filemap.o Name : filemap.o<1>In get Tier name
2<1>
The EXTENSION entered is o
The Policy Tables -> type (number of types) 4
The Value of i outside loop is 0
The Value of i outside loop is 1
The Value of i is 1
In get_tier_name
The Name Entered .filemap.o.cmd
The Lenth is 14
The Current character . Name : .filemap.o.cmd Name : .filemap.o.cmd<1>In get
Tier name 2<1>
The EXTENSION entered is cmd
The Policy Tables -> type (number of types) 4
The Value of i outside loop is 0
The Value of i outside loop is 1
The Value of i outside loop is 2
The Value of i outside loop is 3
Calling Get Tier Uid
In get uid tier<1>
Inside Loop of UID<1>
In get_tier_name
The Name Entered mempool.o
The Lenth is 9
The Current character . Name : mempool.o Name : mempool.o<1>In get Tier name
2<1>
The EXTENSION entered is o
The Policy Tables -> type (number of types) 4
The Value of i outside loop is 0
The Value of i outside loop is 1
The Value of i is 1
In get_tier_name
The Name Entered .mempool.o.cmd
The Lenth is 14

-------------------------------------------------------

Triggering relocation

[root@localhost admin]# ./ohsm -r 1


Are You Sure (y/n) : y


A check that is done :---

CHECKING FOR INODE NUMBER 1048983<1>
In Ohsm Find dest for rules<1>
Checking for policy number 0<1>
Src tier of policy 1<1>
Dest tier of policy 3<1>
Home tier of inode 2<1>
THIS RULE DID NOT MATCHED FALSE RETURNED <1>
Checking for policy number 1<1>
Src tier of policy 2<1>
Dest tier of policy 3<1>
Home tier of inode 2<1>
SRC TIER MATCHED<1>
Checking Size<1>

Check Parameters operation 2<1>
Input Values : 16<1>
Value To Be checked 50<1>
16 comapred with 50<1>
Inside GT<1>
Size failed<1>
Checking for policy number 2<1>
Src tier of policy 4<1>
Dest tier of policy 3<1>
Home tier of inode 2<1>
THIS RULE DID NOT MATCHED FALSE RETURNED <1>
R Bitmap before SHIFT is 1 <1>
Checking for rule Number 0<1>


CHECKING FOR INODE NUMBER 1048984<1>
In Ohsm Find dest for rules<1>
Checking for policy number 0<1>
Src tier of policy 1<1>
Dest tier of policy 3<1>
Home tier of inode 2<1>
THIS RULE DID NOT MATCHED FALSE RETURNED <1>
Checking for policy number 1<1>
Src tier of policy 2<1>
Dest tier of policy 3<1>
Home tier of inode 2<1>
SRC TIER MATCHED<1>
Checking Size<1>
Check Parameters operation 2<1>
Input Values : 55<1>
Value To Be checked 50<1>
55 comapred with 50<1>

Inside GT<1>
Size Passed<1>
Checking FAA<1>

0 < 50<1>
IN CHECK AGE LT<1>
FAA Passed<1>
Checking FMA<1>

0 < 50<1>
IN CHECK AGE LT<1>
FMA Passed<1>POLICY NUMBER 1 qualified<1>
Qualified Rule 0<1>
The Destination TID should have changed now <1>
inode number = 1048984 <1>
inode home tier id = 2 <1>
inode dest tier id = 3 <1>
Relocate 1048984 from tier 2 to tier 3
Total Files Relocated 1072<1>
I am calling relocation <1>

Checking for rule Number 0<1>

---------------------------------------------------






Powered by Google Project Hosting