/dev/vdb is your data disk

CS won't format automatically ,you have to manually create LV and format 
operations

 do the following steps:

Fdisk /dev/vdb

Option m will provide the menu in that menu select  option to create new 
pattiton
 
2.  Select n option  to create new partition  and choose/accept  the default 
value during partition creation

3. Once partition got created ,select the w option to write I node table info
4.now you can see /vbb ,vdb1  when you enter fdisk -l
5 format the the  logical partition  created in step 4  like mkfs.ext3 /dev/vdb
6. mount the disk mount /dev/vdb1 /mnt  and perform IO on mounted path(/mnt)

Hope this helps:


Regards
Sadhu


-----Original Message-----
From: Gaurav Aradhye [mailto:gaurav.arad...@clogeny.com] 
Sent: 26 August 2013 14:53
To: dev@cloudstack.apache.org
Subject: Re: Writing to volume attached to VM

Hi,

Answering your questions in order c,a,b.

c) I am listing the partitions on the vm using fdisk -l command.
This is giving me following output.

 ['', 'Disk /dev/vda: 8589 MB, 8589934592 bytes', '255 head

s, 63 sectors/track, 1044 cylinders', 'Units = cylinders of 16065 * 512 =
8225280 bytes', '', ' Device Boot Start End Blocks Id System',

'/dev/vda1 * 1 13 104391 83 Linux', '/dev/vda2 14 1044 8281507+ 8e Linux LVM', 
'', 'Disk /dev/vdb: 1073 M

B, 1073741824 bytes', '16 heads, 63 sectors/track, 2080 cylinders', 'Units = 
cylinders of 1008 * 512 = 516096 bytes', '']


As you can see two disks /dev/vda and /dev/vdb are listed.

This output remains the same after attaching a volume to the vm.


a) As I am not able to identify any new partition, not able to detect the exact 
partition that needs to be mounted.

This is where I need help. How to identify the volume partitions and mount them?


b) Once the device is identified, it can be mounted using mount command.
Right now it is mounting the root disk partitions.


Firing all these commands to using remoteSSHClient of vm.



Regards,
Gaurav


On Mon, Aug 26, 2013 at 2:16 PM, Prasanna Santhanam <t...@apache.org> wrote:

> On Mon, Aug 26, 2013 at 02:08:19PM +0530, Gaurav Aradhye wrote:
> > Hi all,
> >
> > Can you guide me on how to write on the external volume (DataDisk)
> attached
> > to a VM?
> >
> > I am trying to mount the partition, but the list of partitions 
> > before and after attaching the volume to vm, remains the same, so I 
> > am unable to detect which partition has been added.
>
> How do you
> a) identify the device on which the disk is available to be mounted
> b) mount the formatted device to your VM
> c) list the partitions/disks
>
> Some commands on how you do this will help.
>
> >
> > Has anybody done this before through test case?
> >
> > Regards,
> > Gaurav
>
> --
> Prasanna.,
>
> ------------------------
> Powered by BigRock.com
>
>

Reply via email to