Menu

#48 Relocation fails for already existing files

OHSMv1.2
open
nobody
Bug (32)
5
2010-01-14
2010-01-14
No

I tried to do relocation at my set up but the relocation gives error
for file that already exist on file system.

steps to reproduce:
go to project directory
1../configure
2.make
3.make install
4.mount -t ext4 -o user_xattr -o acl devicename mountpoint
5.insmod kernel/ohsm.ko
6.Find major no by
major=`grep -i OHSM /proc/devices | awk '{print $1}'`
7.mknod /dev/ohsm c major 0
8.userspace/ohsm enable sample/ohsm.xml
9.ohsm relocate -n 0 -m /tmp/mnt/

This gives error:
OHSM-Error: Relocation failed. Unable to fetch policy for mountpoint '/tmp/mnt/'.
OHSM-Error: ioctl failed.
OHSM-Error: OHSM is disabled now.

I have already two files on file system 1.c 2.xml
policy says that if file size greater than 50 kb
then relocate.

Please find attached console log & output of dmesg:

Discussion

  • Mahesh  Sobale

    Mahesh Sobale - 2010-01-14

    Log file for relocation failed

     
  • Sandeepksinha

    Sandeepksinha - 2010-01-14

    >> 9.ohsm relocate -n 0 -m /tmp/mnt/
    I think rule 0 is invalid. Can you give a try with 1??
    But the code handles 0 and it means apply all the rules.

     

Log in to post a comment.