Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there an OnTap powershell command (or something someone wrote) that can display Volume Flexclones? I want to retrieve a list of flexclone volumes with their parent snapshot, similar to what is seem in filerview -> Volumes->flexclone volumes->manage.
Thanks,
Dan
Solved! See The Solution
1 ACCEPTED SOLUTION
migration has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Get-NaVol | Where {$_.CloneParent -ne $null -and $_.CloneParent[0].ParentVolumeName -eq "<parent volume name>"}
Let say my <patent volume name> is Win2K8R2SP1_MASTER, Executing command:
Get-NaVol | Where {$_.CloneParent -ne $null -and $_.CloneParent[0].ParentVolumeName -eq "Win2K8R2SP1_MASTER"}
gives me list of all FlexClones created from Win2K8R2SP1_MASTER volume. Also using $_.CloneParent[0].ParentSnapshotName in Where statement can add additional filtering for specific snapshot used for FlexClone.
If you want to display list of Flex Clones with their Parent Volume and Snapshot:
$FlexClones = Get-NaVol | Where {$_.CloneParent -ne $null -and $_.CloneParent[0].ParentVolumeName -eq "<parent volume name>"}
ForEach ($FlexClone in FlexClones)
{
$FlexClone.Name
$FlexClone.CloneParent[0].ParentVolumeName
$FlexClone.CloneParent[0].ParentSnapshotName
}
2 REPLIES 2
migration has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Get-NaVol | Where {$_.CloneParent -ne $null -and $_.CloneParent[0].ParentVolumeName -eq "<parent volume name>"}
Let say my <patent volume name> is Win2K8R2SP1_MASTER, Executing command:
Get-NaVol | Where {$_.CloneParent -ne $null -and $_.CloneParent[0].ParentVolumeName -eq "Win2K8R2SP1_MASTER"}
gives me list of all FlexClones created from Win2K8R2SP1_MASTER volume. Also using $_.CloneParent[0].ParentSnapshotName in Where statement can add additional filtering for specific snapshot used for FlexClone.
If you want to display list of Flex Clones with their Parent Volume and Snapshot:
$FlexClones = Get-NaVol | Where {$_.CloneParent -ne $null -and $_.CloneParent[0].ParentVolumeName -eq "<parent volume name>"}
ForEach ($FlexClone in FlexClones)
{
$FlexClone.Name
$FlexClone.CloneParent[0].ParentVolumeName
$FlexClone.CloneParent[0].ParentSnapshotName
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Awesome, that works, thanks!
