ChinaUnix.net
 >> ChinaUnix.net > IRIX

我的一点心得

作者:zaleo     发表时间:2002/08/17 06:33am

多谢各位朋友的帮助,我已经成功的安装了系统并将8个硬盘做成一个卷,我没有什么可以拿出来的,只能提供一些我做卷成功的一点心得。下面是我整理过的过程:

>hinv
System: IP32
Processor: 200Mhz R5000, with FPU
Primarry I-cache size: 32Kbytes
Primarry D-cache size: 32Kbytes
Secondary cache size: 512Kbytes
Memory size: 256 Mbytes
Graphics: CRM, Rev C
Audio: A3 Version 1
SCSI Disk: scsi(0)disk(1)
SCSI CDROM: scsi(0)cdrom(4)
SCSI Disk: scsi(1)disk(1)
SCSI Disk: scsi(1)disk(2)
SCSI Disk: scsi(1)disk(3)
SCSI Disk: scsi(1)disk(4)
SCSI Disk: scsi(2)disk(5)
SCSI Disk: scsi(2)disk(6)
SCSI Disk: scsi(2)disk(7)
SCSI Disk: scsi(2)disk(8)

su
#fx -x
fx: device-name = (dksc)
fx: ctlr# = (0)1
fx: drive# = (1)
fx: lun# = (0)
......
----- please choose one (? for help, .. to quit this menu)-----
[exi]t [d]ebug/ [l]abel/ [a]uto
[b]adblock/ [exe]rcise/ [r]epartition/ [f]ormat
fx>r
----- please choose one (? for help, .. to quit this menu)-----
[ro]otdrive [o]ptiondrive [e]xpert
[u]srrootdrive [re]size
fx/repartition>o
xfs
You will be asked to create a user log partition, answer:n
To confirm, press:y
..
----- please choose one (? for help, .. to quit this menu)-----
[exi]t [d]ebug/ [l]abel/ [a]uto
[b]adblock/ [exe]rcise/ [r]epartition/ [f]ormat
fx>l
----- please choose one (? for help, .. to quit this menu)-----
[sh]ow/ [sy]nc [se]t/ [c]reate/
fx/label>sy
..
----- please choose one (? for help, .. to quit this menu)-----
[exi]t [d]ebug/ [l]abel/ [a]uto
[b]adblock/ [exe]rcise/ [r]epartition/ [f]ormat
fx>exi
Repeat all the steps for the other disks as per the disk with SCSI-id number 1
#jot /var/tmp/array.config
vol xlv0 (xlv0为卷名可自定义)
data
plex
ve -stripe -stripe_unit 128 /dev/dsk/dks1d1s7 /dev/dsk/dks2d5s7
/dev/dsk/dks1d2s7 /dev/dsk/dks2d6s7 /dev/dsk/dks2d3s7 /dev/dsk/dks2d7s7 /dev/dsk/dks1d4s7 /dev/dsk/dks2d8s7
end
show
exit

save file

#xlv_make /var/tmp/array.config
VOL xlv0 (complete) (node=JEVA)
VE xlv0.data.0.0 [active]
start=0, end=33970175, (stripe)grp_size=4, stripe_unit_size=256
                  /dev/dsk/dks1d1s7 (8492788 blks)
                  /dev/dsk/dks1d2s7 (8492788 blks)
                  /dev/dsk/dks1d3s7 (8492788 blks)
                  /dev/dsk/dks1d4s7 (8492788 blks)
                  /dev/dsk/dks1d5s7 (8492788 blks)
                  /dev/dsk/dks1d6s7 (8492788 blks)
                  /dev/dsk/dks1d7s7 (8492788 blks)
                  /dev/dsk/dks1d8s7 (8492788 blks)
Vol: 1; Standalone Plex: 0; Standalone Ve: 0
NOTES:
  If striped arrays of normal disk drives are used, the stripe_unit value should be  128.
  For arrays that appear as a single SCSI device, for example RAID arrays, please ask the array vendor for more information on striping sizes. For Ciprico 6900 and 6500 arrays a stripe_unit value of 4096 should be used.
  If only using ONE single array, there is no need to create a logical volume. You only need to partition the array.
  The xlv Manager is a system utility that may come in handy. You may start it,
logged in as root, by issuing the command xlv_mgr from the prompt. Subsequently,
the prompt will change in the xlv Manager prompt: xlv_mgr>.

#change nodename JEVA xlv0  (JEVA为节点名,根据xlv_mgr显示而定。命令:show -long all)
#xlv_assemble -a
VOL xlv0 flags=0x1, [complete]   (node=JEVA)
DATA flags=0x0() open_flag=0x0() device=(192, 4)
PLEX 0 flags=0x0
VE 0 [active]
    start=0, end=33970175, (stripe)grp_size=4, stripe_unit_size=256
    /dev/dsk/dks1d1s7 (8492788 blks)
    /dev/dsk/dks1d2s7 (8492788 blks)
    /dev/dsk/dks1d3s7 (8492788 blks)
    /dev/dsk/dks1d4s7 (8492788 blks)
    /dev/dsk/dks1d5s7 (8492788 blks)
    /dev/dsk/dks1d6s7 (8492788 blks)
    /dev/dsk/dks1d7s7 (8492788 blks)
    /dev/dsk/dks1d8s7 (8492788 blks)
xlv_assemble: Checking for Disk Plexing Option ... done
xlv_assemble: Setting kernel configuration ... done

#mkfs_xfs /dev/rdsk/xlv/xlv0
#jot /etc/fstab
/dev/dsk/xlv/xlv0 /MATERIAL xfs rw,raw=/dev/rdsk/xlv/xlv0 0 0 (/MATERIAL是映射文件夹可自定义)
You should see the contents of the file /etc/fstab:
/dev/root / xfs rw,raw=/dev/rroot 0 0
/swap/swap1 swap swap pri=2 0 0
/vswap/vswap1 swap swap pri=5,vlength=524288 0 0
/dev/dsk/xlv/xlv0 /MATERIAL xfs rw,raw=/dev/rdsk/xlv/xlv0 0 0
#mkdir /MATERIAL
#mount -a
#chmod 777 /MATERIAL


此文章相关评论:
该文章有18个相关评论如下:(点这儿可以发表评论)
race 发表于: 2002/08/17 12:15pm
你会成为优秀的系统管理员的
 
cheerland 发表于: 2002/08/20 11:51am
把8个硬盘做成一个卷是为了让它们的空间归一个目录管理是吧?可是这个过程我有不少看不明白的地方,比如说:
----- please choose one (? for help, .. to quit this menu)-----
[sh]ow/ [sy]nc [se]t/ [c]reate/
fx/label>sy
中的sy是什么意思?
还有,如果8个硬盘做成了一个卷,如果别人不小心拆掉了其中一个,在不读写属于已拆硬盘的情况下,其余的七个还能正常使用吗?
 
tomdeng 发表于: 2002/08/20 02:05pm
不行!而且系统会提示不能将该xlv做好的文件系统mount上。因为它类似于采用软件方式的raid 0。
 
race 发表于: 2002/08/20 02:26pm
我没做过多磁盘卷,但可以看出来[sy]nc是同步的意思,就象关闭系统钱执行这个命令,把内存信息写到硬盘上一个道理
 
tomdeng 发表于: 2002/08/27 01:35pm
[sy]nc是同步的意思,没错,但是做这一步是让系统检查以下硬盘的的性能,如大小、最大传输速率,然后与系统的SCSI通道进行匹配。
另外以上的例子是基于比较特殊的情况,就是各个硬盘分区大小是一样的情况,实际上做逻辑卷是将小硬盘(各个硬盘的容量很有可能不一样)做成大的硬盘组(Volume),这种情况不能用-stripe和-stripe_unit参数,否则会报错。
 
zaleo 发表于: 2002/09/06 12:31pm
分卷中的硬盘数是和卷的速度相关的,8个硬盘做的卷就快过4个硬盘做的卷,在做卷时最好选择大小、型号相近的硬盘,这对稳定性很重要。用ve这个命令是要注意硬盘的排列顺序,
我有2个scsi控制器,做的时候两个控制器的硬盘相互交错排列,例如:ve -stripe -stripe_unit 128 /dev/dsk/dks1d1s7 /dev/dsk/dks2d5s7
/dev/dsk/dks1d2s7 /dev/dsk/dks2d6s7 /dev/dsk/dks2d3s7 /dev/dsk/dks2d7s7 /dev/dsk/dks1d4s7 /dev/dsk/dks2d8s7
如果只有一个scsi控制器硬盘顺序就不用这么讲究
 
use 发表于: 2002/09/13 08:26am
我的机器无/var/tmp/array.config该如何另请详解xlv_make xlv_assemble  参数
 
szh 发表于: 2002/09/13 10:39am
那  [sh]ow/   [se]t/   [c]reate/ 分别是什么意思.?
 
sgiman 发表于: 2002/09/29 10:34am
[sh]ow/  显示硬盘信息 [se]t/ 设置分区   [c]reate/  创建附加信息 分别是什么意思.?
 
pjm10 发表于: 2002/12/28 10:09am
逻辑卷管理。具体步骤我记不太清。
应该是先把硬盘全部格式化为数据硬盘
在用逻辑卷管理命令,总共只用四条命令
可用man xlv看看
 
funsgi 发表于: 2002/12/31 08:45am
为什么不试试 xlvm ?
至少对初学者来说GUI工具更直观
 
星号 发表于: 2003/01/09 02:22pm
其实使用GUI工具更方便
 
phoenixli 发表于: 2003/01/10 07:48pm
支持一下~~
 
YT 发表于: 2003/01/12 01:07am
果然好文章~
 
phoenixli 发表于: 2003/01/12 01:15am
你也懂D?~~不是改做SUN的了的说?
 
YT 发表于: 2003/01/12 01:18am
你这就错了,UNIX本来都是通D嘛。。。。
 
phoenixli 发表于: 2003/01/12 01:20am
7~~那就在SGI上装ORACLE试试咯~~
 
YT 发表于: 2003/01/12 01:24am
这个....这个...好说啦~
呵呵,,,
 
 

Copyright © ChinaUnix.net  *  转载请注明出处及作者