HP系統(tǒng)備份及恢復(fù)方案_第1頁(yè)
HP系統(tǒng)備份及恢復(fù)方案_第2頁(yè)
HP系統(tǒng)備份及恢復(fù)方案_第3頁(yè)
HP系統(tǒng)備份及恢復(fù)方案_第4頁(yè)
HP系統(tǒng)備份及恢復(fù)方案_第5頁(yè)
已閱讀5頁(yè),還剩12頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、hp系統(tǒng)備份及恢復(fù)方案1 檢查系統(tǒng)是否安裝ignite軟件# swlist -l bundle |grep -i igniteignite c.7.4.157 hp-ux installation utilities (ignite-ux)# whereis make_tape_recoverymake_tape_recovery: /opt/ignite/bin/make_tape_recovery /opt/ignite/share/man/man1m.z/make_tape_recovery.1m2 備份2.1 查看make_tape_recovery參數(shù)# /opt/ignite/bi

2、n/make_tape_recovery -helpusage: make_tape_recovery -s iux_server|-l lanic_id -a-b boot_destination_file -i-a tape_device_file-p -r-t tape_title -v -i|-ib -d description -f content_file-d tape_vol_name-x content-options -p s|w|e -m tar|cpio|pax xtoolkit-options -?-s iux_server specifies the server o

3、n which configuration files andarchives reside-a specifies all files on each selected disk or volumegroup that are included-b boot_dest_file specifies the temporary location of the lif volume-i cause the system recovery process to be interactive whenbooting from the tape-a tape_device_file specifies

4、 the tape device file-r resumes creation of the archive-p previews the processing that would take place withoutactually creating the archive-t tape_title specifies a custom message of the archive tape-v specifies verbose output-i causes make_tape_recovery to run interactively-d description specifies

5、 the one line description of the archive-d tape_vol_name specifies 6-character ansi tape volume name. ipf tape only-f content_file specifies the location of the file which identifieskeywords to specify inclusions and exclusions for thearchive-l lanic_id specifies the lanic id of the system being arc

6、hived,used with -s option-m tar|cpio|pax specify in which format the files/directories image inthe archive will be stored-x content_option specifies the included/excluded disk or volume groups-n num_cfg_dir specifies the number of configuration and log file directories to be saved on the system-? di

7、splay this help screen2.2 執(zhí)行系統(tǒng)備份# /opt/ignite/bin/make_tape_recovery -av # /opt/ignite/bin/make_tape_recovery -av -a /dev/rmt/1mn (提定磁帶設(shè)備)2.3 檢查備份是否成功# /opt/ignite/bin/check_tape_recovery#cat /var/opt/ignite/recovery/latest/recovery.log3 恢復(fù)3.1 恢復(fù)磁帶上的所有數(shù)據(jù) 3.1.1 非交互式恢復(fù)系統(tǒng) 1 在磁帶機(jī)中,插入系統(tǒng)恢復(fù)帶 2 boot 系統(tǒng) 3 中斷

8、boot 流程,進(jìn)入 boot_admin 提示下 4 boot_admin bo 8/16.0.0 (8/16.0.0: 磁帶機(jī)的 hardware path )5 選取 non-interactive 6 等待系統(tǒng)恢復(fù)完畢 3.1.2 交互式恢復(fù)系統(tǒng)1 在磁帶機(jī)中,插入系統(tǒng)恢復(fù)帶 2 boot 系統(tǒng) 3 中斷boot 流程,進(jìn)入 boot_admin 提示下 4 boot_admin bo 8/16.0.0 (8/16.0.0: 磁帶機(jī)的 hardware path )5 不選取 non-interactive 6 選取 a. install hp-ux b. advanced insta

9、llation c. 配置或改變?nèi)缦逻x項(xiàng): disks, file systems, hostname, ip ddress, timezone, root password, dns server, and gateway 7 選取 install continue ,直到系統(tǒng)恢復(fù)完畢 3.2 恢復(fù)磁帶上部分文件1 在磁帶機(jī)中,插入系統(tǒng)恢復(fù)帶 #mt -t /dev/rmt/0mn fsf 1#tar -xvf /dev/rmt/0m filename (filename為需要恢復(fù)的文件名)# tar -xvf /dev/rmt/0m etc/hosts (恢復(fù)文件時(shí),如果需要放在原來(lái)的位置

10、,則需要在根目錄執(zhí)行恢復(fù))# tar -xvf /dev/rmt/0m u01/app/oracle/oradata (恢復(fù)oradata目錄下的所有文件)lvreduce -k -m 0 /dev/vg00/lvol6 1lvsync /dev/vg00/lvol3lvreduce m 0 /dev/vg00/lvol3vgscanvgcfgrestore 首頁(yè) | 論壇 | 博客 | linux | 人才 | 培訓(xùn) | 精華 | wiki | 讀書 | 資料 | 手冊(cè) | 下載 | 搜索chinaunix首頁(yè) 精華文章 hp-ux 正文 top of formbottom of form原

11、創(chuàng) hp-ux command 作者:sz_zte 發(fā)表于:2005-12-09 15:54:18【發(fā)表評(píng)論】【查看原文】【hp-ux討論區(qū)】【關(guān)閉】 # ioscan fnkc disk # swinstall s /cdrom/(filename) ; # swremove ; # shutdown 0 ; # init 3 ; # umount /opt ; ; -9 強(qiáng)行關(guān)掉命令,5988 進(jìn)程名 # swlist l fileset a state|grep phkl_18543 ; # lvextend l 30 /dev/vg00/lvol5 ; # extendfs /dev/

12、vg00/rlvol5 ; # mount /opt # mount a ; # bdf ; # lvextend l 200 /dev/vg00/lvol6 ; # fsadm b 819200 /tmp # bdf # tsm ; # make_tape_recovery av ; # chmod 777 或 444 ; # mstm ; # armdsp i ; # cvui ; ; # armmgr s shut / start 別名 ; va控制器 第一步: # cd /opt/sanmgr/commandview/server/data # mv devicedbfile devi

13、cedbfile.old 第二步: # cd /opt/sanmgr/hostagent/sbin # ./ha_trigger stop # ./dial_trigger stop # ./ha_trigger start # ./dial_trigger start # armdiscover # armdiscover ; # amdsp -a fc ; # amdsp -d fc|grep disk state ; # pa pri 1/0/0/2/0.6.0 ; # pa alt 1/0/0/2/0.6.0 ; # lvlnboot v ; # setboot s on/off ;

14、# setboot b on/off # mediainit /dev/rdsk/cxtydz ; # swapinfo ; # dmesg ; # top ; # swlist ; # vgdisplay v ; # grep i error syslog.log ; # egrep i “war|err|fail|scsi|lan” /dev/adm/syslog/syslog.log # ioscan kfnctape ; # lanscan ; # ioscan kfncfc ; # ioscan fnh0/0/1/0 ; # netstat in # ifconfig lan* #

15、info_col.11 ; # info_col.1026 ; # dd if=/dev/rdsk/cxtydo of=/dev/rdsk/cxtydo bs=1024k ; # dd if=/dev/dsk/cxtydo of=/dev/dsk/cxtydo bs=1024k # sar d ; 添加磁帶機(jī): 第一種方法: # tsm # sam # peripheral devices tape drives ; 第二種方法: 在kernel內(nèi)修改stape 改成in ; 加機(jī)械臂驅(qū)動(dòng)(可以在kernel改): schgr - in spt - in spt0 - in setup 網(wǎng)卡i

16、p: # cd /etc/rc.config.d # vi netconf shift:1,$ s/old/new/g ; # tar rv 文件名 ; # tar xv 文件名 ; # tar cv ; # tar tv ; # tar tvf /dev/rmt/1m ; # tar rvf /dev/rmt/1m tmp ; # mt offl ; # bdf v ; # fuser ck /cdrom ; # ioscan # insf e ; # insf evcdisk ; # vgscan a ; 配置modem # ctrl_b ; # ca ; # er ; # gsp ;xd

17、 ;r ; # ctrl_b # gsp;lc ; 安裝ignite (b5725aa):make_recovery 不能備份,可以修改設(shè)置: # vi /opt/ignite/bin/make_medialif 到502行(shift_enter)修改: lifinit $ipl_options v72000000 d24 為 lifinit $ipl_options v102000000 d24 設(shè)置或調(diào)整va: 先用console連接va進(jìn)行調(diào)整&setup,或用15針竄口線連接電腦。 # vfpdsp -? ; # vfpdsp f # vfpdsp l # vfprecover ;

18、# 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 /d

19、ev/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/

20、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 進(jìn)入單用戶維護(hù)模式: 在10秒中斷時(shí)按任意健,然后鍵入 bo (enter),然后提示是否進(jìn)入ipl模式、選擇yes,然后鍵入hpux is 進(jìn)入單用戶維護(hù)模式,然后# vgchange a y /dev/vg00 進(jìn)行初始化hp-ux系統(tǒng)。 # lvchange m n c n /dev/vg00/lvol2 ; # strings /etc/l

21、vmtab ; # lvlnboot v ; # lvdisplay v /dev/vg00/lvol1 解除鏡像: lvreduce m 0 /dev/vg00/lvol1 /dev/dsk/c1t2d0 lvreduce vg00 /dev/dsk/c1t2d0 如果mirror無(wú)法作,stringe /etc/lvmtab 有多余的pv,要?jiǎng)h除掉。 ; # vgreduce /dev/vg0x /dev/dsk/cxtydz # lvremove /dev/vg01/lvol1 ; 更換有鏡像根盤的方法、步驟: # make_tape_recovery av # shutdown ry

22、0 replace the bad disk boyislhpux 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/vg

23、00 # lvlnboot r /dev/vg00/lvol1 # lvlnboot s /dev/vg00/lvol2 # lvlnboot v # shutdown ry 0 更換有鏡像硬盤的方法、步驟: # lvreduce k m 0 # lvremove # vgreduce f vg00 # vgcfgbackup /dev/vgxx ; 如果vg0x丟失用: # vgcfgrestore n /dev/vg0x /dev/rdsk/cxtydz # vgchange a y /dev/vg0x auto raid (磁盤陣列) #arraydsp i ; #arraydsp a

24、; fc60的盤不能夠隨意互換,可以用一下命令試一下: # amutil d 2:1 fc ; # amutil d 4:0 fc # amutil syswipe fc ; fc60的燈提示不正常的情況下用這些命令試一下。 # amdsp i # ammgr d 別名 主機(jī)名 ; # ammgr c aa 主機(jī)名 ; 配置雙機(jī)的時(shí)候必須做的步驟: scsi init 0/10/0/0 6 scsi rate 0/10/0/0 ultra # vi .rhosts ; hostname1 root hostname2 root 改host名字 先修改:# vi /etc/hosts 內(nèi)的hos

25、t名字 hostname localhost loopback 后修改:# set_parms hostname # sh phco_15220 ; ftp;mget ; ftp;put ; qx modem initialize strings at at&f at&d3&r0&s1%c0 ats0=1s23=58 at&w0&y0 設(shè)置終端類型(在安裝的時(shí)候當(dāng)console顯示亂碼時(shí)) ctrl_scrlk look ; 在安裝系統(tǒng)的時(shí)候要修改的一些東西,否則會(huì)報(bào)錯(cuò) # vi /etc/hosts 內(nèi)的host名字后面空格加一個(gè) . (點(diǎn)) # vi

26、 .profile 內(nèi)設(shè)置term=hp # vi .profile 在倒數(shù)第二行加入 export ps1=hostname:$pwd # 安裝11.11i 系統(tǒng)時(shí)候一定要copy /usr/newconfig/etc/inittab 文件到/etc/ 下,否則系統(tǒng)會(huì)出錯(cuò)。 #cd /usr #cd /newconfig #cd /etc #cp inittab /etc/ 從磁帶(make_recovery)恢復(fù) /opt # mt t /dev/rmt/0mn fsf 1 # tar xvf /dev/rmt/0m opt 創(chuàng)建lvg01: ; # lvcreate l 200 n lv

27、g01 /dev/vg01 # newfs /dev/vg01/rlvg01 ; # mkdir /app1 # mount /dev/vg01/lvg01 /app1 # vi /etc/fctab ; # vi /etc/mnttab ; # vgexport vg0x ; # vgexport s p m vg0x.map /dev/vg0x ; # vgimport s m # strings /etc/lvmtab # vgreduce /dev/vg00 /dev/dsk/cxtydz # chmod 777 tmp 擴(kuò)展卷組(vg) ; # pvcreate /dev/rdsk/

28、cxtydz # vgextend vg0x /dev/dsk/cxtydz # vgdisplay v vg0x ; 假如有兩個(gè)ds2300盤柜做鏡像:首先把上面一個(gè)ds2300做成pvg0 下面ds2300做成pvg1,然后pvg0與pvg1做鏡像,具體步驟: # pvcreate f /dev/rdsk/cxdytz ; # vgcreate g pvg0 /dev/vg01 /dev/dsk/c1t1d0 /dev/dsk/c1t2d0 /dev/dsk/c1t3d0. ; # vgextend g pvg1 /dev/vg01 /dev/dsk/c2t1d0 /dev/dsk/c2t

29、2d0 /dev/dsk/c2t3d0. ; # lvcreate s g m 1 l 512 n lvroot /dev/vg01 ; # strings /etc/lvmpvg # strings /etc/lvmtab 軟件故障診斷 1. # ioscan -fn 列出各i/o卡及設(shè)備的所有相關(guān)信息:如邏輯單元號(hào),硬件地址及設(shè)備文件名等。 2. # ps -ef 列出正在運(yùn)行的所有進(jìn)程的各種信息:如進(jìn)程號(hào)及進(jìn)程名等。 3. # netstat -rn 列出網(wǎng)卡狀態(tài)及路由信息等。 4. # lanscan 列出網(wǎng)卡狀態(tài)及網(wǎng)絡(luò)配置信息。 5. # bdf 列出已加載的邏輯卷及其大小信息。 6

30、. # mount 列出已加載的邏輯卷及其加載位置。 7. # uname -a 列出系統(tǒng)id 號(hào),os版本及用戶權(quán)限等信息。 8. # hostname 列出系統(tǒng)網(wǎng)絡(luò)名稱。 9. # pvdisplay -v /dev/dsk/ct*d* 顯示磁盤各種信息,如磁盤大小,包含的邏輯卷,設(shè)備名稱等。 c:controller,和磁盤聯(lián)接的控制器有關(guān)。 t:target,每個(gè)磁盤有一個(gè)唯一的target數(shù)字,只有磁盤設(shè)備本身才可以修 改。 d:device unit number,對(duì)于非共享控制器而言,該值將為0,對(duì)于共享控制器而言,該值將為磁盤設(shè)備單元的內(nèi)部號(hào)。 10. # vgdisplay

31、-v /dev/vg00 顯示邏輯卷組信息,如包含哪些物理盤及邏輯卷等。 11. # lvdisplay -v /dev/vg00/lvol1 顯示邏輯卷各種信息,如包含哪些盤,是否有鏡像等。 三、網(wǎng)絡(luò)故障 1. 如需修改網(wǎng)絡(luò)地址、主機(jī)名等,一定要用 set_parms 命令 # set_parms hostname # set_parms ip_address 2. 查看網(wǎng)卡狀態(tài): lanscan hardware station crd hardware net-interface path address in# state nameunit state 8/20/5/1 0x08000

32、97843fb 0 up lan0 up 3. 確認(rèn)網(wǎng)絡(luò)地址: # ifconfig lan0 4. 啟動(dòng)網(wǎng)卡: # ifconfig lan0 up 5. 網(wǎng)絡(luò)不通的診斷過(guò)程: lanscan 查看網(wǎng)卡是否啟動(dòng) (up) ping 自己網(wǎng)卡地址 (ip 地址) ping其它機(jī)器地址,如不通,在其機(jī)器上用lanscan 命令得知 station address,然后linkloop station_address 來(lái)確認(rèn)網(wǎng)線及集成器是否有問(wèn) 題。 在同一網(wǎng)中, subnetmask 應(yīng)一致。 6. 配置網(wǎng)關(guān) 手動(dòng)加網(wǎng)關(guān): /usr/sbin/route add default 20.08.28

33、.98 1 把網(wǎng)關(guān)自動(dòng)加入系統(tǒng)中 vi /etc/rc.config.d / netconf : route_destination 0=default route_gateway 0=20.08.28.98 route_count 0=1 : /sbin/init.d/net 將執(zhí)行: /usr/sbin/route add default 20.08.28.98 1 命令 netstat -rn 查看路由表 另外也可用 set_parms addl_netwrk 來(lái)設(shè)缺省路由。 hp-ux的硬盤資源的邏輯卷管理 hpux管理硬盤存儲(chǔ)資源是采用邏輯卷方式來(lái)進(jìn)行管理的,要說(shuō)清整個(gè)機(jī)制,先要介紹

34、幾個(gè) 概念: 物理卷physical volume,稱為pv:指物理上硬盤,一個(gè)硬盤就是一個(gè)pv 邏輯卷組 logical volume group,稱為vg:一個(gè)vg包含整數(shù)個(gè)pv,可理解為一個(gè)大硬盤。 邏輯卷 logical volume,稱為lv:相當(dāng)于對(duì)大硬盤進(jìn)行邏輯分區(qū), 一個(gè)vg里可有若干個(gè)lv。 文件系統(tǒng) file system:在邏輯卷的基礎(chǔ)上,可建立文件系統(tǒng),然后 mount到一個(gè)目錄下,這樣就可以文件存取的方式來(lái)使用這塊硬盤了。 當(dāng)然,您也可以不建文件系統(tǒng),而直接把lv當(dāng)作裸設(shè)備,以trunk方式來(lái)存取數(shù)據(jù),許多數(shù)據(jù)庫(kù)都是用這種方式存取數(shù)據(jù)。 根據(jù)以上介紹,在hpux下正確

35、使用硬盤的順序及相應(yīng)命令如下: 1. 先建物理卷: # pvcreate -f /dev/rdsk/ccddtt 這里必須使用硬盤的字符設(shè)備文件 2. 再建邏輯卷組: # mkdir /dev/vg0x x:0f,邏輯卷組名 # mknod /dev/vg0x/group c 64 0x0x0000 # vgcreate vg0x /dev/dsk/ccddtt 3. 然后劃分邏輯卷: # lvcreate -l size vg0x size:該邏輯卷大小 4. 在lv上建文件系統(tǒng): # newfs -f file_system_type /dev/vg0x/rlvoly file_syste

36、m_type:文件系統(tǒng)類型,包括hfs和vxfs,注意此時(shí)用該邏輯卷的字符設(shè)備文件。 5. 將此文件系統(tǒng)mount到一個(gè)目錄下: # mkdir /directory # mount /dev/vg0x/lvoly /directory 到此為止,您已經(jīng)可以使用這個(gè)硬盤了。有時(shí)您可能在現(xiàn)有的環(huán)境下,需要添加、刪除邏輯卷,或者是需要擴(kuò)大文件系統(tǒng)。我們可以這樣做: 6. 添加邏輯卷 1) 添加文件系統(tǒng)卷。例如:在vg01上添加一個(gè)200m的文件系統(tǒng)卷,卷名為data,mount到目錄/sample 上。 a、創(chuàng)建邏輯卷,在系統(tǒng)提示符下鍵入命令: # lvcreate -l 200 -n data

37、/dev/vg01 b、在邏輯卷data上創(chuàng)建文件系統(tǒng): # newfs -f hfs /dev/vg01/rdata 注:如果是vxfs文件系統(tǒng),則用 # newfs -f vxfs /dev/vg01/rdata c、創(chuàng)建目錄/sample,并將邏輯卷data mount 到/sample. # mkdir sample” # mount /dev/vg01/data /sample d、用bdf命令,將會(huì)看到/dev/vg01/data mount 到 /sample上。 2) 添加非文件系統(tǒng)卷(raw data volume)。例同上。 a、創(chuàng)建邏輯卷,在系統(tǒng)提示符下鍵入命令: # l

38、vcreate -l 200 -n data /dev/vg01 b、創(chuàng)建目錄/sample,并將邏輯卷data mount 到/sample. # mkdir sample # mount /dev/vg01/data /sample c、用bdf命令,將會(huì)看到/dev/vg01/data mount 到 /sample上。 7. 刪除邏輯卷 例如:刪除 vg01 中名為 data 的邏輯卷,mount 到/sample。 1) 卸載所要?jiǎng)h除的邏輯卷: a、首先用 umount 命令將邏輯卷 data 從/sample上卸載下來(lái): # umount /sample b、若系統(tǒng)提示設(shè)備忙,不能

39、卸載;則在根目錄系統(tǒng)提示符下,鍵入以下命令,進(jìn)入單用戶: # shutdown -y 0 在單用戶下,先將所有邏輯卷mount上,鍵入命令: # mount -a 用bdf命令看該邏輯卷是否已經(jīng)mount上,如果mount上,鍵入以下命令: # umount /sample 2) 刪除邏輯卷 /dev/vg01/data ,用命令: # lvremove /dev/vg01/data 8. 擴(kuò)大文件系統(tǒng) 1) 擴(kuò)大文件系統(tǒng),首先要找到這個(gè)文件系統(tǒng)所對(duì)應(yīng)的邏輯卷,只有首先擴(kuò)大邏輯卷,給文件系統(tǒng)以擴(kuò)大的空間,才能擴(kuò)大文件系統(tǒng)。 2) 為擴(kuò)大邏輯卷,先進(jìn)單用戶,在根目錄系統(tǒng)提示符下,鍵入命令: #

40、shutdown -y 0 3) 進(jìn)入單用戶后,先將所有文件系統(tǒng)mount上,鍵入命令: # mount -a 4) 用bdf命令看該文件系統(tǒng)是否已經(jīng)mount上,如果mount上,用命令 #umount文件系統(tǒng)名umount該文件系統(tǒng)。例如,想要擴(kuò)大“/usr”到500m ,就鍵入命令: # umount /usr 5) 用命令: # lvextend -l 500 /dev/vg00/lvol4 這里,假定 /usr 對(duì)應(yīng) /dev/vg00/lvol4 6) 用命令: # extendfs /dev/vg00/lvol4 擴(kuò)大文件系統(tǒng)。 注:如果是vxfs文件系統(tǒng),則用 # extend

41、fs -f vxfs /dev/vg00/lvol4 7) 用命令: # mount /dev/vg00/lvol4 /usr 將文件系統(tǒng) mount 到 /usr 這樣,文件系統(tǒng)“/usr”就被擴(kuò)大了, 8) 用命令: # init 3 進(jìn)入原來(lái)多用戶運(yùn)行級(jí)。 9. unix 的文件系統(tǒng) 10. unix的文件系統(tǒng)是樹(shù)狀結(jié)構(gòu),一般指在一個(gè)邏輯卷上的文件的集合。從根開(kāi)始,從表面上看,文件系統(tǒng)好象是一個(gè)整體,但實(shí)際上,文件系統(tǒng)可以分成不同的部分,單獨(dú)占據(jù)一塊邏輯卷,就是一個(gè)文件系統(tǒng)。 11. unix的文件系統(tǒng)可以分為四種類型: hfs:high-performance file system

42、vxfs: hp-ux journaled file ssytem ( vxfs is an extent-based journaling file system that offers fast file system recovery and online features such as online backup, online resizing, and online reorganization. it supports all existing file system interfaces except hp access control lists (acl) and b1

43、security features. vxfs cannot be a root or bootable file system in 10.01. ) cdfs: cd-rom file system nfs: network file system 1) 在hpux中,有下列文件系統(tǒng): “ / ” 根文件系統(tǒng) “ /usr ”, “ /sbin ” 操作系統(tǒng)的一部分。 “ /opt ”和application 有關(guān)的文件系統(tǒng)。 “ /etc ” mount 到此目錄下的文件系統(tǒng)包含系統(tǒng)配置文件 “ /var ” mount到此目錄下的文件系統(tǒng)中的文件為系統(tǒng)啟動(dòng),運(yùn)行 等等,產(chǎn)生的報(bào)告文件。

44、 “ /stand ” 包含操作系統(tǒng)核心(kernel)的有關(guān)文件。 “ /tmp ” 包含系統(tǒng)臨時(shí)文件。 “ /dev ” 包含所有的設(shè)備文件,但它不是一個(gè)單獨(dú)的文件系統(tǒng), 它只是在根目錄下的一個(gè)目錄。 hp-ux的一些基本命令和常用文件 1. tail 和 head 使用tail命令可以查看文件的尾部,head命令則查看文件的頭部。 # tail filename # tail -f filename; 使tail不斷執(zhí)行,當(dāng)文件被寫入時(shí)顯示文件的新行。 #head filename 2. date 和 cal cal命令顯示日歷。 # cal 2000 # cal 1 2000 3. find find命令是功能

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論