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
0e130ccd
Commit
0e130ccd
authored
Mar 04, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update lvm_cache
parent
464ef5d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lvm_cache.sh
hdd/lvm_cache.sh
+3
-2
No files found.
hdd/lvm_cache.sh
View file @
0e130ccd
...
...
@@ -10,7 +10,7 @@ CSSDDEV=$(realpath $SSDDEV)
lv_check
()
{
local
LV
=
"
$1
"
lvs |
grep
-q
"
${
LV
}
_cache"
lvs |
grep
$VOL
|
grep
-q
"
${
LV
}
_cache"
}
lv_create
()
...
...
@@ -28,11 +28,12 @@ lv_create()
lv_disable
()
{
local
LV
=
"
$1
"
lvconvert
--splitcache
$VOL
/
${
LV
}
||
return
lvremove
$VOL
/
${
LV
}
_cache
lvremove
$VOL
/
${
LV
}
_cache_meta
}
pvscan |
grep
"PV
$CSSDDEV
"
||
vgextend
$VOL
$SSDDEV
pvscan |
grep
"
VG
$VOL
"
|
grep
"
PV
$CSSDDEV
"
||
vgextend
$VOL
$SSDDEV
#lv_disable vz
#lv_disable ipfs2
...
...
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