Friday, 3 February 2017

Server 2016 Nano Server, grow Cluster Shared Volume (CSV) using PowerShell.

Hello,

Growing a disk was always been so easy in the past, but with Nano server, you have to figure out a way to do it via PowerShell, as the option to Grow partition was grayed out for me in Server Manager (added as a remote server), and there is no DiskPart.

The procedure is pretty simple once you get it figured out. I took most of the information from another blog, but modified it a little bit to deal with CSV, as the other blog did not. I tried to find the link to the original blog but couldn't find it.

Anyways, here are the steps required:


  1. Expand the LUN on your SAN first.
  2. Connect to a remote PoweShell session on your Nano Server.
  3. Execute Update-HostStorageCache to rescan for storage changes.
  4. Type get-disk to get the information about the disks on your system. Take note of the disk number in the first colum. Let's assume I am working with disk 1.
  5. Type get-parition -DiskNumber 1 this will show you the partitions on the disk in question. Take note of the Partition Number, in my case, it's 2. 
  6. Execute Get-PartitionSupportedSize -DiskNumber 1 -ParitionNumber 2 to verify that the SizeMin and SizeMax are different numbers. SizeMax should be the size of your underlying disk, whereas SizeMin would be your current parition size. 
  7. Set a variable to match SizeMax so that you can grow the partition to the full size of the disk. Execute the following command, $MaxSize = (Get-PartitionSupportedSize -DiskNumber 1 -PartitionNumber 2).sizeMax
  8. Finally run this command to change your disk to the size set in the MaxSize variable, Resize-Partition -DiskNumber 1 -PartitionNumber 2 -Size $MaxSize


9 comments:

  1. إذا كنت تبحث على شركة للقضاء على حشرات بمنزلك فاليك الحل داخل شركتنا والقيام بالاتصال بنا مباشرة نصلك ونقضى على حشرات بضمان 6 ىشهور وعلى ايدي عمالة مدربة كما لدينا احدث الاجهزة للوصول إلى اصعب الاماكن
    مكافحة الحشرات بالامارات
    شركة مكافحة حشرات بالذيذ
    شركة مكافحة حشرات في ند الشبا
    شركة مكافحة حشرات في مليحة
    شركة مكافحة حشرات في مشيرف
    شركة مكافحة حشرات في كلباء
    شركة مكافحة حشرات في الخوانيج
    شركة مكافحة حشرات في الجرف
    شركة مكافحة حشرات في الجميرا

    ReplyDelete
  2. Its a very nice and informative article, Thank you for sharing this topic. visit:-Ace Divino

    ReplyDelete

  3. This Ace Starlit Noida 152 is unique and unique in itself, as compared to other residential projects. Ace Starlit is being built in Sector 152 Noida Expressway for high societies with all the luxury facilities.if you have any queries please Visit our site:- Ace Starlit

    ReplyDelete
  4. ATS Destinaire is a residential project that offers you 3/4bhk billion dollar luxury apartments Noida Apartment Extension

    ReplyDelete
  5. ATS Destinaire is a destination for investment and self-use. We offer affordable 3 and 4 bhk apartments in Greater Noida West. So Destinaire is such a project by taking what people complete with their dream home search, you get all sorts of amenities.

    ReplyDelete
  6. Creation and development is best programming improvement organization in Delhi NCR. We offers Best Software Development Company in Delhi, Website designing company In Delhi, Application development company in Delhi, MLM development company in Delhi, Website Development Company in Delhi, Mobile App Development Company in Delhi. website designing company in delhi software development company in delhi application development company in delhi

    ReplyDelete
  7. casino, poker room, blackjack, bingo
    casino, wooricasinos.info poker room, https://vannienailor4166blog.blogspot.com/ blackjack, bingo room, blackjack, bingo room, poker room, herzamanindir.com/ poker room, poker room, https://jancasino.com/review/merit-casino/ poker room, poker 1xbet app room, poker room,

    ReplyDelete
  8. In the past, it was very easy to maintain the disk utility for a long time, and this was because the update of applications came after a very long time. Writing Valley

    ReplyDelete
  9. There are stereotypes associated with almost every class or college major. The most widespread misconception about accounting is that it is really difficult. Is accounting, however, difficult? It all depends on whether you learn the necessary abilities and put them to use in a field that matches your interests and personality. It is quite beneficial to get accounting assignment help from an accounting assignment helper because it allows you to delegate your job to a highly qualified specialist, who will undoubtedly present an article worthy of a perfect grade.

    ReplyDelete