Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
ボリュームマネージャLVM
Search
Satoru Takeuchi
PRO
December 30, 2023
Technology
280
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ボリュームマネージャLVM
以下動画のテキストです。
https://youtu.be/0R02LLBFk4o
Satoru Takeuchi
PRO
December 30, 2023
Transcript
8 slides
ボリュームマネージャ LVM Satoru Takeuchi X: satoru_takeuchi 1
原始的なブロックデバイス管理の課題 • サイズはディスクの全容量か、それを区切ったパーティションの容量 ◦ ディスクサイズを超える大きさのボリュームは作れない • 一度決めた構成は変えづらい ◦ パーティションの作りなおし /最後のパーティションを拡張
/新パーティションの作成 2
LVM(Logical Volume Manager) • 1ノード内の複数ディスクを束ねてVolume Group(VG)と呼ばれるストレージプール を作る ◦ Volume Groupに組み込むディスクを
Physical Volume(PV)と呼ぶ • Volume Groupのサイズが許す限り好きな数だけLogical Volume(LV)と呼ばれる ブロックデバイスを作る 3 disk disk disk Volume Group … LV LV LV PV PV PV …
LVMの利点 • VGにディスクを追加、削除できる • VGの容量を超えない範囲で好きな数だけ好きな容量のLVを作れる ◦ 一台のディスクの容量を超えるサイズの LVも作れる • LVの拡張、縮小ができる
◦ 📝LVの拡張、縮小後にファイルシステムも拡張、縮小する必要がある • スナップショットを採取できる • 上記すべてをディスクアクセスを止めずに実現できる 4
例: 2つのディスクから3つのLVを作る 5 /dev/sda /dev/sdb Volume Group /dev/testvg/testlv0 /dev/testvg/testlv1 /dev/testvg/testlv2
PV PV 別名 /dev/mapper/testvg-testlv /dev/dm-X
例: Ubuntu22.04はでフォルトでLVMを使う 6 /dev/sda ubuntu-vg /dev/ubuntu-vg/root /dev/ubuntu-vg/home /dev/ubuntu-vg/swap_1 /dev/sda1 /dev/sda2
PV / boot efi home
LVMはdevice mapperを利用して実装されている • linearターゲットを使う ◦ 📝 「device mapperによるディスクI/O障害のエミュレーション 既存ターゲット編」 •
VGに組み込まれたディスクの一部をリニアマップ 7 sda sdb lv0 lv1 lv2
まとめ • Linuxにはブロックデバイス管理を楽にするためのLVMという機能がある • ディスクの容量に縛られず、柔軟なボリューム管理ができる • VGへのディスク追加/削除、LVの作成/削除/拡張/縮小が無停止でできる • スナップショットも採取できる •
LVMは内部でdevice mapperを使える • 📝 使い方はArch Wikiが詳しい ◦ https://wiki.archlinux.jp/index.php/LVM 8
More Decks by Satoru Takeuchi
See All by Satoru Takeuchi
Btrfsのsnapshotとランダム書き込み
sat
PRO
0
59
ファイルシステムのデフラグ
sat
PRO
1
62
コピーオンライト型ファイルシステムと ランダム書き込み
sat
PRO
2
140
119-多機能ファイルシステムBtrfs_のコピー.pdf
sat
PRO
1
92
Linuxカーネルの インタフェースは変わりうる?
sat
PRO
1
120
あなたの知らないバージョン命名規則
sat
PRO
3
940
Rook: Intro and Deep Dive with Ceph
sat
PRO
1
92
Machine Check Exception
sat
PRO
2
81
バイナリダンプの模様を読む
sat
PRO
0
130
Other Decks in Technology
See All in Technology
メルカリの小規模チーム「Pod」で、 エンジニアがデータアナリストなしで、 AIを使ってデータ分析の自走を目指す取り組み
jackojacko_
1
370
認知の質も文化醸成も。数年取り組んで見えてきた技術広報のKPI設計 / Tech PR KPIs: Lessons on Awareness Quality and Culture After Several Years
bitkey
PRO
0
260
Taking back control of your AI development
inesmontani
PRO
0
320
SBOM 生成ツールで 2026 Minimum Elements はどこまで満たせるのか
gokken
0
180
New Relicのアラート対応をClaude Codeで自動修正するワークフローを作った話
manabuseki
3
740
Fukurou Labo_Engineer_Deck
fukuroulabo
0
110
Amazon Bedrock AgentCore の基礎とセキュリティ・ガバナンス
ren8k
0
290
対話 AI プラットフォーム「アイブリー」で実践する自然言語処理と事業開発
ivry_presentationmaterials
0
140
さようならSSH鍵、こんにちはゼロトラスト ― AIフレンドリーで快適な自宅鯖SSH
atalie2m
14
7.6k
猫でもわかるKiro初心者編(2026年11月版)
kentapapa
1
120
本の挿絵に困ったから挿絵メーカーを自作した
yoshimura_datam
1
120
20261119_AgentCore
takuyay0ne
2
340
Featured
See All Featured
Leo the Paperboy
mayatellez
11
2.5k
Paper Plane (Part 1)
katiecoart
PRO
3
12k
The Curious Case for Waylosing
cassininazir
1
630
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
320
Reflections from 52 weeks, 52 projects
jeffersonlam
356
22k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
580
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
590
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Fireside Chat
paigeccino
43
4.1k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
620
Embracing the Ebb and Flow
colly
88
5.2k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k