Home » diskpart

Tag: diskpart

Autoformat Citrix PVS Write Cache Drive

Problem:

We wanted to Autoformat Citrix PVS Write Cache DriveĀ of the PVS D drive (writecache) for things like Citrix logs, edgesight database. Otherwise the servers boot up first time and complain they cant create or access the pagefile.

Want the D Drive labelled with Server name so if ever they are moved or detached – its easy to identify.

Solution:

Create a batchfile that does the following

diskpart.exe /s \serversharePVS_ddrive_creation.txt
shutdown.exe /r /t 001

Add this batchfile with additional logic to the regrunonce windows registry key or use Appsense EM to call the batchfile when deployed to a new machine.

Contents of PVS_DDrive_Creation (change to suit your needs)

select disk 0
clean
create partition primary
select partition 1
format fs=ntfs Label=%computername%PVS quick
assign letter=d

Done!

PVS vDisk extension results in windows boot manager failure

Situation:

Our C: drive on a test PVS image (Private mode acccess) was nearly full

We extended the vDisk following this process

  1. Open Cmd Prompt
  2. diskpart
  3. Select vDisk file=”Path to your PVS vDisk”
  4. List vDisk
  5. expand vDisk maximum=xxxxx (in Mb) (61440 for 60GB etc)
  6. attach vDisk
  7. list Disk
  8. list volume
  9. Select volume x
  10. extend
  11. List volume
  12. detach vDisk
  13. exit

After detattching and booting the Test PVS Server windows wouldn’t boot with a System volume couldnt be accessed

windows_pvs_boot_error_0xc000000f

Solution:

Repeat steps 3,6 and 12 to reattach the disk and deattach the vdisk cleanly then boot the VM.