Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


how to create 2 HDD on KVM for linux
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.

how to create 2 HDD on KVM for linux

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.

  • rds100rds100 Member

    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?

  • rds100rds100 Member

    @asterisk14 said:
    rds100 - second hard disk is just storage mostly, some log files, mostly static. how would i go about doing what you have said?

    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

Sign In or Register to comment.