[Lustre-discuss] Find all files on a specific OST

Anselm Strauss anselm.strauss at id.unibe.ch
Tue Jan 29 10:57:44 PST 2008


Hi,

I want to know all files that are located on a specific OST, but  
neither 'lfs find ...' nor 'lfs getstripe ...' can give me an answer.  
I do not use striping. This is what I tried:

gnode30 ~ # lfs df -h
UUID                     bytes      Used Available  Use% Mounted on
scratch-MDT0000_UUID    710.0G     41.0G    668.9G    5% /mnt/ 
lustre[MDT:0]
scratch-OST0001_UUID      6.3T    327.3G      5.9T    5% /mnt/ 
lustre[OST:1]
scratch-OST0002_UUID      6.3T    327.3G      5.9T    5% /mnt/ 
lustre[OST:2]
scratch-OST0003_UUID      6.3T    328.3G      5.9T    5% /mnt/ 
lustre[OST:3]
scratch-OST0004_UUID      6.3T    327.3G      5.9T    5% /mnt/ 
lustre[OST:4]
scratch-OST0006_UUID      6.3T    327.3G      5.9T    5% /mnt/ 
lustre[OST:6]
scratch-OST0007_UUID      6.3T    326.3G      5.9T    5% /mnt/ 
lustre[OST:7]

filesystem summary:      37.6T      1.9T     35.7T    5% /mnt/lustre

gnode30 ~ # lctl dl
   0 UP mgc MGC10.1.140.1 at tcp 5c3be07b-fab6-390e-0fe6-044a5dd0b5c9 5
   1 UP lov scratch-clilov-ffff8100de423000 9ad18aa7- 
e0e4-9766-0f26-9cabac1f9a28 4
   2 UP mdc scratch-MDT0000-mdc-ffff8100de423000 9ad18aa7- 
e0e4-9766-0f26-9cabac1f9a28 5
   3 UP osc scratch-OST0001-osc-ffff8100de423000 9ad18aa7- 
e0e4-9766-0f26-9cabac1f9a28 5
   4 UP osc scratch-OST0002-osc-ffff8100de423000 9ad18aa7- 
e0e4-9766-0f26-9cabac1f9a28 5
   5 UP osc scratch-OST0003-osc-ffff8100de423000 9ad18aa7- 
e0e4-9766-0f26-9cabac1f9a28 5
   6 UP osc scratch-OST0004-osc-ffff8100de423000 9ad18aa7- 
e0e4-9766-0f26-9cabac1f9a28 5
   7 UP osc scratch-OST0006-osc-ffff8100de423000 9ad18aa7- 
e0e4-9766-0f26-9cabac1f9a28 5
   8 UP osc scratch-OST0007-osc-ffff8100de423000 9ad18aa7- 
e0e4-9766-0f26-9cabac1f9a28 5
gnode30 ~ # cd /mnt/lustre/
gnode30 lustre # ls -lh
total 5.9G
-rw-r--r-- 1 root root 1000M Jan 29 19:41 zero1
-rw-r--r-- 1 root root 1000M Jan 29 19:41 zero2
-rw-r--r-- 1 root root 1000M Jan 29 19:41 zero3
-rw-r--r-- 1 root root 1000M Jan 29 19:41 zero4
-rw-r--r-- 1 root root 1000M Jan 29 19:41 zero5
-rw-r--r-- 1 root root 1000M Jan 29 19:42 zero6
gnode30 lustre # lfs find -O scratch-OST0003_UUID /mnt/lustre
gnode30 lustre # lfs find -O 7 /mnt/lustre
gnode30 lustre # lfs getstripe -O scratch-OST0003_UUID /mnt/lustre
error: setup_obd_uuid: unknown obduuid: scratch-OST0003_UUID
/mnt/lustre/zero1
/mnt/lustre/zero2
/mnt/lustre/zero3
/mnt/lustre/zero4
/mnt/lustre/zero5
/mnt/lustre/zero6
gnode30 lustre #

Am I missing the right syntax? Is this only possible if I use  
striping? Do I use the wrong UUID, how to determine the right UUID?

Thanks,
Anselm Strauss




More information about the lustre-discuss mailing list