Thursday, March 26, 2015

Storage Spaces Feature – What you should know about it and how to configure a Redundant Storage Space.

What is Storage Spaces?
Storage Spaces is a storage virtualization capability that is built into Windows Server 2012 and Windows 8.
It is a feature that is available for both NTFS and ReFS volumes,providing redundancy and pooled storage for numerous internal and external drives of differing sizes and interfaces.
You can use Storage Spaces to add physical disks of any type and size to a storage pool, and then create highly available virtual disks from the storage pool.
The primary advantage of Storage Spaces is that you do not manage single disks, but can manage multiple disks as one unit.
To create a virtual disk, you need the following:
1 – One @ more physical disks
2 – Storage Pool that includes the disks
3 – Virtual Drives that are created with disk from the storage pool
4 – Disk drives that are based on virtual drives
That just a bit of explanation.. but now, let see how it work and how actually you can configure a Redundant Storage Space.
For this Demo, I’m using my DHCPSVR.cpx.local server (this server is member server to cpx.local domain) that I use to deploy DHCP Server in my previous post.
So lets get started.. be patient.. this going to be a long step by step..
1 - Verify your server to be use for Storage Pool.
1
2 – Open Server Manager, Click File and Storage Services, Click Disk, you can see in my server image I have 7 SCSI Disk with 32GB capacity each. I will use 5 SCSI Disk create Storage Pool.
2
3 – Next, lets create the Storage Pool by click Tasks and click New Storage Pool
3
4 – After you click New Storage Pool… Before you begin wizard will popup, click Next to proceed..
4
5  – On the Specify a storage pool name and subsystem box, Enter the name of your new Storage Pool.. for this demo I use CPX-StoragePool1, and click Next to proceed..
5
6 – on the Select physical disks for the storage pool box, choose PhysicalDisk3 – PhysicalDisk7 (5 disks total), and click Next to proceed..
6
7 – On the Confirm selections page, click Create to proceed with the process.. here you can see Total of the storage pool is 160GB (32GB x 5)..
8
8 – On the View results box, wait until the task completes, then click Close.. process will take few second..
9
9 – Here you will see your newly Storage Pool successfully created and consist of 5 disks..
10
9 – Once the CPX-StoragePool1 successfully created, now its time for me to Create a three-way mirrored virtual disk (stores 3 copies of your data, if 2 simultaneous disk failures, you have another 1 running)
— in the Storage Spaces pane, click CPX-StoragePool1, In the VIRTUAL DISKS pane, click TASKS, and then from the TASKS drop-down menu, click New Virtual Disk.
11
10 – click Next on the Before you begin box to proceed..
12
11 – Next, on the Select the storage pool box, click CPX-StoragePool1, and then click Next..
13
12 – Next on the Specify the virtual disk name page, in the Name box, type Mirrored Disk, and then click Next to proceed..
14
13 – On the Select the storage layout box, in the Layout list, click Mirror, and then click Next (Please read the Description before you proceed so that you understand why I choose Mirror)..
15
14 – On the Configure the resiliency settings box, click Three-way mirror, and then click Next to proceed..
16
15 – On the Specify the provisioning type box, click b, and then click Next.. (I choose this because my new volume later will uses space from storage pool when needed only)
17
16 – On the Specify the size of the virtual disk box, in the Virtual disk size box, type 10 (GB), and then click Next.
18
17 – On the Confirm selections box, click Create..
19
18 – On the View results page, wait until the task completes. Ensure that the Create a volume when this wizard closes check box is selected, and then click Close.
20
19 – In next wizard, just click Next to proceed..
21
20 – On the Select the server and disk box, in the Disk pane, click the Mirrored Disk virtual disk, and then click Next to proceed..
22
21 – On the Specify the size of the volume box, click Next to confirm the default selection..
23
22 – On the Assign to a drive letter or folder box, in the Drive letter choose any letter you prefer and for this demo I choose H as my drive letter, and then click Next..
24
23 – On the Select file system settings box, in the File system drop-down menu, click ReFS, in the Volume label box, type Mirrored Volume, and then click Next to proceed..
*** ReFS was introduced with Windows Server 2012 to enhance the capabilities of NTFS. ReFS was developed to improve upon NTFS by offering larger maximum sizes for individual files, directories, disk volumes, and other items. Additionally, ReFS offers greater resiliency, meaning better data verification, error correction, and scalability.
25
24 – On the Confirm selections box click Create to proceed..
26
25 – Next just click Close after all status completed..
27
26 – Open your Computer explorer to verify Mirrored Volume (H) is available and can be access..
28
27 – Next, lets copy a write.exe file just to simulate the whole process of this mirrored volume.. open command prompt and type Copy C:\windows\system32\write.exe H:\
29
28 – Verify the file copied into H: Drive..
30
29 – Now, let simulate the whole process by remove 1 my Virtual Drive that attach to this Hyper-V image (in real scenarios, it should be your Physical Drive).. For this demo I will remove my DISK5.. in this simulation just assume that my DISK5 is failure.. On the Settings box, I choose my Disk5 and click Remove and then Apply..
32
33
30 – On the Setting box, just click continue to proceed with the disk removal process..
34
31 – Next, you can verify that the write.exe file is still accessible in the H: drive..
35
32 – Next, back to your STORAGE POOLS menu and click the Refresh.
36
33 – Before you continue, notice the warning that displays next to Mirrored Disk? In the VIRTUAL DISK pane, right-click Mirrored Disk, and then click Properties
37
34 – In the Mirrored Disk Properties dialog box, in the left pane, click Health. Notice that the Health Status indicates a Warning. Just click OK to close..
38
35 – Next, lets add a new disk (in my case is a Virtual Disk) to the storage pool and remove a broken disk..
— In the STORAGE POOLS pane, right-click CPX-StoragePool1, and then click Add Physical Disk..
39
36 – Next, in the Add Physical Disk window, click PhysicalDisk8 (MYDHCPSVR), and then click OK..
40
37 – In the PHYSICAL DISKS pane, right-click the disk that has a warning that displays beside it, and then click Remove Disk..
41
38 – In the Remove Physical Disk box, click Yes to proceed..
42
39 – And lastly, Refresh “Storage Pools” to see the warnings disappear and you have your Mirrored Disk back on track with no down time @ what so ever..
43

No comments:

Post a Comment