===Required packages===
All of them are located in the first software CD :
- SUNWmdr
- SUNWmdu
- SUNWmdx
- SUNWmdix
Remember to reboot with -r argument after install these packages.
===Physical device===
* metadb -a -f -c 3 /dev/dsk/c1t0d0s2
(3 is the number of metadb replicates to use)
===Locial volume===
^ Task ^ Command ^
| Create a 5GB logical volume (called soft partition) | metainit d0 -p c1t0d0s2 5G |
| Create a fs | newfs /dev/md/rdsk/d0 |
| Extend a logical volume | metattach d0 1G |
| Extend a fs | growfs -M /export/home /dev/md/rdsk/d0 |
===Import a metadb from an unknow disk/partition===
Just add a line like :
mddb_bootlist1="sd:71:16:id0"; md_devid_destroy=1;
in __/kernel/drv/md.conf__, read (carefully) [[http://docs.sun.com/app/docs/doc/816-4520/6manpieq6?a=view|Sun's doc]]
===Raid 1===
Ok, since i had a hard disk failure in a production box a monday evening, (a production box for sure)
I now trying to setup (software) raid 1 as far it's possible. Check my [[:docs:solaris:jumpstart:profiles|jumpstart raid 1 profile]].
That's why - after setting up a box with raid 1 - I'm trying to remove a disk (while the OS running), I didn't have errors.
Just remember to do :
metareplace -e d0 c1t0d0s0
for each mirror you have.
===Soft partition with raid 1===
Create a raid 1 mirror, and use its device for soft partitions
__Create the mirror__
metainit d6 1 1 c1t0d0s5
metainit d7 1 1 c1t1d0s5
metainit d8 -m d6
metattach d8 d7
__Create a soft partition__
metainit d10 -p d8 512M