Last active
February 23, 2019 14:30
-
-
Save Drewch/ecaadef3916a49d7530d1e343cfd3d22 to your computer and use it in GitHub Desktop.
mdadm disks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat /proc/mdstat | |
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10] | |
md0 : active raid1 sdb1[1] | |
5860390464 blocks super 1.2 [2/1] [_U] | |
bitmap: 1/44 pages [4KB], 65536KB chunk | |
unused devices: <none> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ls -l /dev/mapper | |
total 0 | |
crw------- 1 root root 10, 236 Feb 22 21:14 control |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo mdadm --stop /dev/md0 | |
mdadm: Cannot get exclusive access to /dev/md0:Perhaps a running process, mounted filesystem or active volume group? | |
$ dmesg | |
[37419.937223] sd 12:0:0:0: rejecting I/O to offline device | |
[37419.937237] sd 12:0:0:0: rejecting I/O to offline device | |
[37419.937251] sd 12:0:0:0: rejecting I/O to offline device | |
[37419.937264] sd 12:0:0:0: rejecting I/O to offline device | |
[37419.937278] sd 12:0:0:0: rejecting I/O to offline device | |
[37419.937292] sd 12:0:0:0: rejecting I/O to offline device | |
[37419.937364] sd 12:0:0:0: rejecting I/O to offline device | |
[37706.146863] md/raid1:md0: Disk failure on sda1, disabling device. | |
md/raid1:md0: Operation continuing on 1 devices. | |
[37873.085148] sda: sda1 | |
[41300.959591] sd 12:0:0:0: rejecting I/O to offline device | |
[41300.959620] sd 12:0:0:0: rejecting I/O to offline device | |
[41300.959644] sd 12:0:0:0: rejecting I/O to offline device | |
[41300.959680] sd 12:0:0:0: rejecting I/O to offline device |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo lsof | grep md0 | |
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/121/gvfs | |
Output information may be incomplete. | |
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs | |
Output information may be incomplete. | |
md0_raid1 336 root cwd DIR 259,3 4096 2 / | |
md0_raid1 336 root rtd DIR 259,3 4096 2 / | |
md0_raid1 336 root txt unknown /proc/336/exe | |
jbd2/md0- 1088 root cwd DIR 259,3 4096 2 / | |
jbd2/md0- 1088 root rtd DIR 259,3 4096 2 / | |
jbd2/md0- 1088 root txt unknown /proc/1088/exe | |
udisksd 1522 root 14r REG 0,21 4096 36641 /sys/devices/virtual/block/md0/md/sync_action | |
udisksd 1522 root 15r REG 0,21 4096 36654 /sys/devices/virtual/block/md0/md/degraded | |
gmain 1522 1538 root 14r REG 0,21 4096 36641 /sys/devices/virtual/block/md0/md/sync_action | |
gmain 1522 1538 root 15r REG 0,21 4096 36654 /sys/devices/virtual/block/md0/md/degraded | |
gdbus 1522 1557 root 14r REG 0,21 4096 36641 /sys/devices/virtual/block/md0/md/sync_action | |
gdbus 1522 1557 root 15r REG 0,21 4096 36654 /sys/devices/virtual/block/md0/md/degraded | |
probing-t 1522 1625 root 14r REG 0,21 4096 36641 /sys/devices/virtual/block/md0/md/sync_action | |
probing-t 1522 1625 root 15r REG 0,21 4096 36654 /sys/devices/virtual/block/md0/md/degraded | |
cleanup 1522 1695 root 14r REG 0,21 4096 36641 /sys/devices/virtual/block/md0/md/sync_action | |
cleanup 1522 1695 root 15r REG 0,21 4096 36654 /sys/devices/virtual/block/md0/md/degraded | |
pool 1522 17599 root 14r REG 0,21 4096 36641 /sys/devices/virtual/block/md0/md/sync_action | |
pool 1522 17599 root 15r REG 0,21 4096 36654 /sys/devices/virtual/block/md0/md/degraded | |
mount.ntf 3677 root 14r REG 0,21 4096 36641 /sys/devices/virtual/block/md0/md/sync_action | |
mount.ntf 3677 root 15r REG 0,21 4096 36654 /sys/devices/virtual/block/md0/md/degraded | |
mount.ntf 4829 root 14r REG 0,21 4096 36641 /sys/devices/virtual/block/md0/md/sync_action | |
mount.ntf 4829 root 15r REG 0,21 4096 36654 /sys/devices/virtual/block/md0/md/degraded |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo mdadm -D /dev/md0 | |
/dev/md0: | |
Version : 1.2 | |
Creation Time : Sat May 20 17:14:37 2017 | |
Raid Level : raid1 | |
Array Size : 5860390464 (5588.90 GiB 6001.04 GB) | |
Used Dev Size : 5860390464 (5588.90 GiB 6001.04 GB) | |
Raid Devices : 2 | |
Total Devices : 1 | |
Persistence : Superblock is persistent | |
Intent Bitmap : Internal | |
Update Time : Sat Feb 23 08:14:24 2019 | |
State : clean, degraded | |
Active Devices : 1 | |
Working Devices : 1 | |
Failed Devices : 0 | |
Spare Devices : 0 | |
Consistency Policy : bitmap | |
Name : piper:0 | |
UUID : 7912aedb:a632745c:841d4dfe:4d74af8d | |
Events : 9374 | |
Number Major Minor RaidDevice State | |
- 0 0 0 removed | |
1 8 17 1 active sync /dev/sdb1 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mount | |
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) | |
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) | |
udev on /dev type devtmpfs (rw,nosuid,relatime,size=16395972k,nr_inodes=4098993,mode=755) | |
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) | |
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=3293348k,mode=755) | |
/dev/nvme0n1p3 on / type ext4 (rw,noatime,errors=remount-ro) | |
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) | |
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) | |
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) | |
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755) | |
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate) | |
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd) | |
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime) | |
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime) | |
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700) | |
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct) | |
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) | |
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio) | |
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) | |
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) | |
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids) | |
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma) | |
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory) | |
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) | |
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb) | |
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event) | |
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=27,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=15145) | |
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M) | |
debugfs on /sys/kernel/debug type debugfs (rw,relatime) | |
mqueue on /dev/mqueue type mqueue (rw,relatime) | |
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) | |
configfs on /sys/kernel/config type configfs (rw,relatime) | |
/dev/nvme0n1p2 on /recovery type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro) | |
/dev/nvme0n1p1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro) | |
tmpfs on /run/user/121 type tmpfs (rw,nosuid,nodev,relatime,size=3293344k,mode=700,uid=121,gid=127) | |
gvfsd-fuse on /run/user/121/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=121,group_id=127) | |
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=3293344k,mode=700,uid=1000,gid=1000) | |
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000) | |
/dev/sdd1 on /media/drewch/Drewch-HDD-2 type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2) | |
/dev/sde1 on /media/drewch/drewch-hdd-photography type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ps -up 336 | |
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND | |
root 336 0.0 0.0 0 0 ? S Feb22 0:05 [md0_raid1] | |
$ ps -up 1088 | |
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND | |
root 1088 0.0 0.0 0 0 ? S Feb22 0:00 [jbd2/md0-8] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment