Looking for drive testing tools for Proxmox storage drives.

Drax

Active Member
Jul 21, 2012
126
2
38
I need help testing the virtual and physical drives on the nodes. How can I do this? I am running 3.1 which I know is EOL, but I must get a stable system with backups so I can upgrade it. Please advise.
 
Hi,

virtual device can be tested with
Code:
qemu-img check [-q] [--object objectdef] [--image-opts] [-f fmt] [--output=ofmt] [-r [leaks | all]] [-T src_cache] filename

physical device dependence on the fs.
Code:
fsck.<fs>
 
Got three system emails this morning. what do they mean? Please advise.
1.)
/etc/cron.daily/logrotate:
error: error creating output file /var/log/syslog.1.gz: File exists
run-parts: /etc/cron.daily/logrotate exited with return code 1

2.)
A DegradedArray event had been detected on md device /dev/md/0.

Faithfully yours, etc.

P.S. The /proc/mdstat file currently contains the following:

Personalities : [raid10]
md0 : active raid10 sda1[0] sdd1[3] sdg1[4](F) sdb1[1]
3906763776 blocks super 1.2 512K chunks 2 near-copies [4/3] [UU_U]

unused devices: <none>

3.)
A SparesMissing event had been detected on md device /dev/md/0.

Faithfully yours, etc.

P.S. The /proc/mdstat file currently contains the following:

Personalities : [raid10]
md0 : active raid10 sda1[0] sdd1[3] sdg1[4](F) sdb1[1]
3906763776 blocks super 1.2 512K chunks 2 near-copies [4/3] [UU_U]

unused devices: <none>
 
2 & 3: you have lost a disk. As you are using RAID10, replace it ASAP, now if sdb1 should fails, your whole array is gone
 
Ok, how do I know which disc it is physically? There are two drives that have no lights on presently.
 
well you don't unless you keep the records of disk ID when you install them.

this 2 lines show you the disk
md0 : active raid10 sda1[0] sdd1[3] sdg1[4](F) sdb1[1]
3906763776 blocks super 1.2 512K chunks 2 near-copies [4/3] [UU_U]

the first one list the disks and their numbers (sda1[0] sdd1[3] sdg1[4](F) sdb1[1])
the second show you the missing disk at the end ([UU_U]) see the underscore, that is your missing disk as in third disk in the list in the first line that is sdg (FYI it refers to actual count not the disk id or disk number shown, but the actual count location in the list.)

now you can run "blkid" or " ls -la /dev/disk/by-id " or "lsblk -f" or all of the above, to get a list of information.
copy and print the outputs for references.
shutdown the node and read the disks.
this would also be a good time to note the ids and location, somewhere and maybe even add a label listing id to the disk on the visible part of it so you can just pop the case and read the id when needed.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!