You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Sanjeev N (JIRA)" <ji...@apache.org> on 2013/07/31 14:45:49 UTC
[jira] [Updated] (CLOUDSTACK-3979) [Object_Store_Refactor] setting
snapshot.delta.max is not honoured in creating delta snapshots.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-3979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sanjeev N updated CLOUDSTACK-3979:
----------------------------------
Attachment: cloud.dmp
management-server.rar
Attached management server log file and cloud db.
> [Object_Store_Refactor] setting snapshot.delta.max is not honoured in creating delta snapshots.
> -----------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-3979
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3979
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the default.)
> Components: Snapshot, Storage Controller
> Affects Versions: 4.2.0
> Environment: Latest build from ACS 4.2 branch
> Cluster: Xen
> Reporter: Sanjeev N
> Priority: Critical
> Fix For: 4.2.0
>
> Attachments: cloud.dmp, management-server.rar
>
>
> setting snapshot.delta.max is not honoured in creating delta snapshots.
> Steps to Reproduce:
> ================
> Bring up CS with atleast one xen cluster using NFS as the storage for both primary and secondary
> 1.Set the Snapshot.delta.max as 3
> 2.Restart the Management Server
> 3.Deploy a VM from the default Linux Template
> 4.Log into the VM and create a file on the ROOT disk with content in it.
> 5.Create a Snapshot of the ROOT disk.
> 6.Repeat Steps 4 and 5 at least six times
> Expected Result:
> =============
> Step 6 should generate at least two 'chains' of Snapshots on the Secondary Storage.
> Since snapshot.delta.max is set to 3, creating 4th snapshot should be a full snapshot
> Actual Result:
> ============
> Only one chain of snpashots got created in the secondary storage. All the snapshots are child snpshosts of its previous snapshots except the first one.
> Observations:
> ===========
> Output of vhd-util scan -p *.vhd on the SSVM:
> root@s-7-VM:/mnt/SecStorage/1f24310b-8f0b-3563-aecc-779179564245/snapshots/2/33# pwd
> /mnt/SecStorage/1f24310b-8f0b-3563-aecc-779179564245/snapshots/2/33
> root@s-7-VM:/mnt/SecStorage/1f24310b-8f0b-3563-aecc-779179564245/snapshots/2/33# vhd-util scan -p *.vhd
> vhd=674d1772-373f-4a24-9877-3a940e1f9ccb.vhd capacity=21474836480 size=1765089792 hidden=0 parent=none
> vhd=62b6787d-29b5-445a-acc2-1cd95c2b8326.vhd capacity=21474836480 size=42070528 hidden=0 parent=674d1772-373f-4a24-9877-3a940e1f9ccb.vhd
> vhd=2dd66734-63f9-4467-b936-240e58085e27.vhd capacity=21474836480 size=23159296 hidden=0 parent=62b6787d-29b5-445a-acc2-1cd95c2b8326.vhd
> vhd=91af0878-0914-4ab7-bf4d-fdce1bdb6667.vhd capacity=21474836480 size=27361792 hidden=0 parent=2dd66734-63f9-4467-b936-240e58085e27.vhd
> vhd=3bd0a406-63bc-4577-bd11-a4f062fae4aa.vhd capacity=21474836480 size=31564288 hidden=0 parent=91af0878-0914-4ab7-bf4d-fdce1bdb6667.vhd
> snapshots list from cloud db:
> mysql> select * from snapshots where volume_id=33;
> +----+----------------+------------+-----------+-----------+------------------+----------+------+---------------------------------+--------------------------------------+---------------+------------------+-------------+---------------------+---------+----------------+----------+------------+--------------+-----------------+---------+-------+
> | id | data_center_id | account_id | domain_id | volume_id | disk_offering_id | status | path | name | uuid | snapshot_type | type_description | size | created | removed | backup_snap_id | swift_id | sechost_id | prev_snap_id | hypervisor_type | version | s3_id |
> +----+----------------+------------+-----------+-----------+------------------+----------+------+---------------------------------+--------------------------------------+---------------+------------------+-------------+---------------------+---------+----------------+----------+------------+--------------+-----------------+---------+-------+
> | 59 | 2 | 2 | 1 | 33 | 1 | BackedUp | NULL | max-snap_ROOT-21_20130731122032 | eac75af7-e252-4ac2-b414-dd07fedc500e | 0 | MANUAL | 21474836480 | 2013-07-31 12:20:32 | NULL | NULL | NULL | NULL | NULL | XenServer | 2.2 | NULL |
> | 60 | 2 | 2 | 1 | 33 | 1 | BackedUp | NULL | max-snap_ROOT-21_20130731122343 | 44a605c3-a3b0-4a56-b8fc-277ae91f93da | 0 | MANUAL | 21474836480 | 2013-07-31 12:23:43 | NULL | NULL | NULL | NULL | NULL | XenServer | 2.2 | NULL |
> | 61 | 2 | 2 | 1 | 33 | 1 | BackedUp | NULL | max-snap_ROOT-21_20130731122558 | ec7035d6-bd9e-4457-b3f0-0c8767fed837 | 0 | MANUAL | 21474836480 | 2013-07-31 12:25:58 | NULL | NULL | NULL | NULL | NULL | XenServer | 2.2 | NULL |
> | 62 | 2 | 2 | 1 | 33 | 1 | BackedUp | NULL | max-snap_ROOT-21_20130731122753 | be8ca602-800a-415b-92ca-d9d45b333ab4 | 0 | MANUAL | 21474836480 | 2013-07-31 12:27:53 | NULL | NULL | NULL | NULL | NULL | XenServer | 2.2 | NULL |
> | 63 | 2 | 2 | 1 | 33 | 1 | BackedUp | NULL | max-snap_ROOT-21_20130731122911 | 25f547f3-c8f5-4d61-b208-97a082e57667 | 0 | MANUAL | 21474836480 | 2013-07-31 12:29:11 | NULL | NULL | NULL | NULL | NULL | XenServer | 2.2 | NULL |
> +----+----------------+------------+-----------+-----------+------------------+----------+------+---------------------------------+--------------------------------------+---------------+------------------+-------------+---------------------+---------+----------------+----------+------------+--------------+-----------------+---------+-------+
> 5 rows in set (0.00 sec)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira