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 > >