Comments (15)
It's a bug. The reason for this problem is that --mount-on
value should be Mounted on
value, but you passed Filesystem
value. The blade predicates the --mount-on
value by df -h %s | grep -v 'Mounted on' | awk '{print $NF}'
command, so even if you pass the Filesystem value, it will be executed successfully. But when invoking destroy command, it cannot find the disk, so cannot delete the temp file and not process the destroy command result, so it returns success.
Thank you for reporting the issue.
from chaosblade.
ok. well, I have another question: I found command about mysql by using "./blade create -h", has this been implemented now?
from chaosblade.
ok. well, I have another question: I found command about mysql by using "./blade create -h", has this been implemented now?
Yes :-), but currently only for mysql driver in java applications.
from chaosblade.
Type: bug report
I used './blade create disk fill --mount-on /home --size 1024' to create disk fill experiment, then I found a file named 'chaos_diskfilled.log.data' in /home, but the size of it is 2G (I use 'du -sh /home/chaos_diskfilled.log.data'), and this could not be destroyed by using './blade destroy uid'
@alisanguo Currently you can solve it in two ways:
- Delete temp file blade filled under the disk path which is the corresponding mounted.
- Re-execute the experiment you just did, but change the value of
--mount-on
to the value ofMounted on
corresponding to theFilesystem
you passed in.
from chaosblade.
I tried the way you provided, but it did not work. My filesystem is /dev/mapper/rootvg-lv_home
, and mounted on /home
. No matter using filesystem or Mounted on value, it cannot be destroyed.
from chaosblade.
I tried the way you provided, but it did not work. My filesystem is
/dev/mapper/rootvg-lv_home
, and mounted on/home
. No matter using filesystem or Mounted on value, it cannot be destroyed.
Can you provide the result of mount
command and os version?
from chaosblade.
Can you provide the result of mount command and os version?
the result of mount is:
The os version is red hat enterprise linux release 7.2
from chaosblade.
Can you provide the result of mount command and os version?
the result of mount is:
The os version is
red hat enterprise linux release 7.2
The blade create disk fill --mount-on /home --size 1024
command you executed is right.
The process of filling a disk is as follows:
- Invoke
df -h /home | grep -v 'Mounted on' | awk '{print $NF}'
to check the--mount-on
flag value. - Invoke
dd if=/dev/zero of=/home/chaos_filldisk.log.dat bs=1b count=1 iflag=fullblock
command to write 1b data to test execution permissions.
3. Invokenohup dd if=/dev/zero of=1024 bs=1M count=%s iflag=fullblock > /dev/null 2>&1 &
command to fill disk. - Invoke
nohup dd if=/dev/zero of=/home/chaos_filldisk.log.dat bs=1M count=1024 iflag=fullblock > /dev/null 2>&1 &
command to fill disk.
The stop process for the experiment is as follows:
- Query the
dd
process id byps -ef | grep "/home/chaos_filldisk.log.dat" | grep -v grep | awk '{print $2}' | tr '\n' ' '
command. - If the process id exists, the program will invoke
kill -9 <PID>
command. - Invoke
rm -rf /home/chaos_filldisk.log.dat
command to delete the temp file.
Can you follow the above steps to manually execute the command?
First execute the fill disk steps, check the experimental results: the file size is expected or not.
Then execute the stop steps to check if it is deleted normally or not.
@alisanguo Thank you.
from chaosblade.
I followed the above steps to manually execute the command like this:
It seems that the command nohup dd if=/dev/zero of=1024 bs=1M count=%s iflag=fullblock > /dev/null 2>&1 &
is not right. A error 'Invalid number %s ' happended
from chaosblade.
I followed the above steps to manually execute the command like this:
It seems that the command
nohup dd if=/dev/zero of=1024 bs=1M count=%s iflag=fullblock > /dev/null 2>&1 &
is not right. A error 'Invalid number %s ' happended
@alisanguo I'm very sorry for my mistake. The true command is nohup dd if=/dev/zero of=/home/chaos_filldisk.log.dat bs=1M count=1024 iflag=fullblock > /dev/null 2>&1 &
, please retry the above steps. Thank you.
from chaosblade.
I retry it, and the file /home/chaos_filldisk.log.dat
can be removed correctly, but I found two questions:
- When
I use ll /home/chaos_filldisk.log.dat
, the size of it is 1024M, but when I usedu -sm /home/chaos_filldisk.log.dat
, the size of it is 2048, and What is even more strange is that the size of it become 1024M by usingdu -sm /home/chaos_filldisk.log.dat
later on.
- the file
/home/chaos_filldisk.log.dat
cannot be removed by using./blade destroy uid
.
from chaosblade.
I retry it, and the file
/home/chaos_filldisk.log.dat
can be removed correctly, but I found two questions:
- When
I use ll /home/chaos_filldisk.log.dat
, the size of it is 1024M, but when I usedu -sm /home/chaos_filldisk.log.dat
, the size of it is 2048, and What is even more strange is that the size of it become 1024M by usingdu -sm /home/chaos_filldisk.log.dat
later on.
- the file
/home/chaos_filldisk.log.dat
cannot be removed by using./blade destroy uid
.
I tested again and didn't reproduce your problem.
The results of du -sm /xxx/chaos_filldisk.log.dat
command and ll /xxx/chaos_filldisk.log.dat
are equal. I destroyed the experiment successfully.
Please check the uid value is right? @alisanguo
from chaosblade.
@alisanguo I will close the issue, please reopen it if your problem has not been solved.
from chaosblade.
我在mac上执行下面命令会报错:
blade create disk fill -d --mount-point /home --size 1024
错误为:
{"code":604,"success":false,"error":"dd: unknown operand iflag\n exit status 1 exit status 1"}
看了一下上面的讨论,我直接执行下面的命令也会报错
命令为:
dd if=/dev/zero of=/home/chaos_filldisk.log.dat bs=1b count=1 iflag=fullblock
错误为:
dd: unknown operand iflag
问题是:是不是mac系统不支持iflag属性?
from chaosblade.
我在mac上执行下面命令会报错:
blade create disk fill -d --mount-point /home --size 1024
错误为:
{"code":604,"success":false,"error":"dd: unknown operand iflag\n exit status 1 exit status 1"}
看了一下上面的讨论,我直接执行下面的命令也会报错
命令为:
dd if=/dev/zero of=/home/chaos_filldisk.log.dat bs=1b count=1 iflag=fullblock
错误为:
dd: unknown operand iflag
问题是:是不是mac系统不支持iflag属性?
是的,mac 不支持磁盘演练,因为 dd 参数不一样。
from chaosblade.
Related Issues (20)
- chaosblade-box-agent编译报错
- Chaosblade jvm-sandbox support for JDK17
- “blade create file append” 命令的 date 属性无法正常输出系统时间 HOT 1
- excute blade c jvm oom --area HEAP --wild-mode true --pid ,cannot destory experiment
- excute blade c jvm oom --area HEAP --wild-mode true --pid ,cannot destory experiment
- operator del cr interval invalid
- 使用chaosblade-box创建演练时,结果一直是unexpected status, expected status: `create`, but the real status: ``, please wait!
- chaosblade创建容器演练时,blade create cri cpu load --help中示例有错误--chaosblade-release参数已不用,去掉此参数运行显示成功后,实际演练未生效,销毁也失败 HOT 2
- chaosblade-ex-ec-os tc fun portSetToPortRanges miscalculation HOT 2
- In network delay attacks, subnet mask-formatted IP address parameters are ineffective 【bug report】
- 网络放火,包留白名单端口失效导致机器失联 HOT 1
- Failed to create cri jvm throwCustomException, error code: 63067
- mac build_darwin fail HOT 2
- create network does not support ipv6?
- How to use chaosblade for java jvm under k8s environment?
- Does chaosblade support for drill weblogic java ee application ?
- operator invokes daemonset no set uid HOT 1
- 请教一个问题,给kubernetes pod里面的java 模拟类方法抛自定义异常,如果用chaosblade-box 界面,还需要挂载Java Agent?如何挂载? HOT 3
- chaosblade无法识别重启或新建的Pod
- chaosblade为什么不能同时对目标IP+远程端口的条件做故障注入不生效
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chaosblade.