Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery
/
devops
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1d5ea0e7
authored
Jun 14, 2017
by
Avi Junowicz
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
How to add a extra disk to running VM
parent
8a3fb7aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
common/docs/Add disk2VM.txt
common/docs/Add disk2VM.txt
0 → 100644
View file @
1d5ea0e7
main server
cd /var/lib/libvirt/images/
qemu-img create -f raw external.img 100G
virsh attach-disk test --source /var/lib/libvirt/images/external.img --target sdb --persistent
On VM
reboot
fdisk -l
cfdisk /dev/sdc (based on the name in fdisk -l)
mkfs.ext4 /dev/sdc
mkdir /mcz
mount /dev/sdc /mcz
add in /etc/fstab
/dev/vda /mcz ext4 defaults 0 0
cd mcz
mv /opt/mcz/user_images .
ln -s /mcz/user_images/ /opt/mcz/user_images
ln -s /mcz/logs/ logs
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