[ILUG] How do I add a second disk to a xen vm?
Conor Wynne
mariconor at gmail.com
Tue Apr 22 14:58:34 IST 2008
On Tue, Apr 22, 2008 at 2:31 PM, Stephen Burke <steviewdr at skynet.ie> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
>
> On Tue, 22 Apr 2008, Stephen Burke wrote:
>
> > so you'd go:
> > disk =
> >
> > ['file:/xens/vm/diskimage.img,sda1,w','file:/xens/vm/swapimage.img,sda2,w',file:/xens/vm/diskimage2.img,sda1,w']
> >
>
> Apologies. Typo there in the previous line. Correct line for above:
> disk =
> ['file:/xens/vm/diskimage.img,sda1,w','file:/xens/vm/swapimage.img,sda2,w',file:/xens/vm/diskimage2.img,sda3,w']
>
> Rgds,
> Steve Burke
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFIDejC21ZxaWXmuiARAjjeAJoCZj+USLHKABvnVGfJhcjO5s+ysACfaQlJ
> fE4UTS2WYe6J4uQ8LAB9cCc=
> =ib/g
> -----END PGP SIGNATURE-----
>
Good man Stephen,
[root at rh4 ~]# fdisk -l
Disk /dev/xvda: 4194 MB, 4194304000 bytes
255 heads, 63 sectors/track, 509 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/xvda1 * 1 13 104391 83 Linux
/dev/xvda2 14 509 3984120 8e Linux LVM
Disk /dev/xvdb: 3145 MB, 3145728000 bytes
255 heads, 63 sectors/track, 382 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/xvdb1 1 382 3068383+ 83 Linux
For reference, I used the following mode -- this is a para-virtualised rh4
server which will act as a yum repository for RHEL4 guests --
disk = [
"tap:aio:/var/xen_images/rhel4_yum_server.img,xvda,w","tap:aio:/var/xen_images/yumsrvdisk2.img,xvdb,w"
]
Now all i have to do is figure out how to make yum work properly with rhel4
and still be running a supported OS. ;-0
Regards & thanks again
Conor.
More information about the ILUG
mailing list