Sei sulla pagina 1di 3

ASM CSIDB1 CSIDB2 TERM=vt100 export TERM Hi, One thing to remember is we can not convert any existing

os root file system to hardware raid when the system is up and running. Here I am creating hardware raid mirror in one of T2000 box. My machine details are as follows: 1.# prtdiag -v System Configuration: Sun Microsystems sun4v Sun Fire T200 System clock frequency: 200 MHz Memory size: 8184 Megabytes 2. # df -h Filesystem size used avail capacity Mounted on /dev/dsk/c0t0d0s0 67G 4.3G 62G 7% / /devices 0K 0K 0K 0% /devices ctfs 0K 0K 0K 0% /system/contract proc 0K 0K 0K 0% /proc mnttab 0K 0K 0K 0% /etc/mnttab swap 6.4G 1.3M 6.4G 1% /etc/svc/volatile objfs 0K 0K 0K 0% /system/object sharefs 0K 0K 0K 0% /etc/dfs/sharetab /platform/SUNW,Sun-Fire-T200/lib/libc_psr/libc_psr_hwcap1.so.1 67G 4.3G 62G 7% /platform/sun4v/lib/libc_psr.so.1 /platform/SUNW,Sun-Fire-T200/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1 67G 4.3G 62G 7% /platform/sun4v/lib/sparcv9/libc_psr.so.1 fd 0K 0K 0K 0% /dev/fd swap 6.4G 32K 6.4G 1% /tmp swap 6.4G 40K 6.4G 1% /var/run # format Searching for disks done AVAILABLE DISK SELECTIONS: 0. c0t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424> /pci@780/pci@0/pci@9/scsi@0/sd@0,0 1. c0t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424> /pci@780/pci@0/pci@9/scsi@0/sd@1,0 Specify disk (enter its number): # raidctl -l Controller: 0 Disk: 0.0.0 Disk: 0.1.0 so let us start creating hardware raid in this server. 3. {0} ok setenv auto-boot? false 4. {0} ok reset-all <<This indicates that no volumes have created as of now.

5. ok setenv fcode-debug? true 6. {0} ok probe-scsi-all /pci@780/pci@0/pci@9/scsi@0 MPT Version 1.05, Firmware Version 1.09.00.00 Target 0 Unit 0 Disk HITACHI H101473SCSUN72G SA23 SASAddress 5000cca000140419 PhyNum 0 Target 1 Unit 0 Disk HITACHI H101473SCSUN72G SA23 SASAddress 5000cca00013923d PhyNum 1 143374738 Blocks, 73 GB 143374738 Blocks, 73 GB

7.{0} ok select /pci@780/pci@0/pci@9/scsi@0 8. {0} ok 0 1 create-im-volume Target 0 size is 143243264 Blocks, 73 GB Target 1 size is 143243264 Blocks, 73 GB The volume can be any size from 1 MB to 69943 MB What size do you want? [69943] <<just press enter here Volume size will be 143243264 Blocks, 73 GB PhysDisk 0 has been created for target 0 PhysDisk 1 has been created for target 1 Volume has been created 9. Checking the volume status {0} ok show-volumes Volume 0 Target 0 Type IM (Integrated Mirroring) Degraded Enabled Resync In Progress need to wait until the resync got complete. 2 Members 143243264 Blocks, 73 GB Disk 0 Primary Online Target 4 HITACHI H101473SCSUN72G SA23 Disk 1 Secondary Online Out Of Sync Target 1 HITACHI H101473SCSUN72G SA23 10 . Once the volume is ready then we can install os on it. Key points: 1.If the system failed to boot with the first disk it will automatically second disk into consideration and it will boot from second disk. 2. We can not break the hardware mirror as we use to do in svm or vxm only thing is we need to pull the second disk manually. OS level hardware raid ----------------raidctl -c c0t0d0 c0t1d0 ------------------------pathes --------Install patch

<<We

# cd /soft/eis-dvd/sun/install # sh setup-standard.sh Then log out & back in. # cd /soft/eis-dvd/sun/patch/10 # unpack-patches /tmp # cd /tmp/10 # ./install_all_patches # cd /soft/eis-dvd/sun/patch/SAN/10 # unpack_patches /tmp # cd /tmp/10 #./install_all_patches # reboot -r

Potrebbero piacerti anche