StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI-261552 Storage Services ACGRID-III.

Slides:



Advertisements
Similar presentations
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Management Overview StratusLab.
Advertisements

StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab: Enhancing grid.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Work Package 4 Software Integration.
Virtual Machine Lifecycle StratusLab Tutorial (Orsay, France) 28 November 2012.
Using Storage with VMs StratusLab Tutorial (Orsay, France) 28 November 2012.
Marketplace and Appliance Management Charles (Cal) Loomis & Mohammed Airaj LAL, Univ. Paris-Sud, CNRS/IN2P October 2013.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Sharing Virtual Appliances.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI VM Lifecycle ACGRID-III (Hanoi)
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Introduction to Cloud Technology.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab: Cloud Federation.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab Cloud Distribution.
Cloud based storage. Cloud Storage Storage accessed by a web service API It is a block storage, it exposes its storage to clients as Raw storage that.
 Cloud computing  Workflow  Workflow lifecycle  Workflow design  Workflow tools : xcp, eucalyptus, open nebula.
Installation Overview Charles (Cal) Loomis & Mohammed Airaj LAL, Univ. Paris-Sud, CNRS/IN2P October 2013.
Customized cloud platform for computing on your terms !
Building service testbeds on FIRE D5.2.5 Virtual Cluster on Federated Cloud Demonstration Kit August 2012 Version 1.0 Copyright © 2012 CESGA. All rights.
Network Configuration Charles (Cal) Loomis & Mohammed Airaj LAL, Univ. Paris-Sud, CNRS/IN2P October 2013.
Evolution to CIMI Charles (Cal) Loomis & Mohammed Airaj LAL, Univ. Paris-Sud, CNRS/IN2P3 29 August 2013.
Client Installation StratusLab Tutorial (Orsay, France) 28 November 2012.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Cloud Computing and Challenges.
StratusLab Cloud Distribution Installation Charles Loomis (CNRS/LAL) 3 July 2014.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Marketplace & Image Metadata.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Virtual Machine Isolation.
Advanced Topics StratusLab Tutorial (Orsay, France) 28 November 2012.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Client Installation ACGRID-III.
Storage Services Charles (Cal) Loomis & Mohammed Airaj LAL, Univ. Paris-Sud, CNRS/IN2P October 2013.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Registration ACGRID-III (Hanoi)
| nectar.org.au NECTAR TRAINING Module 9 Backing up & Packing up.
Computing Services Charles (Cal) Loomis & Mohammed Airaj LAL, Univ. Paris-Sud, CNRS/IN2P October 2013.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI The StratusLab Cloud Distribution.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab: Tutorial Recap.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab: Storage Services.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INSFO-RI StratusLab project Update.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab Collaborations.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INSFO-RI Integrating Cloud Monitoring.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab: Storage Services.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab: Marketplace EGI.
Appliance Management StratusLab Tutorial (Orsay, France) 28 November 2012.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INSFO-RI Operating grid services on.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab: Enhancing Grid.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Management Overview StratusLab.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Work Package 3 Dissemination.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Demonstration StratusLab First.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Work Package 2 Interactions.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI VM Lifecycle StratusLab Tutorial.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Client Installation StratusLab.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Technical Overview StratusLab.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab: Enhancing Grid.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab Marketplace C.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Work Package 2 Interactions.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Cloud Computing and Challenges.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Work Package 5 Infrastructure.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Virtual Machine Isolation.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Work Package 5 Infrastructure.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Introduction to Cloud Technology.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Exploitation and Sustainability.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab: Overview & Collaboration.
Current Status of the Project C. Loomis CNRS/LAL The StratusLab project is co-funded by the European Community’s Seventh Framework Programme (Capacities)
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab Sustainability.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Work Package 4 Software Integration.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Features, Use Cases, and Sustainability.
StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI StratusLab: VM Lifecycle EGI.
StratusLab Tutorial (Bordeaux, France)
StratusLab Cloud Distribution
StratusLab Roadmap C. Loomis (CNRS/LAL) EGI TCB (Amsterdam)
StratusLab Tutorial (Bordeaux, France)
StratusLab Tutorial (Bordeaux, France)
StratusLab Tutorial (Orsay, France)
StratusLab Tutorial (Orsay, France)
Different types of Linux installation
Presentation transcript:

StratusLab is co-funded by the European Community’s Seventh Framework Programme (Capacities) Grant Agreement INFSO-RI Storage Services ACGRID-III (Hanoi) 1 November 2011

2 Storage Services Persistent (Read-Write) Disks  Allows the storage of service state or user data  Mounted as a disk on VMs  Disks are persistent and have a lifecycle independent of a single VM  Can be mounted by single VM at any time  Only available within a single cloud instance Static (Read-Only) Disks  Useful for distribution of quasi-static databases  Handled and shared like VM images via Marketplace Volatile (Read-Write) Disks  Useful for temporary (!) data storage  Data will disappear when VM instance is destroyed

3 Other Storage Types File-based Storage  Normal client tools can be installed in VMs  Access services normally from VM (e.g. tools for SRM)  Unlikely to be implemented by StratusLab, although will provide CDMI interface to persistent storage service Object Storage  Simple object storage, usually minimal hierarchy and chunked data  Won’t implement this in StratusLab, could take implementations from elsewhere, e.g. OpenStack Key-value Pair Database  Exposes simple API for “database” of key-value pairs (e.g. Cassandra)  Can deploy VM with persistent disk to provide this service

4 Persistent Storage Architecture

5 Using a Persistent Disk Workflow  Create a disk with a given size via CLI/Web Portal.  Launch a machine instance referencing that image.  Partition (fdisk) and format (mkfs) the disk via the running VM  Store data to the disk as usual  Dismount the disk or halt the machine instance  Disk with persistent data is available for use by another VM

6 Using a Persistent Disk Persistent disk endpoint  In $HOME/.stratuslab/stratuslab-user.cfg, provide cloud-lal.stratuslab.eu as persistent disk endpoint: pdisk_endpoint = cloud-lal.stratuslab.eu

7 Create persistent disk: CLI Create a persistent disk with the following properties:  size = 2GiB  tag = myprivate-disk Run stratus-create-volume command to create your persistent disk.  Your persistent disk had been created with the UUID: 1ceeff5e-a0f7- 4eb a6e611 $ stratus-create-volume --size=2 --tag=myprivate-disk DISK 1ceeff5e-a0f7-4eb a6e611 $ stratus-create-volume --size=2 --tag=myprivate-disk DISK 1ceeff5e-a0f7-4eb a6e611 NB:  By default all the persistent disks are private: could be read, written and deleted only by their owner.  If you want other users have access (read and write only) to your persistent disks, set it to be public.  To create public persistent disk, pass --public argument to stratus-create-volume.

8 List Persistent Disks: CLI Stratus-describe-volumes allow you to:  List of all your public and private persistent disks,  List of all users public persistent disks Run stratus-describe-volumes command: $ stratus-describe-volumes :: DISK 5bc1c62e-af1b-439d-92da-a8fd1f99ec0b created: 2011/09/16 09:58:40 visibility: PUBLIC tag: test-public owner: test size: 1 users: 0 :: DISK 1ceeff5e-a0f7-4eb a6e611 created: 2011/09/16 13:36:30 visibility: private tag: myprivate-disk owner: egitf size: 2 users: 0 $ stratus-describe-volumes :: DISK 5bc1c62e-af1b-439d-92da-a8fd1f99ec0b created: 2011/09/16 09:58:40 visibility: PUBLIC tag: test-public owner: test size: 1 users: 0 :: DISK 1ceeff5e-a0f7-4eb a6e611 created: 2011/09/16 13:36:30 visibility: private tag: myprivate-disk owner: egitf size: 2 users: 0

9 Create persistent disk : Web Portal Create a public persistent disk with the following properties:  size = 1GiB  tag = mypublic-disk Run stratus-create-volume command to create your persistent disk. Log into with your StratusLab username and passwordhttps://cloud-lal.stratuslab.eu:8445/disks Log into with your StratusLab username and passwordhttps://cloud-lal.stratuslab.eu:8445/disks

10 List Persistent Disks: Web Portal Disks menu:

11 VM Instance with Persistent Disk Use a ttylinux image Identifier from the Marketplace:  export TTYLINUX_ID=LwcRbwCalYSysY1wftQdAj6Bwoi Deploy your virtual machine:  stratus-run-instance --persistent-disk=1ceeff5e-a0f7-4eb a6e611 ${TTYLINUX_ID}  Response should give the VM ID and Public IP: ::::::::::::::::::::::::: :: Starting machine(s) :: ::::::::::::::::::::::::: :: Starting 1 machine :: Machine 1 (vm ID: 18) Public ip: :: Done!

12 Mount Information on the Web Portal

13 Format the disk via the running VM  Partition (fdisk)? and format (mkfs) it via the running VM  In your VM, the persistent disk will be referenced as /dev/hdc or /dev/sdc. In ttylinux9.7, it will be /dev/hdc.  Format your disk $ ssh # fdisk –l … Disk /dev/hdc: 2147 MB, bytes 255 heads, 63 sectors/track, 261 cylinders Units = cylinders of * 512 = bytes … # mkfs.ext3 /dev/hdc

14 Mount & store data into your disk Mount your disk, store data into, and dismount it # mount /dev/hdc /mnt # echo "Testing Persistent Disk" > /mnt/test_pdisk # umount /mnt

15 Deploying a Virtual Machine with persistent disk Now deploy another virtual machine with the same persistent disk:  stratus-run-instance --persistent-disk=1ceeff5e-a0f7-4eb a6e611 ${TTYLINUX_ID}  Response should be: [ERROR] Only 0/1 disk(s) can be attached. Aborting Disk can only be attached to 1 Virtual Machine!

16 Unmount your disk via the Web Portal Now deploy another virtual machine with the same persistent disk:  stratus-run-instance --persistent-disk=1ceeff5e-a0f7-4eb a6e611 ${TTYLINUX_ID}

17 Verify disk contents via the running VM  Log into your VM using ssh, verify existence of your persistent disk $ ssh # fdisk –l … Disk /dev/hdc: 2147 MB, bytes 255 heads, 63 sectors/track, 261 cylinders Units = cylinders of * 512 = bytes … # mount /dev/hdc /mnt # ls /mnt lost+found test_pdisk # cat /mnt/test_pdisk Testing Persistent Disk # mount /dev/hdc /mnt # ls /mnt lost+found test_pdisk # cat /mnt/test_pdisk Testing Persistent Disk  Mount your persistent disk, verify its content

18 Kill you Virtual Machine On the Web Portal: myprivate-disk nb. of users =0 $ stratus-kill-instance 19

19 Persistent disk deletion  To delete your persistent disk: stratus-delete-volume $ stratus-delete-volume 1ceeff5e-a0f7-4eb a6e611 DELETED 1ceeff5e-a0f7-4eb a6e611 $ stratus-delete-volume 1ceeff5e-a0f7-4eb a6e611 DELETED 1ceeff5e-a0f7-4eb a6e611  List the existing persistent disks $ stratus-describe-volumes :: DISK 5bc1c62e-af1b-439d-92da-a8fd1f99ec0b created: 2011/09/16 09:58:40 visibility: PUBLIC tag: test-public owner: test size: 1 users: 0 :: DISK febae836-3b94-49f6-a9f4-4b85295b0184 created: 2011/09/16 13:37:57 visibility: PUBLIC tag: mypublic-disk owner: egitf size: 5 users: 0 $ stratus-describe-volumes :: DISK 5bc1c62e-af1b-439d-92da-a8fd1f99ec0b created: 2011/09/16 09:58:40 visibility: PUBLIC tag: test-public owner: test size: 1 users: 0 :: DISK febae836-3b94-49f6-a9f4-4b85295b0184 created: 2011/09/16 13:37:57 visibility: PUBLIC tag: mypublic-disk owner: egitf size: 5 users: 0

20 Hot-plug Persistent Disks To use the hot-plug feature, the running instance needed to have acpiphp kernel module loaded. ttylinux doesn’t have this feature, you have to use base image like Ubuntu, CentOS or Fedora. In this part of tutorial, we will be using Ubuntu10.04 (OWojA0YDjya7Uhzf7fDRulB3pz3 from  Persistent disks could be attached/detached using CLI or from the Web Portal  To attach one or more volumes to a running machine using CLI:  To detach one or more volumes from a running machine using CLI: $ stratus-attach-volume –i … $ stratus-detach-volume –i …

21 Deploying Ubuntu Virtual Machine Use a ubuntu image:  export UBUNTU_ID=OWojA0YDjya7Uhzf7fDRulB3pz3 Deploy your virtual machine:  stratus-run-instance $UBUNTU_ID  Response should give the VM ID and Public IP: ::::::::::::::::::::::::: :: Starting machine(s) :: ::::::::::::::::::::::::: :: Starting 1 machine :: Machine 1 (vm ID: 19) Public ip: :: Done!

22 Hot-plug Persistent Disks Before hot-plugin a disk, make sure acpiphp is loaded. In your VM execute:  To attach one or more volumes to a running machine using CLI:  To detach one or more volumes from a running machine using CLI: # modprobe acpiphp $ stratus-attach-volume –i … $ stratus-detach-volume –i …

23 Hot-plug Persistent Disks Attach mypublic-disk to your VM using CLI: $ stratus-attach-volume -i 19 febae836-3b94-49f6-a9f4-4b85295b0184 ATTACHED febae836-3b94-49f6-a9f4-4b85295b0184 in VM 19 on /dev/vda $ stratus-attach-volume -i 19 febae836-3b94-49f6-a9f4-4b85295b0184 ATTACHED febae836-3b94-49f6-a9f4-4b85295b0184 in VM 19 on /dev/vda

24 Hot-plug Persistent Disks

25 Hot-plug Persistent Disks Detach mypublic-disk from your VM using Web portal $ stratus-detach-volume -i 19 febae836-3b94-49f6-a9f4-4b85295b0184 DETACHED febae836-3b94-49f6-a9f4-4b85295b0184 from VM 19 on /dev/vda $ stratus-detach-volume -i 19 febae836-3b94-49f6-a9f4-4b85295b0184 DETACHED febae836-3b94-49f6-a9f4-4b85295b0184 from VM 19 on /dev/vda

26 Hot-plug Persistent Disks Attach mypublic-disk to your VM using Web Portal:

27 Questions and Discussion Exercises: 1)Start a machine with a volatile disk. Verify that it is visible and usable. Shut down machine. (USE TTYLINUX) 2)Run through the entire lifecycle of a persistent disk WITHOUT using a virtual machine. Do this with both the command line interface and web interface. 3)Create a persistent disk and attach this to a machine when it is started. Verify that the disk is visible. Write data to it. Shutdown the machine. Start another machine with the disk and then verify that the data is still accessible. (USE TTYLINUX) 4)Do the same but now with dynamic attach/detach of disk. (USE UBUNTU, do this in GROUPS)

Copyright © 2011, Members of the StratusLab collaboration: Centre National de la Recherche Scientifique, Universidad Complutense de Madrid, Greek Research and Technology Network S.A., SixSq Sàrl, Telefónica Investigación y Desarrollo SA, and The Provost Fellows and Scholars of the College of the Holy and Undivided Trinity of Queen Elizabeth Near Dublin. This work is licensed under the Creative Commons Attribution 3.0 Unported License