- Community Home
- >
- Storage
- >
- HPE Nimble Storage
- >
- Array Setup and Networking
- >
- Powershell Command to Change Performance Policies ...
-
- Forums
-
Blogs
- Hybrid Cloud
- Edge
- Data & AI
- Working in Tech
- AI Insights
- Alliances
- Around the Storage Block
- Behind the scenes at Labs
- Careers in Tech
- HPE Storage Tech Insiders
- Inspiring Progress
- IoT at the Edge
- My Learning Certification
- OEM Solutions
- Servers: The Right Compute
- Shifting to Software-Defined
- Telecom IQ
- Transforming IT
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Russia
- HPE Blog, UK & Ireland
- Blogs
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-26-2014 12:05 AM
10-26-2014 12:05 AM
Powershell Command to Change Performance Policies on Cloned Volume
Hi,
I've been looking to take the burden off of my Windows 2012 serve cluster for backup snapshots. Up to this point using Vice Versa and Windows VSS to backup data to a whitebox over 10gig. Surprisingly effective but drains resources from a file server that is busy serving up files. I've come up with a way to mount these NTFS iSCSI volumes on a different host using powershell but would like to set these cloned volumes to a non-cached performance policy. The reasoning is that any data that is pulled from these clones won't contribute to cache churn. I'm hoping there is a flag I can set that will allow me to change the performance policy of a cloned volume. Up till this point I've only seen that option on creation of new volumes in powershell.
Here are the scripts I am using to Mount and Unmount cloned NTFS volumes to another host. If you use a file based backup solution like Vice Versa this should work well. Thanks to the code examples I'd seen on Nimble Connect for getting me most of the way there. Thanks to Technet for the rest.
How to create a clone, update iSCSI on windows server, and mount a drive with a specific letter.
Connect-NSArray -SystemName 1.1.1.1 -Password ********
Get-NSSnapShot -Volume MainDisk
Get-NSVolume -Name MainDisk | New-NSSnapshot -Name MainDiskClone | New-NSClone -Name MainDiskClone
Add-NSInitiatorGroupToVolume -InitiatorGroup backup-server -Volume MainDiskClone -Access Volume
Update-IscsiTarget
$tar = Get-IscsiTarget -NodeAddress *MainDiskClone*
Connect-IscsiTarget -NodeAddress $tar.NodeAddress
$disk = Get-Disk | ? OperationalStatus -EQ Offline
set-disk -InputObject $disk -IsOffline $false
set-disk -InputObject $disk –IsReadOnly $false
$drivename = gwmi win32_volume -Filter "Label = 'MainDiskClone'"
$drivename.DriveLetter = "V:"
$drivename.put()
Unmounting a clone from windows server and destroying it on the Nimble Array
Connect-NSArray -SystemName 1.1.1.1 -Password ********
$tardrop = Get-IscsiTarget -NodeAddress *MainDisk*
Disconnect-IscsiTarget -NodeAddress $tardrop.NodeAddress -confirm:$false
Remove-NSVolume MainDiskClone –Force
Get-NSVolume MainDisk | Get-NSSnapShot | Remove-NSSnapShot -Force
Hope this can help somebody and if anybody has any interest in revealing or adding the functionality of changing the performance policy for a cloned volume I would be very interested to hear.
Thanks,
Dan
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2019 Hewlett Packard Enterprise Development LP