Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
a2cf9abf
Commit
a2cf9abf
authored
Nov 21, 2019
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve print_*.sh
parent
73d77463
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
print_disks.sh
hdd/print_disks.sh
+1
-1
print_mds.sh
hdd/print_mds.sh
+10
-1
No files found.
hdd/print_disks.sh
View file @
a2cf9abf
...
...
@@ -40,7 +40,7 @@ for i in $PHYSORDER ; do
printf
"ata%2s. "
"
$n
"
if
grep
-q
"
$i
$"
$0
.log
;
then
DEV
=
"
$(
grep
"
$i
$"
$0
.log |
sed
-e
"s| .*||"
)
"
health
$DEV
||
echo
"NACCESS"
health
$DEV
||
echo
"NACCESS
to
$DEV
"
printf
"%s %7s %s
\n
"
"
$(
print_dev_type
$DEV
)
"
"
$(
print_size
$DEV
)
"
"
$(
grep
"
$i
$"
$0
.log
)
"
grep
"
$i
$"
$0
.log
>>
$0
.log.found
else
...
...
hdd/print_mds.sh
View file @
a2cf9abf
...
...
@@ -4,6 +4,15 @@ PROGDIR=$(dirname "$0")
[
"
$PROGDIR
"
=
"."
]
&&
PROGDIR
=
$(
pwd
)
.
$PROGDIR
/functions.sh
echo
"md:"
for
dev
in
$(
echo
/sys/class/block/md
*)
;
do
echo
"
$(
basename
$dev
)
$(
print_partsize
$dev
)
"
DEV
=
"/dev/
$(
basename
$dev
)
"
echo
"
$DEV
$(
print_partsize
$dev
)
$(
blkid
$DEV
)
"
done
echo
echo
"dm:"
echo
/dev/dm
*
| xargs
-n1
blkid
echo
"LVM:"
echo
/dev/
{
SSD,HYBRID,HDD
}
/
*
| xargs
-n1
blkid
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment