New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
how to create 2 HDD on KVM for linux
asterisk14
Banned
in General
i'm installing a linux program that expects 2 HDD's. One for linux program and other for storage. I've used Gpart to create 4 partitions (there were already 3 created by the linux), but the extra one does not show up. I think the program is expecting a physically separate HDD. Is there any way to emulate or do this in KVM?
Comments
You need to ask your host to split your hard drive.
Will the second HDD be used for a lot of IO? If not, you can try cheating by creating a loop device and mounting it.
@rds100 - second hard disk is just storage mostly, some log files, mostly static. how would i go about doing what you have said?
I use this for my VPS
http://dmz.us/2011/04/adding-storage-to-linux/
create 1GB empty image file
dd if=/dev/zero of=disk2.img bs=1M count=1k
setup loopback device
losetup /dev/loop0 ./disk2.img
create file system
mkfs.ext4 /dev/loop0
create mount directory
mkdir /otherdisk
mount the image
mount /dev/loop0 /otherdisk
thanks will give it a try