08-07-2013
232,
15
Join Date: Sep 2009
Last Activity: 16 May 2020, 12:46 AM EDT
Posts: 232
Thanks Given: 149
Thanked 15 Times in 14 Posts
smazshah,
- What is the model of your server. and OS version.
$ model ; uname -a
-How you have connected the disk, are they connected in the front bay or are this SAN disks.
In first output it shows CLAIMED, c10t5d0 c10t4d0 that is good, however if the disks are not in CLAIMED state you can not use them for the task.
- After you have presented the disks, make sure you have executed :
# ioscan ; ioscan -fnC disk
# insf -e -C disk
- Then check their condition:
# ioscan -fnH 0/4/1/0.0.0.4.0 ; ioscan -fnH 0/4/1/0.0.0.5.0
# diskinfo /dev/rdsk/c10t5d0 ; diskinfo /dev/rdsk/c10t4d0
- Once above looks good , you can go ahead with RAID-1 mirroring.
This is software mirror, you should have "MirrorDisk/UX " bundle installed with license.
if you have MCOE os , then it ll be bundled with the OS.
To check what type of OE you have you can use # swlist -l bundle | grep -i HPUX11
- If MirrorDisk/UX is ok, you can go ahead and do the mirroring of the disk RAID1.
Few steps outlined for having RAID1 filesystems on the two disk:
1. pvcreate both the disks. # pvcreate -f /dev/rdsk/c10t4d0
2. Create a volume group say vg01 , add the 2nd disk also. with vgcreate , vgextend
3. Create a Filesystem, that you want redundant. (RAID 1 ). with lvcreate and newfs
4. Proceed with mirror: Use lvextend -m 1 <lv_path> <2nd_disk>
5. check with lvdisplay -v <lv_name> , you will see 2 PE. in the LV. That means it is mirrored.
6. If one disk fails, your filesystem & its data, that was created per step 3, will be intact.