metaattach d50 d52
d50 : submirror d52 is attached
Please guide me what is the mirror and sub mirror. i knew the RAID 1 concept but i like to know the difference between mirror and the sub mirror and one way mirroring , two way mirroring.
in your example d50 is the mirror, d51 and d52 are the sub mirrors.
d51 and d52 are meta-devices that reference the real slice on the disk. d50 is the meta-device that references both sub-mirrors, d51 and d52. Read/write actions go to d50, SVM then applies the read/write to both sub-mirrors at the same time thus maintaining the RAID1.
d0 - a meta device (logical device), this is the actual mirror we use to store the data.
d10 & d20 - these are the sub-mirrors formed by two different slices.
The writting is done in d0 but physically, d0 writes the data into two sub-mirrors (d10 & d20 ). When we perform any kind of operation with this raid device, we only point d0.
Means, d0 is the actual raid device we refer.