| By Kiran Murari | Article Rating: |
|
| March 26, 2010 02:28 AM EDT | Reads: |
1,303 |
Linux Instances
First create a volume of the required size using euca-create-volume
$ euca-create-volume -s 10 -z mycloud VOLUME vol-333C04B8 10 creating 2010-03-26T05:20:56.383Z
Check the available volumes and their status with euca-describe-volumes
$ euca-describe-volumes VOLUME vol-333C04B8 10 mycloud available 2010-03-26T05:20:56.383Z
Now attach the volume to a running instance using euca-attach-volume
$ euca-attach-volume -i i-41620887 -d /dev/sdb vol-333C04B8
The volumes status changes from “available” to “in-use” if it is attached properly.
$ euca-describe-volumes VOLUME vol-333C04B8 10 mycloud in-use 2010-03-26T05:41:28.019Z ATTACHMENT vol-331F04B2 i-41620887 unknown,requested:/dev/sdb 2010-03-26T05:43:51.343Z
Once you login to the instance through ssh, you should see the new volume.
$ sudo fdisk -l Disk /dev/sda: 2195 MB, 2195718144 bytes 4 heads, 32 sectors/track, 33504 cylinders Units = cylinders of 128 * 512 = 65536 bytes Disk identifier: 0x000adc1c Device Boot Start End Blocks Id System /dev/sda1 1 32769 2097152+ 83 Linux /dev/sda3 32769 33504 47071 82 Linux swap / Solaris Disk /dev/sdb: 10.7 GB, 10737418240 bytes 64 heads, 32 sectors/track, 10240 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Disk identifier: 0x00000000 Disk /dev/sdb doesn't contain a valid partition table
Now /dev/sdb is ready to be formatted and mounted so that it can be used as a permanent storage. Unmount the volume before bringing down the instance, to avoid any data corruption.
Windows Instances
For windows instances, creating the volume and attaching the volume would be the same.
NOTE: Even while attaching the device need to specified as /dev/sdb
The only change is the way this disk is accessed. Once the disk is attached to a running windows instance, perform the following steps:
- Connect to windows instance via RDP
- Go to Start -> Run and type diskmgmt.msc without the quotes. Select OK. This opens the Disk Management console.
- Right click on the new disk at the bottom of the list and choose Initialize Disk.
- A pop up will appear, choose OK.
- Next right click on the volume and select New Partition.
- A wizard appears and accept the defaults, other than change the disk letter as per need.
- Finish up the wizard, and windows will now format the partition.
After completion the disk management tool shows a healthy partition on the new drive.
Troubleshooting
If the network configuration on CC and NC has changed, say either the interfaces changed, due to which the ip addresses have also changed. In such cases the following errors appear in nc.log
[EUCAERROR ] libvirt: operation failed: adding scsi disk failed: pci_add pci_addr=auto storage file=/dev/etherd/e0.8,if=scsi failed to add file=/dev/etherd/e0.8,if=scsi (code=9) [Fri Mar 26 10:57:39 2010][001621][EUCAERROR ] virDomainAttachDevice() failed (err=-1) XML= [Fri Mar 26 10:57:39 2010][001621][EUCAERROR ] ERROR: doAttachVolume() failed error=1
In order to overcome this, the configuration has to be changed accordingly from the webUI. Access the webUI of UEC using https://:8443. On Configuration page, under Clusters section, replace the correct ip and interface name for Storage Controller.
See below screenshot.
Filed under: Cloud Computing, EBS, Eucalyptus, UEC
Read the original blog entry...
Published March 26, 2010 Reads 1,303
Copyright © 2010 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Kiran Murari
Kiran Murari works at CSS Corp. Earlier, he was into the domain of Embedded Networking and has worked on developing software for ARM and MIPS based routers, porting Linux kernel and Linux applications to various hardware platforms like Intel IXP4xx, Xscale and OMAP3. As a part of developing software for routers, he was involved in developing the firewall and IDS/IPS modules. His current interests include Virtualization, Cloud Computing and Embedded devices.
- The Essential Guide to Better Release Management & Deployment
- General Telecom Announces RouteNGN’s Expanded Least Cost Routing Capabilities
- BLADE Network Technologies CEO Vikram Mehta and NASDAQ OMX CTO Mats Andersson to Address "The Race to Zero Latency in High Frequency Trading" in Keynote Session at High Performance Computing Financial Markets
- Joseph Stanley of BannerView.com Appointed to the Board of TBAN
- Full Tilt Poker Launches Steps Tournaments
- Simba Technologies to Provide Free Training on Excel Spreadsheet PivotTables Connectivity for Oracle 11g OLAP Option at COLLABORATE 10
- PT Schedules First Quarter 2010 Earnings Release and Conference Call
- SingleHop's Cascade Cloud Program Launches CloudLinux
- Long-Time Open Source Contributor Collabora Joins Linux Foundation
- Modius Announces Major Enhancements to Data Center Analysis and Intelligence Software
- New Relic Announces Support for Management of Applications Deployed on Microsoft's Windows Azure Platform
- Complimentary Analyst Research on Advanced Micro Devices, Inc. (NYSE: AMD), Verizon Communications, Inc. (NYSE: VZ), UAL Corp. (NASDAQ: UAUA), Radient Pharmaceuticals Corp. (AMEX: RPC) and Many More Available at BedfordReport.com
- FalconStor Announces HyperFS™ File System for Media and Entertainment Market
- Get to know the Refinement Web Part in SharePoint 2010 Enterprise Search
- The Essential Guide to Better Release Management & Deployment
- Commercial Add Ons to Open Source Software: aheadWorks and Magento
- ABBYY Europe Releases New Command Line Interface OCR Utility for Linux
- UEC: Bundling Linux Image
- Liquavista launches Display kits to enable customers to develop application & designs
- links for 2010-04-07
- General Telecom Announces RouteNGN’s Expanded Least Cost Routing Capabilities
- If You’re Saying Goodbye to Your Server, Bring Some Tissue
- BLADE Network Technologies CEO Vikram Mehta and NASDAQ OMX CTO Mats Andersson to Address "The Race to Zero Latency in High Frequency Trading" in Keynote Session at High Performance Computing Financial Markets
- Naples Web Design Firm Launches Website for New Naples, Florida Company
- Why Do 'Cool Kids' Choose Ruby or PHP to Build Websites Instead of Java?
- The Top 250 Players in the Cloud Computing Ecosystem
- Red Hat Named "Platinum Sponsor" of Virtualization Conference & Expo
- Ulitzer to Give Drupal 6.0 Its Biggest Scalability Challenge Yet
- An Introduction to Ant
- Appcelerator Named "Platinum Sponsor" of AJAX World Conference & Expo
- Early Notes on GoogleApps
- How Has Open Source Helped or Hindered?
- "What's New and Exciting About the Web Right Now?" Asks Time Magazine
- Oracle To Keynote Cloud Computing Expo
- AJAX World - Two Great PDF Creators
- First Eclipse Project Targeting PHP Now Available


































