[dm-devel] ioband pebcak again, I'm sure.
Clint Moore
clint at blueboxgrp.com
Thu Apr 10 20:27:48 UTC 2008
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
[root at gurn 302]# mount /dev/sdd1 /mnt
mount: /dev/sdd1 already mounted or /mnt busy
[root at gurn 302]# umount /dev/sdd1
umount: /dev/sdd1: not mounted
[root at gurn 302]# mkdir /honk
[root at gurn 302]# mount /dev/sdd1 /honk
mount: /dev/sdd1 already mounted or /honk busy
Here's the fun part:
[root at gurn 302]# dmsetup remove ioband1
[root at gurn 302]# dmsetup remove ioband2
[root at gurn 302]# mount /dev/sdc1 /mnt
[root at gurn 302]# mount /dev/sdd1 /honk
[root at gurn 302]# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
...
/dev/sdc1 1031888 172560 806912 18% /mnt
/dev/sdd1 1031888 172316 807156 18% /honk
[root at gurn 302]#
More information about the dm-devel
mailing list