stand-c1

2020-06-23   来源:经典禅语

HP小型机系统常用命令
篇一:stand-c1

HP-UX COMMAND

# ioscan –fnkCdisk

# swinstall –s /cdrom/(filename) <安装软件补丁从cdrom下>

# swremove <卸除应用程序>

# shutdown 0 <进入单用户模式>

# init 3 <进入多用户>

# umount /opt <卸除opt>

<umount /opt 时报错,不能umount opt,可以用ps –ef |grep opt 命令查看opt进程然后用 kill

强行关掉命令,5988 进程名

# swlist –l fileset –a state|grep PHKL_18543 <查找PHKL_18543这个补丁是否安装>

# lvextend –L 30 /dev/vg00/lvol5 <扩大逻辑卷为30兆>

# extendfs /dev/vg00/rlvol5 <r 一定要加这个字母>

# mount /opt

# mount –a <全部设备mount>

# bdf <查看容量是否扩大>

# lvextend –L 200 /dev/vg00/lvol6 <在线将tmp文件系统扩展到800Mb>

# fsadm –b 819200 /tmp

# bdf

# tsm <启动多进程,用ctrl_t切换窗口或按F1、F2来切换>

# make_tape_recovery –Av <备份系统到磁带上、备份到磁带上的系统文件

看不到。用这个命令之前必须安装Ignite-ux这个软

件>

# chmod 777 或 444 <该文件执行属性,777 改为可执行文件同时放开权

限,444 收回权限同时改为不可执行文件>stand-c1。

# mstm <查看机器信息>

# armdsp –i <查看VA信息>

# cvui <设置VA命令>

< /opt/sanmgr/hostagent/sbin (先进入这个目录)

/HA_trigger 先 stop 后 start

/dial_trigger stop start

磁盘柜进程全部 先 stop 后starl,否则找不到VA>

# armmgr –s shut / start 别名 <VA关机和重起>

VA控制器

第一步:

# cd /opt/sanmgr/commandview/server/data

# mv DeviceDBfile DeviceDBfile.old

第二步:

# cd /opt/sanmgr/hostagent/sbin

# ./HA_trigger stop

# ./dial_trigger stop

# ./HA_trigger start

# ./dial_trigger start

# armdiscover

# armdiscover <查找阵列柜>

# amdsp -a fc <查看FC60状态,disk状态要显示Optimal,显示Replaced

要注意>

# amdsp -d fc|grep "Disk State" <查看FC60硬盘状态>

# pa pri 1/0/0/2/0.6.0 <改动启动路径(主)>

# pa alt 1/0/0/2/0.6.0 <改动启动路径(副)>

# lvlnboot –v <查看启动路径>

# setboot –s on/off <设置机器是否自动启动>

# setboot –b on/off

# mediainit /dev/rdsk/cxtydz <对一个磁盘进行格式化和校验其完整性>

# swapinfo <查看机器的一些信息>

# dmesg <查看MEMORY>

# top <查看CPU>

# swlist <查看安装了那些软件>

# vgdisplay –v <查看FreePE(硬盘剩余大小)>

# grep –i error syslog.log <快速查看syslong.log内的错误>

# egrep –i “war|err|fail|scsi|lan” /dev/adm/syslog/syslog.log

# ioscan –kfnCtape <查看磁带机>

# lanscan <查看网卡>

# ioscan –kfnCfc <查看光纤卡>

# ioscan –fnH0/0/1/0 <查看0/0/1/0地址信息>

# netstat –in

# ifconfig lan*

# info_col.11 <收集机器信息,做安装报告用>

# info_col.1026 <收集10.26版本信息>

# dd if=/dev/rdsk/cxtydo of=/dev/rdsk/cxtydo bs=1024k <整盘copy,if后面是旧盘,of后

面是新盘>

# dd if=/dev/dsk/cxtydo of=/dev/dsk/cxtydo bs=1024k

# sar –d <查看硬盘使用频率>

添加磁带机:

第一种方法:

# tsm

# sam

# peripheral devices ? Tape drives <在Actions项选择Add>

第二种方法:

在kernel内修改stape 改成In <在Actions ? Add drives to kernel>

加机械臂驱动(可以在kernel改):

schgr -? in

spt --? in

spt0 -? in

Setup 网卡IP:

# cd /etc/rc.config.d

# vi netconf

shift:1,$ s/old/new/g <把所有Old replace New>

# tar rv 文件名 <copy文件到磁带上>

# tar xv 文件名 <从磁带copy到本机上>

# tar cv <删除磁带上的所有内容>

# tar tv <查看磁带上的内容>

# tar tvf /dev/rmt/1m <指定1m磁带机文件名>stand-c1。

# tar rvf /dev/rmt/1m tmp <copy tmp目录到1m磁带机上>

# mt offl <磁带退出>stand-c1。

# bdf –v <查看逻辑卷的使用情况、空间大小>

# fuser –ck /cdrom <清除cdrom中所有进程,否则光驱不会开门>

# ioscan

# insf –e <生成设备文件名、加载设备驱动文件名> # insf –evCdisk <查看设备是否有变化,恢复设备驱动号>

# vgscan –a <如果/etc/lvmtab的文件不正常、或丢失,可用这个命令

来重新生成lvmtab,但是做之前一定要备份lvmtab>

配置MODEM

# ctrl_b <进入GSP状态、配置MODEM >

# ca <配置MODEM>

# er <激活MODEM>

# GSP >XD

>R <Reset GSP>

# ctrl_b

# GSP>lc <修改LAN console IP>

安装Ignite (B5725AA):Make_recovery 不能备份,可以修改设置:

# vi /opt/ignite/bin/make_medialif 到502行(shift_Enter)修改:

lifinit $ipl_options –v72000000 –d24 为

lifinit $ipl_options –v102000000 –d24

设置或调整VA:

先用Console连接VA进行调整&Setup,或用15针窜口线连接电脑。

# vfpdsp -? <查看参数>

# vfpdsp –f

# vfpdsp –L

# vfprecover <恢复VA数据>

# vfprecover –s

做Mirror的步骤:

pvcreate –f –B /dev/rdsk/c2t2d0

mkboot /dev/rdsk/c2t2d0

mkboot –a “hpux –lq(;0) /stand/vmunix” /dev/rdsk/c1t2d0

mkboot –a “hpux –lq(;0) /stand/vmunix” /dev/rdsk/c2t2d0

vgextend /dev/vg00 /dev/dsk/c2t2d0

lvextend –m 1 /dev/vg00/lvol1 /dev/dsk/c2t2d0

lvextend –m 1 /dev/vg00/lvol2 /dev/dsk/c2t2d0

lvextend –m 1 /dev/vg00/lvol3 /dev/dsk/c2t2d0

lvextend –m 1 /dev/vg00/lvol4 /dev/dsk/c2t2d0

lvextend –m 1 /dev/vg00/lvol5 /dev/dsk/c2t2d0

lvextend –m 1 /dev/vg00/lvol6 /dev/dsk/c2t2d0

lvextend –m 1 /dev/vg00/lvol7 /dev/dsk/c2t2d0

lvextend –m 1 /dev/vg00/lvol8 /dev/dsk/c2t2d0

lvlnboot –r /dev/vg00/lvol3

lvlnboot –s /dev/vg00/lvol2

lvlnboot –d /dev/vg00/lvol2

lvlnboot –b /dev/vg00/lvol1

lvlnboot –R

setboot –a 0/0/2/0.2.0

进入单用户维护模式:

在10秒中断时按任意健,然后键入 bo (enter),然后提示是否进入IPL模式、选择yes,然后键入hpux –is 进入单用户维护模式,然后# vgchange –a y /dev/vg00 进行初始化HP-UX系统。

# lvchange –M n –c n /dev/vg00/lvol2 <给mirror作优化>

# strings /etc/lvmtab <查看Mirror情况>

# lvlnboot –v <查看Mirror是否做成功>

# lvdisplay –v /dev/vg00/lvol1

解除镜像:

lvreduce –m 0 /dev/vg00/lvol1 /dev/dsk/c1t2d0

lvreduce vg00 /dev/dsk/c1t2d0

如果mirror无法作,stringe /etc/lvmtab 有多余的PV,要删除掉。 <慎用此命令,一定要备份

vgdisplay –v vg0x 信息>

# vgreduce /dev/vg0x /dev/dsk/cxtydz

# lvremove /dev/vg01/lvol1 <删除vg01内lvol1卷>

更换有镜像根盘的方法、步骤:

# make_tape_recovery –Av

# shutdown –ry 0

Replace the bad disk

Bo?y?ISL?hpux –ls

# vgchange –a y /dev/vg00

# mv /etc/lvmtab /etc/lvmtab.bak

# pvcreate –f /dev/rdsk/cxtydz

# mv /etc/lvmtab.bak /etc/lvmtab

# mkboot /dev/rdsk/cxytdz

# mkboot –a “hpux –lq(;0) /stand/vmunix” /dev/rdsk/cxtydz

# vgcfgrestore –n /dev/vg00 /dev/rdsk/cxtydz

# vgsync /dev/vg00

# lvlnboot –r /dev/vg00/lvol1

# lvlnboot –s /dev/vg00/lvol2

根盘换盘操作
篇二:stand-c1

stand-c1。

创建了mirror的系统,在根盘或者mirror盘故障需要更换,操作步骤相同。(当然,你也可以试着拔出盘来看看系统会怎么样,这个只能在试验机上动刀了,保不齐会出现啥幺蛾子呢)

非系统镜像盘更换也可参照此文档。 在原槽位上恢复系统镜像(mirror盘故障)

1、查看系统当前从哪个盘引导

#echo "boot_string /S" |adb /stand/vmunix /dev/kmem

2、查看vg00中状态为stale的pe数

#lvdisplay -v /dev/vg00/lvol* |grep stale |wc -l

3、查看原坏盘的硬件路径等信息(假设是c1t1d0坏了)

#lssf /dev/dsk/c1t1d0

4、定位坏盘曹位,插入新盘。这一步很重要,不能出错。这里可以参照机器面板或者盘柜(存储)笼子上的硬件路径编号。

某些机器可以打开硬盘指示灯,以帮助确定坏盘位置。

设备序列号也可以作为参考,但价值不大。

dd命令#dd if=/dev/rdsk/c1t1d0 of=/dev/null bs=8k(只能对好的盘做dd命令,对坏盘做的话,很容易HANG住系统,到时候你动都动不了)

5、删除坏盘的设备文件(ioscan扫出来记住),否则将无法使用ioscan扫描新盘 #rmsf -H hard path 原盘硬件路径

6、#ioscan #查看新盘的磁盘驱动器路径

#ioscan -fnC disk #会发现能扫描到新盘,但是没有设备文件

7、为新盘创建设备文件,也可使用 insf -e -C disk

#insf -eC

8、查看原卷组配置信息

#vgcfgrestore -lv -n /dev/vg00

9、将原卷组信息恢复到新盘上

#vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t1d0

10、激活卷组

#vgchange -a y vg00

11、查看新盘状态是否为可用,需要同步的pe数目

#vgdisplay -v vg00

#lvdisplay -v /dev/vg00/lvol* |grep stale |wc -l

12、同步卷组

#vgsync /dev/vg00

13、查看新盘lif区是否有文件

#lifls -l /dev/rdsk/c1t1d0

14、写启动文件到lif区

#mkboot -b /dev/rdsk/c2t1d0 /dev/rdsk/c1t1d0

15、确认

#lifls -l /dev/rdsk/c1t1d0

16、设置引导方式

#mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t1d0

#mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c2t1d0

17、查看AUTO文件内容,确保以下两条命令输出同为 hpux -lq (;0)/stand/vmunix #lifcp /dev/rdsk/c1t1d0:AUTO -

#lifcp /dev/rdsk/c2t1d0:AUTO -

18、恢复BDRA区链接信息

#lvlnboot -Rv /dev/vg00 查看输出,如果某个卷的连接丢失,请重新建立

19、[可选]设置主、次启动路径

19、[可选]重启验证

------------------------------------------

在新槽位上恢复系统镜像

------------------------------------------

同在原槽位上更换镜像盘的步骤大致相同,区别如下:

第4步时因将新盘插入新槽位

第9步应改为 vgcfgrestore -n vg00 -o 原坏盘的设备文件路径 新盘设备文件路径

在第9步之后加入以下步骤

#mv /etc/lvmtab /etc/lvmtab.old

#vgscan -v

其它步骤保持不变,请注意,同步之前一定要执行vgchange -a y vg00,否则无法更新内存中的vg信息,而导致无法同步

唯美英语句子摘抄大全
篇三:stand-c1

1、 "一份不渝的友谊,执着千万个祝福,给我想念的朋友,温馨的问候。For our ever-lasting friendship, send sincere blessings and warmgreetings to my friends whom I miss so much."

2、 Never quit because something went wrong; Quit because you tried your hardest and nothing made it better.不要因为有了难题就马上放弃;一定要竭尽全力,如果这样还不行,才可以选择放弃。

3、 You can go as far as you want to go.心有多远,你就能走多远。

4、 Acting as if nothing borne in mind is the best revenge.It's all for myself to live better.若无其事,原来是最好的报复。生活得更好,是为了自己。

5、 Faith: not wanting to know what the truth is.信仰就是不想知道真相是什么。

6、 "Byron: I am never away from you. Even now, I shall not leave you. In another land, I shall be still that one who loves you, loves you beyond measure beyond measure.拜伦:我从未离开过你。即使现在,我也不会离开你。在另一个世界,我依旧是爱的那个人。爱你,无穷无尽,天长地久。"

7、 "We shall always save a place for ourselves, only for ourselves. Andthen begin to love. Have no idea of what it is, who he is, how to loveor how long it will be. Just wait for one love. Maybe no one will comeout, but this kind of waiting is the love itself. 在自己面前,应该一直留有一个地方,独自留在那里。然后去爱。不知道是什么,不知道是谁,不知道如何去爱,也不知道可以爱多久。只是等待一次爱情,也许永远都没有人。可是,这种等待,就是爱情本身。"

8、 如果活着,是上帝赋予我最大的使命,那么活者有你,将会是上帝赋予我使命的恩赐……If living on the earth is a mission from the lord… living with you is the award of the lord…

9、 "I love you, love can not my world without you.我爱你,爱到我的世界不能没有你。"

10、 "east,west,home is the best!金窝窝,银窝窝,不如自己的狗窝窝;家是最好的。"

11、 Until all is over one's ambition never dies.不到黄河心不死。

12、 "Happiness is not about being immortal nor having food or rights in one's hand. It’s about having each tiny wish come true, or having something to eat when you are hungry or having someone's love when you need love. 幸福,不是长生不老,不是大鱼大肉,不是权倾朝野。幸福是每一个微小的生活愿望达成。当你想吃的时候有得吃,想被爱的时候有人来爱你。"

13、 Too much knowledge makes the head bald.学问太多催人老。

14、 Because the things you're scared of are usually the most worthwhile. 每天都尝试去一件你害怕的事情,因为,你所害怕的事情,往往是最值得的。

15、 "如果只是遇见,不能停留,不如不遇见。If we can only encounter each other rather than stay with each other,then I wish we had never encountered."

16、 "I can't promise that things will be perfect, But I swear I'll never leave. 我无法承诺一切会有多么完美,但是我答应你我永远不会离开。"

17、 "Fireworks rain lane, whose kite is broken line, who really injured.烟花雨巷,谁的风筝断了线,谁的真心受了伤。"

18、 Can you imagine how much he paid for that car?你能想象他买那车花了多少钱吗?

19、 Everything that happens in life is neither good nor bad. It just depends on your perspective. 生活中的事,不是好事就是坏事。好事还是坏事,都取决于你看事情的角度。

20、 Better to do something imperfectly than to do nothing flawlessly.宁愿做事不完美,总比完美地不做事要好。

21、 "When we lose one we love, our bitterest tears are called for by the memory of hours when we loved not enough.当失去心爱的人时,我们抛洒悲苦的眼泪,那是因为我们想起了过去没有好好地深爱他们。"

22、 The shortest answer is doing.

23、 In love folly is always sweet. 恋爱中,干傻事总是让人感到十分美妙。

24、 How was your weekend? 你周末过得怎么样?

25、 I miss you so much already and I haven’t even left yet!尽管还不曾离开,我已对你朝思暮想!

26、 It involves a lot of hard work. 那需要很多的辛勤工作。

27、 "To be a happy man, reading, travel, hard work, care for the body and mind.做一个幸福的人,读书,旅行,努力工作,关心身体和心情。"

28、 Two wrongs do not make a right.别人错了,不等于你对了。

29、 Thank you for being my friend and being around.感谢你作我的朋友并且在我身旁wwW.SianDiAn.com。

30、 我要幸福的昏倒了!I am too happy to stand faint!

31、 "Take some time, always see something. With some things, always see some people. ——花一些时间,总会看清一些事。用一些事情,总会看清一些人。"

32、 "Take a risk. If the outcome isn’t what you expected, at least you can say you tried. 冒险一试,就算结果不是你所期望的,至少你可以说你已经试过了。"

33、 "God made relatives; Thank God we can choose our friends.神决定了谁是你的亲戚,幸运的是在选择朋友方面他给了你留了余地。"

34、 "Don't waste your time looking back on what you've lost. Move on, for life is not meant to be traveled backwards——别把时间浪费在回首你已经失去的东西上,向前看吧,因为时光本就不会倒流。"

35、 Don’t wait for the perfect moment. Take the moment and make it perfect. 不要去等待完美的时刻,把握好现在,让此刻变完美。

36、 "Never mistake silence for ignorance, calmness for acceptance, or kindness for weakness.永远别把沉默当成无知,把冷静当成接受,把仁慈当成软弱。"

37、 Memories can be painful. To forget may be a blessing. 记忆是痛苦的根源,忘记也是一种福气。

38、 "Accept what was and what is, and you’ll have more positive energy to pursue what will be. 接受过去和现在的模样,才会有能量去追寻自己的未来。"

39、 "No matter how good or bad you think life is, wake up each day and be thankful for life. Someone somewhere else is fighting to survive.无论生活是多么的好或者多么的坏,每天醒来都应感恩生活。在别处还有人为了活着而奋斗呢!"

40、 "If you are passionate about something, pursue it, no matter what anyone else thinks. That's how dreams are achieved。——如果你想要什么,那就勇敢地去追求,不要管别人是怎么想的,因为这就是实现梦想的方式。"

41、 "Hope is a good thing, maybe the best of things, and no good thing ever dies. 希望是美好的,也许是人间至善,而美好的事物永不消逝。"

42、 Life is the art of drawing without an eraser.生活是一门没有橡皮擦的绘画艺术。

43、 Never give up your dreams. Miracles happen everyday. 别放弃梦想,奇迹每天都在上演。

44、 Don't worry about what others doing better than you. Concentrate on beating your own records every day. Success is a battle between YOU and YOURSELF only与其担心别人做得比你好,不如关注自己怎样才能一天天做得更好。成功是一场和自己的比赛。

45、 "Good relationships don't just happen. They take time, patience and two people who truly want to be together—好的恋情不是偶然,它需要时间,耐心,和两个真正想在一起的人。"

46、 "Love life, live the life you love.爱生活,过你爱的生活。"

47、 "You have come this far, don’t give up now.你已至此,不要放弃。"

48、 "Whatever you do,remember that you do it for yourself,then you will not complain. 无论做什么,记得是为自己而做,那就毫无怨言。"

49、 Never live in the past but always learn from it. 不要沉迷于过去,而是要从中吸取教训。

50、 "A genuine smile from within shows on the outside: you smile with your eyes and mouth. When you smile on the inside, people are more receptive when you approach them.——真正的微笑是从内到外散发出来的:你的眼睛和嘴都在笑。而是当你微笑的时候,要发自内心,这样人们才更能接受你。"

51、 "The more you know, the more you know you don't know. ——你知道的越多,你会发现你不知道的也就越多。"

52、 You can have it all. You just can't have it all at once.你可以拥有一切,只是不能一次就全到手。

53、 Use the opportunity of being single to love yourself and focus on making you a better person. 用这段单身的时光好好爱自己,专心让自己变成一个更好的人。

54、 God wouldn't put something hard in your life if he thought you weren't strong enough to get through it. 如果上帝觉得你没有足够坚强去通过的话,他是不会给你的生活安排一些难关的。

55、 "Life is too short to wake up in the morning with regrets. So, love the people who treat you right and forget about the ones who do not. -----生命太短,没留时间给我们每日带着遗憾醒来。所以去爱那些对你好的人,忘掉那些不知珍惜你的人。"

56、 "One day, you'll be just a memory for some people. Do your best to be a good one. 终有一天,你会成为他人记忆的一部分。尽你所能,成为一段好回忆。"

57、 Keep your eyes open and your feet moving forward. You'll find what you need. 保持眼界开阔和脚步向前,你就会找到你需要的一切。

58、 "I've lived, I've loved, I've lost, I've missed, I've hurt, I've trusted, I've made mistakes, but most of all, I've learned.我活过,也爱过。我迷惘过,也失去过。我受过伤,相信过,也犯过错。但最重要的是,我从中懂得了很多。"

59、 "They always say time changes things, but you actually have to change them yourself. 人们常说时间改变一切,但实际上还是得你自己去改变它们。"

60、 Love is not a matter of counting the days. It's making the days count.爱情不是数着日子过去,它让每个日子都变得有意义。

stand-c1

http://m.myl5520.com/mingrenmingyan/110974.html

展开更多 50 %)
分享

热门关注

俄语经典禅语摘录(合集5篇)

经典禅语

佛家精彩的经典禅语汇编5篇

经典禅语

佛家精彩的经典禅语范文四篇

经典禅语

关于常见经典禅语句子【三篇】

经典禅语

佛家禅语

经典禅语

民主生活会给别人提意见

经典禅语

路政存在的问题和不足

经典禅语

工资可以按30天来算吗

经典禅语

下列关于商品存货的说法正确的有有合同且在合同数量内的,按合同价计量

经典禅语

公司禁烟公告

经典禅语