Prev: bad dir ino 22562
Next: network speed on t2000
From: Karnash on 1 Feb 2007 20:09 useradd -u 301 -g other -d /export/home/sapuser -m -s /bin/ksh -c "sftp user for SAP-MNIS files" sapuser Hi I am still learning this and have googled this and also trried a couple of things and have blown the HDD and had to reinstall the OS. So I am posting this request for RAID help. box: Sun 450 SPARC OS: Solaris 9 - installed 9_SunAlert_Patch_Cluster.zip & 9_Recommended.zip HDD: 2 x 18GB 2 x 36GB When I had installed the OS, I installed it on 18GB HDD and created / u01, /u02 & /u03 on 36GB HDD. I have the following: # df -k Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t0d0s0 7228813 3204589 3951936 45% / /proc 0 0 0 0% /proc mnttab 0 0 0 0% /etc/mnttab fd 0 0 0 0% /dev/fd /dev/dsk/c0t0d0s3 3904146 203979 3661126 6% /var swap 6283024 40 6282984 1% /var/run swap 6283104 120 6282984 1% /tmp /dev/dsk/c0t2d0s0 12386458 7963877 4298717 65% /u01 /dev/dsk/c0t2d0s1 12386458 5817380 6445214 48% /u02 /dev/dsk/c0t2d0s3 4127845 756843 3329724 19% /u03 /dev/dsk/c0t2d0s4 6098241 525285 5511974 9% /export/home I want to do a RAID - mirrorning the current 18GB to another 18GB & current 36GB to other 36GB HDD. # cat /etc/vfstab #device device mount FS fsck mount mount #to mount to fsck point type pass at boot options # fd - /dev/fd fd - no - /proc - /proc proc - no - /dev/dsk/c0t0d0s1 - - swap - no - /dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no - /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s3 /var ufs 1 no - /dev/dsk/c0t2d0s4 /dev/rdsk/c0t2d0s4 /export/home ufs 2 yes - #/dev/dsk/c0t0d0s4 /dev/rdsk/c0t0d0s4 /metadb ufs 2 yes - /dev/dsk/c0t2d0s0 /dev/rdsk/c0t2d0s0 /u01 ufs 2 yes - /dev/dsk/c0t2d0s1 /dev/rdsk/c0t2d0s1 /u02 ufs 2 yes - /dev/dsk/c0t2d0s3 /dev/rdsk/c0t2d0s3 /u03 ufs 2 yes - swap - /tmp tmpfs - yes - root(a)mnisdb1:# format AVAILABLE DISK SELECTIONS: 0. c0t0d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248> /pci(a)1f,4000/scsi@3/sd@0,0 1. c0t1d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248> /pci(a)1f,4000/scsi@3/sd@1,0 2. c0t2d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107> /pci(a)1f,4000/scsi@3/sd@2,0 3. c0t3d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107> /pci(a)1f,4000/scsi@3/sd@3,0 Disk 0: - this is the 18GB HDD where the OS is installed Total disk cylinders available: 7506 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wm 4390 - 7505 7.00GB (3116/0/0) 14682592 1 swap wu 0 - 2669 6.00GB (2670/0/0) 12581040 2 backup wm 0 - 7505 16.86GB (7506/0/0) 35368272 3 var wm 2707 - 4389 3.78GB (1683/0/0) 7930296 4 unassigned wm 2672 - 2706 80.53MB (35/0/0) 164920 5 unassigned wm 0 0 (0/0/0) 0 6 unassigned wm 0 0 (0/0/0) 0 7 unassigned wm 0 0 (0/0/0) 0 Disk 1: - this is the 18GB HDD which needs to be mirrored to DISK 0 Total disk cylinders available: 7506 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wm 4390 - 7505 7.00GB (3116/0/0) 14682592 1 swap wu 0 - 2669 6.00GB (2670/0/0) 12581040 2 backup wm 0 - 7505 16.86GB (7506/0/0) 35368272 3 var wm 2707 - 4389 3.78GB (1683/0/0) 7930296 4 unassigned wm 2679 - 2706 64.42MB (28/0/0) 131936 5 unassigned wu 0 0 (0/0/0) 0 6 unassigned wu 0 0 (0/0/0) 0 7 unassigned wu 0 0 (0/0/0) 0 Disk 2: - this is the 3GGB HDD where the /u01, /u02, /u03 & /export/ home are created Total disk cylinders available: 24620 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 unassigned wm 15909 - 24619 12.00GB (8711/0/0) 25166079 1 unassigned wm 7198 - 15908 12.00GB (8711/0/0) 25166079 2 backup wm 0 - 24619 33.92GB (24620/0/0) 71127180 3 unassigned wm 6 - 2908 4.00GB (2903/0/0) 8386767 4 home wm 2909 - 7197 5.91GB (4289/0/0) 12390921 5 unassigned wm 0 0 (0/0/0) 0 6 unassigned wm 0 0 (0/0/0) 0 7 unassigned wm 0 0 (0/0/0) 0 Disk 3: - this is the 3gGB HDD which needs to be mirrored to DISK 2 Total disk cylinders available: 24620 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 unassigned wm 15909 - 24619 12.00GB (8711/0/0) 25166079 1 unassigned wm 7198 - 15908 12.00GB (8711/0/0) 25166079 2 backup wm 0 - 24619 33.92GB (24620/0/0) 71127180 3 home wm 7 - 1458 2.00GB (1452/0/0) 4194828 4 unassigned wm 1459 - 6540 7.00GB (5082/0/0) 14681898 5 unassigned wu 0 0 (0/0/0) 0 6 unassigned wu 0 0 (0/0/0) 0 7 unassigned wu 0 0 (0/0/0) 0 Copy the partition details from one disk to other. # prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -n "" /dev/rdsk/c0t1d0s2 # prtvtoc /dev/rdsk/c0t2d0s2 | fmthard -n "" /dev/rdsk/c0t3d0s2 OK stuck here. I don't know what to do next. Any adivse. Thanks in advance.
From: Malcolm on 1 Feb 2007 23:07 On 1 Feb 2007 17:09:32 -0800 "Karnash" <donkarnash(a)yahoo.com> wrote: > useradd -u 301 -g other -d /export/home/sapuser -m -s /bin/ksh -c > "sftp user for SAP-MNIS files" sapuser > > Hi I am still learning this and have googled this and also trried a > couple of things and have blown the HDD and had to reinstall the OS. > So I am posting this request for RAID help. > box: Sun 450 SPARC > OS: Solaris 9 - installed 9_SunAlert_Patch_Cluster.zip & > 9_Recommended.zip > HDD: 2 x 18GB 2 x 36GB <snip> > OK stuck here. I don't know what to do next. Any adivse. Thanks in > advance. > Hi Read the documentation..... http://docsun.cites.uiuc.edu/sun_docs/C/solaris_9/SUNWaadm/LOGVOLMGRADMIN/toc.html -- Cheers Malcolm °¿° (Linux Counter #276890) SLED 10.0 x86_64 Kernel 2.6.16.27-0.6-smp up 2 days 7:04, 2 users, load average: 0.06, 0.03, 0.00
From: aryzhov on 2 Feb 2007 05:21 While I agree that reading and perfectly understanding the SEVM documentation would be the most reasonable first steb, I still remember hard times using the ODS documentation in practice. O the other hand, there are lots of ODS/SEVM cookbooks on Internet, so I'll just briefly list few important steps here. I have no Solaris machine around to check the syntax and test these comands, so please be careful. read the man pages and double-check the syntax and arguments. remember, you can use the names d1 till d128, no leading zeroes (this may be not a limitation anymore, but I if you see a syntax error in a perfectly correct command, then this may be for a bad d... name) 1. Make sure Solaris VM is installed. Package names should be somethig like SUNWmd*, and you should have commands like metastat, metadb, metainit, metattach available (possibly in /usr/ sbin, can't remember exactly) 2. Create the replicas metadb -f -a -c3 /dev/rdsk/c0t0d0s4 metadb -f -a -c3 /dev/rdsk/c0t1d0s4 This will create 3 replicas on each of 2 submirrors Make sure they have been created: metadb -i 3. Create a metadevice for each primary submirror ot the rootdisk fiesystems metainit d100 1 1 c0t0d0s0 metainit d101 1 1 c0t0d0s1 metainit d103 1 1 c0t0d0s3 and for secondary submirrors: metainit d110 1 1 c0t1d0s0 metainit d111 1 1 c0t1d0s1 metainit d113 1 1 c0t1d0s3 4. Create a one-way mirror for each root disk filesystem: metainit d10 -m d100 metainit d11 -m d101 metainit d13 -m d103 5. preserve the existng /etc/vfstab and /etc/system, and encapsulate the root filesystem cp /etc/vfstab /etc/vfstab.pre-mirror cp /etc/system /etc/system.pre-mirror metaroot d10 6. Edit the new /etc/vfstab so that lines for swap and /var are changed in the same manner as metaroot has changed the / line (i.e. /dev/md/?dsk/d?? instead of /dev/des/c0t?d0s? for raw and/or block devices) 7. Cross the fingers, reboot and make sure that now df -kaF ufs says that your /, and /var are mounted on metadevices rather than on physical slices. 8. Attach secondary submirrors, and wait till they all are synchronized: metattach d10 d110 metattach d11 d111 metattach d13 d113 metastat Wach the "Resyncing" percentage, using "metastat" 9. As soon as all mirrors are in "OK" state, figure out the name of the second 18gb disk in OBP and make sure you can boot from it, rather than from the default boot disk In fact, "metaroot" command may have already prepared a nice handy devalias for you, check it by running "printenv boot-device" from "ok" prompt in OBP. Usually, the second entry is the devalias for a secondary boot submirror. 10. Do similar stages for 36 gb disks: a) create metadevices for each partition b) create one-way mirrors for primary disk c) edit vfstab d) rebot e) metattach secondary submirrors Good luck, Andrei
|
Pages: 1 Prev: bad dir ino 22562 Next: network speed on t2000 |