NetApp FlexClone technology enables instant, space-efficient clones of production or test data to be created easily, minimizing storage requirements, because physical disk space for these clones is required only when data blocks are changed. With NetApp FlexClone, each engineer can have his or her own virtual copy of production or test data for use in test and development activities.
The foundation of NetApp FlexClone is a writable point-in-time image based on a NetApp Snapshot® of a volume. The cloned volume stores only the data that changes between the source and clone. The Snapshot copy can already exist or it can be created automatically as part of the cloning operation. Creating the FlexClone volume takes just a few moments because the copied metadata is very small compared to the actual data. The parent volume can change independently of the FlexClone volume. It can also be split from its parent to create a new standalone volume. Space is used very efficiently because new disk space is only allocated when there are metadata updates and/or additions to either the parent or the clone volume. While this may sound like magic, this technology has been an integral part of Data ONTAP and deployed for numerous years in productions.
Slides: NetApp 'Storage magic'
Populate: Automated builds sync Perforce code to a template client workspace and build.
Clone: NetApp will snapshot/clone the build workspace (Perforce files + build artefacts)
Create: Perforce user will request to create a workspace, NetApp will provide the content and a p4 sync -k
to build the have list.
Update: Use new NetApp snapshot, p4 reconcile
and incremental build.
User creates a FlexClone Template workspace
Perforce Client naming convention (e.g. flexclone_
)
Populate Perforce have list (regular sync)
NetApp snapshots Workspace content (versioned files and build assets)
[POST ACTION]
on p4 client
if name is prefixed with flexclone_
.
[?] Should the FlexClone Template workspace be imutable?
User create a workspace from the FlexClone Template
FlexClone pre populates files.
Perforce runs a sync -k ...@flexclone_template-name
to build have list.
[POST ACTION]
on p4 client -t
if template name is prefixed with flexclone_
.
Delete a FlexClone Template workspace
Update a FlexClone Template workspace
User deletes a FlexClone workspace
client -d
## P4 FlexClone ### NetApp Flexclone Technology NetApp FlexClone technology enables instant, space-efficient clones of production or test data to be created easily, minimizing storage requirements, because physical disk space for these clones is required only when data blocks are changed. With NetApp FlexClone, each engineer can have his or her own virtual copy of production or test data for use in test and development activities. The foundation of NetApp FlexClone is a writable point-in-time image based on a NetApp Snapshot® of a volume. The cloned volume stores only the data that changes between the source and clone. The Snapshot copy can already exist or it can be created automatically as part of the cloning operation. Creating the FlexClone volume takes just a few moments because the copied metadata is very small compared to the actual data. The parent volume can change independently of the FlexClone volume. It can also be split from its parent to create a new standalone volume. Space is used very efficiently because new disk space is only allocated when there are metadata updates and/or additions to either the parent or the clone volume. While this may sound like magic, this technology has been an integral part of Data ONTAP and deployed for numerous years in productions. [Paper: NetApp 'Storage magic'](http://www.perforce.com/sites/default/files/pdf/storage-magic-netapp-paper.pdf) [Slides: NetApp 'Storage magic'](http://www.perforce.com/sites/default/files/pdf/storage-magic-netapp-slides.pdf) ## Design ### Flexclone workflow 1. __Populate__: Automated builds sync Perforce code to a template client workspace and build. 2. __Clone__: NetApp will snapshot/clone the build workspace (Perforce files + build artefacts) 3. __Create__: Perforce user will request to create a workspace, NetApp will provide the content and a `p4 sync -k` to build the have list. 4. __Update__: Use new NetApp snapshot, `p4 reconcile` and incremental build. ### Use cases 1. User creates a FlexClone Template workspace * Perforce Client naming convention (e.g. `flexclone_`) * Populate Perforce have list (regular sync) * NetApp snapshots Workspace content (versioned files and build assets) * `[POST ACTION]` on `p4 client` if name is prefixed with `flexclone_`. * [?] Should the FlexClone Template workspace be imutable? 2. User create a workspace from the FlexClone Template * FlexClone pre populates files. * Perforce runs a `sync -k ...@flexclone_template-name` to build have list. * `[POST ACTION]` on `p4 client -t` if template name is prefixed with `flexclone_`. 3. Delete a FlexClone Template workspace * Clean up Perforce template workspace * Clean up FlexClone Snapshot * [?] Clean up children? 4. Update a FlexClone Template workspace * ? 5. User deletes a FlexClone workspace * Run Perforce `client -d` * Remove the contents of the workspace * Destroy clone
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#23 | 20271 | netapp | added 8/25/2016 changelist to readme.md file | ||
#22 | 20269 | netapp | Added in documentation changes to address 'p4 snapshot -d' functionality | ||
#21 | 19571 | netapp | formatting of README.md | ||
#20 | 19570 | netapp | Rollback //guest/netapp/p4flex/main/README.md to revision 18 | ||
#19 | 19569 | netapp | formatting of README.md for main page | ||
#18 | 19568 | netapp | formatting | ||
#17 | 19567 | netapp | formatting | ||
#16 | 19566 | netapp | added spacing | ||
#15 | 19565 | netapp | Fixing links | ||
#14 | 19564 | netapp | Added images directly into README.md on main page | ||
#13 | 19562 | netapp | one word caps wrong in readme.md | ||
#12 | 19561 | netapp | Contents of Build Flow and Developer Flow added | ||
#11 | 19558 | netapp | Added workflow images | ||
#10 | 19534 | netapp | modifed file locations inside REAME.md | ||
#9 | 19489 | netapp | Added Merge 2016 Session Replay | ||
#8 | 19488 | netapp | Added link for Merge 2016 document | ||
#7 | 19486 | netapp | ? | ||
#6 | 19471 | netapp | minor formatting | ||
#5 | 19470 | netapp | minor line revision for #4 | ||
#4 | 19469 | netapp | minor revision | ||
#3 | 19468 | netapp | changed main screen content to remove question marks | ||
#2 | 19376 | netapp |
Changed P4 FlexClone to P4 Flex. Changed Flexclone to FlexClone. |
||
#1 | 18997 | netapp |
Rename/move file(s) Project name change: moving //guest/netapp/p4flexclone/main/… to //guest/netapp/p4flex/main/… |
||
//guest/netapp/p4flexclone/main/README.md | |||||
#5 | 14113 | Lester Cheung | Turns out there was an extra LF at the end of the first line that confused parsedown. | ||
#4 | 14112 | Lester Cheung |
Take 2. :( |
||
#3 | 14111 | Lester Cheung | Fixed heading on top - not sure about the question marks below however ^_^ | ||
#2 | 12948 | agnesj | Added another use case | ||
#1 | 12160 | Paul Allen | Moved file to correct spelling of project | ||
//guest/perforce_software/p4flexcone/README.md | |||||
#1 | 12159 | Paul Allen | Initial ideas for design (work-in-progress) |