[dm-devel] ioband pebcak again, I'm sure.

malahal at us.ibm.com malahal at us.ibm.com
Thu Apr 10 20:47:10 UTC 2008


Clint Moore [clint at blueboxgrp.com] wrote:
>
> 	Hopefully I'm doing something just as dumb this time as last time.
>
> /dev/sdc and /dev/sdd are iscsi targets.
>
> Cliff notes version is, after setting up ioband and adding a weight to two 
> filesystems per the website docs, I can't mount them anywhere.  I tried 
> this with a local device as well as iscsi targets.  Here's what I did to do 
> this, perhaps I'm missing a step or something?
>
>
> [root at gurn 302]# mount /dev/sdd1 /mnt
> [root at gurn 302]# df -k
> Filesystem           1K-blocks      Used Available Use% Mounted on
> ...
> /dev/sdd1              1031888    172316    807156  18% /mnt
> [root at gurn 302]# umount /mnt
> [root at gurn 302]# mount /dev/sdc1 /mnt
> Filesystem           1K-blocks      Used Available Use% Mounted on
> ...
> /dev/sdc1              1031888    172316    807156  18% /mnt
> [root at gurn 302]# umount /mnt
>
> So the filesystems mount ok otherwise...
>
> [root at gurn 302]# blockdev --getsize /dev/sdc1
> 2096753
> [root at gurn 302]# echo "0 2096753 ioband /dev/sdc1 1" | dmsetup create 
> ioband2
> [root at gurn 302]# blockdev --getsize /dev/sdd1
> 2096753
> [root at gurn 302]# echo "0 2096753 ioband /dev/sdd1 1" | dmsetup create 
> ioband1
> [root at gurn 302]# dmsetup message ioband1 0 weight 40
> [root at gurn 302]# dmsetup message ioband2 0 weight 10
> [root at gurn 302]# dmsetup ls --target ioband
> ioband2	(253, 1)
> ioband1	(253, 0)
> [root at gurn 302]#
>
> [root at gurn 302]# mount /dev/sdc1 /mnt
> mount: /dev/sdc1 already mounted or /mnt busy

Try mounting ioband devices. E.g. : mount /dev/mapper/ioband1 /mnt
or  mount /dev/mapper/ioband2 /mn

You can NOT use /dev/sdc1 or /dev/sdd1 after creating ioband devices from
them.




More information about the dm-devel mailing list