Serveurs Privés Virtuels (VPS) - Fio en mode rescue
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Frage

Fio en mode rescue

Von
NicolasW2
Erstellungsdatum 2018-09-03 09:51:56 (edited on 2024-09-04 11:04:28) in Serveurs Privés Virtuels (VPS)

Bonjour tout le monde,

J'ai le support qui me demande de faire un fio en mode rescue mais ca ne fonctionne pas. Comment procéder ?

root@rescue-pro:~# fio --name=rand-write --ioengine=libaio --iodepth=32 --rw=randwrite --invalidate=1 --bsrange=4k:4k,4k:4k --size=512m --runtime=120 --time_based --do_verify=1 --direct=1 --group_reporting --numjobs=1
-bash: fio: command not found
root@rescue-pro:~# apt-get install fio
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package fio
root@rescue-pro:~#


5 Antworten ( Latest reply on 2018-09-03 16:12:10 Von
NicolasW2
)

> E: Unable to locate package fio

ton système ne localise pas ce paquet
`apt policy fio` donne une localisation dans les dépôts ou impossible de trouver ?

debian ou ubuntu?

tu peux installer comme ça en mode rescue?

root@rescue-pro:/mnt/vdb1# apt policy fio
E: Invalid operation policy
root@rescue-pro:/mnt/vdb1#

Je suis en debian

ah désolé, ancien debian: `apt-cache policy fio`


apt-cache policy fio


Merci pour ta réponse. Mais la réponse du vps est pas top. Pourtant il est bien installé sur le vps car ca fonctionne en prod.

root@rescue-pro:/mnt/vdb1# apt-cache policy fio
N: Unable to locate package fio
root@rescue-pro:/mnt/vdb1#

ok, donc

ou tu ne peux installer ce package
ou tu ne peux installer du tout.

si l'installation en rescue est possible, il faudrait regarder ce que permet les sources list:
`grep -Ersv '^#|^$' /etc/apt/sources.list /etc/apt/sources.list.d/*.list`

à moins que sur un vps Ovh, ça soit localisé ailleurs


root@rescue-pro:/mnt/vdb1# grep -Ersv '^#|^$' /etc/apt/sources.list /etc/apt/sources.list.d/*.list
/etc/apt/sources.list:deb http://debian.mirrors.ovh.net/debian jessie main
/etc/apt/sources.list:deb-src http://debian.mirrors.ovh.net/debian jessie main
/etc/apt/sources.list:deb http://security.debian.org/ jessie/updates main
/etc/apt/sources.list:deb-src http://security.debian.org/ jessie/updates main
/etc/apt/sources.list:deb http://debian.mirrors.ovh.net/debian jessie-updates main
/etc/apt/sources.list:deb-src http://debian.mirrors.ovh.net/debian jessie-updates main
root@rescue-pro:/mnt/vdb1#

ça devrait être dispo pour oldstable:
https://packages.debian.org/jessie/fio

je ne connais pas ces miroirs ovh?
essayer avec ?:
`https://deb.debian.org/debian jessie main`
le dépôt où il doit se trouver

Hello,

Tu travailles sur un livecd du mode rescue, c'est pour ca que fio n'est pas installé.
Il faut soit que tu te mettes en chroot sur le disque
chroot /mnt/vdb1
Soit que tu installes fio sur le livecd
apt-get update && apt-get install fio

Bon courage
https://www.captainadmin.com

Merci beaucoup ça fonctionne

Voici le fio en mode rescue, par contre je ne sais pas l'interpreter :
```
Starting 1 process
rand-write: Laying out IO file(s) (1 file(s) / 512MB)
Jobs: 1 (f=1): [w(1)] [100.0% done] [0KB/1306KB/0KB /s] [0/326/0 iops] [eta 00m:00s]
rand-write: (groupid=0, jobs=1): err= 0: pid=21789: Mon Sep 3 15:01:26 2018
write: io=95800KB, bw=816724B/s, iops=199, runt=120113msec
slat (usec): min=49, max=211640, avg=598.05, stdev=5129.10
clat (usec): min=773, max=908983, avg=159785.08, stdev=117901.39
lat (msec): min=2, max=909, avg=160.40, stdev=118.01
clat percentiles (msec):
| 1.00th=[ 4], 5.00th=[ 4], 10.00th=[ 6], 20.00th=[ 87],
| 30.00th=[ 96], 40.00th=[ 103], 50.00th=[ 112], 60.00th=[ 126],
| 70.00th=[ 210], 80.00th=[ 293], 90.00th=[ 343], 95.00th=[ 371],
| 99.00th=[ 445], 99.50th=[ 498], 99.90th=[ 701], 99.95th=[ 734],
| 99.99th=[ 807]
bw (KB /s): min= 237, max= 1744, per=100.00%, avg=799.91, stdev=342.82
lat (usec) : 1000=0.01%
lat (msec) : 4=5.81%, 10=6.06%, 20=0.21%, 50=0.32%, 100=23.67%
lat (msec) : 250=39.74%, 500=23.71%, 750=0.44%, 1000=0.03%
cpu : usr=1.14%, sys=10.67%, ctx=24203, majf=0, minf=7
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=99.9%, >=64=0.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.1%, 64=0.0%, >=64=0.0%
issued : total=r=0/w=23950/d=0, short=r=0/w=0/d=0
latency : target=0, window=0, percentile=100.00%, depth=32

Run status group 0 (all jobs):
WRITE: io=95800KB, aggrb=797KB/s, minb=797KB/s, maxb=797KB/s, mint=120113msec, maxt=120113msec
```

baliser en code améliorerait grandement la lecture, pour cela, entourer le bloc de lignes avec une ligne de 3 backticks

C'est fait