Storage Spaces Direct Series Part 2 & 3 via Altaro Blog

Hi everyone,

I want to inform you about my two new blogpots about Storage Spaces Direct that I wrote for Altaro.

In the second post I write about the technologies in focus of S2D

You can find the post by following the link below.

In the third post you will learn the following things:

  • Where Did S2D Come From?
  • Converged vs. Hyper-Converged Infrastructure
  • How to License Storage Spaces Direct

You can find the post by following the link below.

You can post feedback and questions in the comment sections of the Altaro Blogs. 🙂

Cheers,

Flo

Storage Spaces Direct Series Part 1 – What is S2D?

Hey everyone,

today my first blog about gast blog on Altaros Hyper-V Blog was published. It’s the first blog in my storage spaces direct series and should give you a first introduction into S2D.

Please checkout the blog and leave me some feedback in the comments. 🙂

Storage Spaces Direct Series Part 1 – What is S2D?

 

Mounting .vhd during OS boot via script

Hi Community,

in this blog I will show you how to mount a .VHD file during boot.

1. create a new .txt and type in:

select vdisk file=<filepath to vhd><vhd name>.vhd #example select vdisk file=d:\Brighteyes_Win7_installation.vhd

attach vdisk

2. create a new .bat file

diskpart -s “<filepath to .txt file>” #example “d:\scriptsautomount_data.txt”

3. copy both files on the same harddrive where the your .vhd are located. If you have .vhd files at different positions, copy them in your windows rootdirectory (subfolders are also ok)

4. now you have two options to run the script

Option 1: easiest but worstest way

a. create a link to the batchfile in your autostart folder

Option 2: good middleway

a. click right on the computer icon and select manage

b. Open the computer management and go on Task Scheduler

c. click on create task

d. under general please select:

Name: What ever you think

Discription: Mount VHD file xyz

select -> Run whether user is logged on or not: 

select -> Run with highest priviliges

select -> Configured for Windows 7 and Windows 2008 R2 

e. go on Triggers and klick new

f. select Trigger at startup and klick ok 

g. go on conditions and remove all marks from the checkboxes

h. go on settings and change following options

select -> allow task to be run on demand

select -> Run task as soon as possible after a scheduled task is missed

select -> after the task failed, restart every: 1 minute

select -> Attempt to restart up to: 3 times

select -> stop the task if it runs longer than: 1 houre

select -> ih the running task does not end when requested force it to stop

i. klick ok 

j. restart your OS and check if the HD is mounted

It is also possible to mount VHDs with local or group policy’s. I will explain this in one of my next blogposts.

How to install Windows 7/8 and Windows Server 2008 R2 or Windows Server 2012 in a bootable .VHD file

Hello Community,

In this Blog I want to show you how to install Windows in a bootable VHD. In my example I will use Windows 7.

1. Boot from Windows DVD until you see this Screen

First boot screen where you can select Language, Keyboard and so on.

2. On the next Screen press Shift+ F10 or Repair options to Open a Console

3. On the console type diskpart – now you changed to the application diskpart

4. At first run the command listdisk to see the avail disks

5. If no Disk is listed you need to run the next few task otherwise you can go on with Task 9.

6. Write command select disk 0 to attaché first HD

7. Now type clean to wipe and prepare the drive

8. The last step is to format and attaché the drive. So run following commands:

a. Create part primary

b. Format fs=ntfs label=”Harddrive 0” quick

c. Active

d. Assign letter=c

9. Now you can create the VHD

10. To create the bare VHD type following command: create vdisk file=c:\win7.vhd maximum=50000 type=expandable

You can also use type=fix to allocate the complete space in the HD but this is not needed when you have new faster systems. The OS will not notice when the VHD file expands and you have no performance problems.

11. To prepare the VHD for installation use following commands:

a. select vdisk file=c:\win.vhd

b. attach vdisk

c. create part primary

d. format fs=ntfs label=“Win” quick

e. active

f. assign

12. now type Exit to leave Diskpart

13. Don’t reboot your System!!!

14. Back at x:sources

15. Type the command setup.exe and the windows installation will start

16. Click the User definite installation

17. Select the drive you created

18. And start the installation

19. Finished after the installation and reboot you use the VHD file.