亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb

首頁 > 學院 > 操作系統 > 正文

aix rootvg鏡像

2024-06-28 13:26:03
字體:
來源:轉載
供稿:網友
aix rootvg鏡像

  就一般生產系統而已,操作系統層面都要進行備份,而最常見的操作系統備份方式之一就是做鏡像(mirror),而實踐過程中,往往是把rootvg這個卷組做鏡像操作。查看rootvg是否已經進行鏡像方法:

1) lsvg –o

2)lsvg –l rootvg

# lsvg -l rootvg rootvg: LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT hd5 boot 1 2 2 closed/syncd N/A hd6 paging 16 32 2 open/syncd N/A hd8 jfs2log 1 2 2 open/syncd N/A hd4 jfs2 12 24 2 open/syncd / hd2 jfs2 10 20 2 open/syncd /usr hd9var jfs2 6 12 2 open/syncd /var hd3 jfs2 6 12 2 open/syncd /tmp hd1 jfs2 400 800 2 open/syncd /home hd10opt jfs2 1 2 2 open/syncd /opt hd11admin jfs2 1 2 2 open/syncd /admin fwdump jfs2 2 4 2 open/syncd /var/adm/ras/platform lg_dumplv sysdump 3 3 1 open/syncd N/A livedump jfs2 1 2 2 open/syncd /var/adm/ras/livedump

如上圖所示,LPs與PPs的比例是1:2證明rootvg已經做了鏡像,即做了一份rootvg的副本,便于操作系統層面出現問題時,及時還原。如果LPs與PPs的比例是1:1這表名是沒有做rootvg鏡像的。而且PVs都是2,證明是兩塊物理磁盤做的鏡像操作。

1 查看rootvg大小

# lsvg rootvg VOLUME GROUP: rootvg VG IDENTIFIER: 00f9150300004c0000000145634ba48d VG STATE: active PP SIZE: 1024 megabyte(s) VG PERMISSION: read/write TOTAL PPs: 1116 (1142784 megabytes) MAX LVs: 256 FREE PPs: 199 (203776 megabytes) LVs: 13 USED PPs: 917 (939008 megabytes) OPEN LVs: 12 QUORUM: 1 (Disabled) TOTAL PVs: 2 VG DESCRipTORS: 3 STALE PVs: 0 STALE PPs: 0 ACTIVE PVs: 2 AUTO ON: yes MAX PPs per VG: 32512 MAX PPs per PV: 1016 MAX PVs: 32 LTG size (Dynamic): 1024 kilobyte(s) AUTO SYNC: no HOT SPARE: no BB POLICY: relocatable PV RESTRICTION: none INFINITE RETRY: no

rootvg大小為1142784MB,但實際可用空間只是這個數據的一般,即:571392MB,因為你做了一份鏡像操作。

2 查看rootvg有哪幾個磁盤組成

# lspv hdisk0 00f91503634b9132 rootvg active hdisk1 00f91503639b9dbf rootvg active hdisk2 00f91503747466fd datavg active hdisk3 00f915037474679d datavg active hdisk4 00f91503ac90ba5d datavg active hdisk5 00f91503bbd0aea1 datavg active hdisk6 none None

可見,rootvg是由hisk0和hdisk1兩個磁盤組成。

3 給rootvg做鏡像

  使用命令為mirrorvg。mirrorvg命令將給已存在某個卷組上的邏輯卷最鏡像操作。與此相同功能的命令為mklvcopy。

語法:

Purpose

Mirrors all the logical volumes that exist on a given volume group.

Syntax

mirrorvg [ -S | -s ] [ -Q ] [ -c copies] [ -m ] [ -p copyn=mirrorpool ] volumegroup [ physicalvolume ... ]

-c copies Specifies the minimum number of copies that each logical volume must have after the mirrorvg command has finished executing. It may be possible, through the independent use of mklvcopy, that some logical volumes may have more than the minimum number specified after the mirrorvg command has executed. Minimum value is 2 and 3 is the maximum value. A value of 1 is ignored.

-m exact map Allows mirroring of logical volumes in the exact physical partition order that the original copy is ordered. This option requires you to specify a PhysicalVolume(s) where the exact map copy should be placed. If the space is insufficient for an exact mapping, then the command will fail. You should add new drives or pick a different set of drives that will satisfy an exact logical volume mapping of the entire volume group. The designated disks must be equal to or exceed the size of the drives which are to be exactly mirrored, regardless of if the entire disk is used. Also, if any logical volume to be mirrored is already mirrored, this command will fail.

-S Background Sync Returns the mirrorvg command immediately and starts a background syncvg of the volume group. With this option, it is not obvious when the mirrors have completely finished their synchronization. However, as portions of the mirrors become synchronized, they are immediately used by the Operating system in mirror usage.

-s Disable Sync Returns the mirrorvg command immediately without performing any type of mirror synchronization. If this option is used, the mirror may exist for a logical volume but is not used by the operating system until it has been synchronized with the syncvg command.

假如我們將rootvg的鏡像到hdisk1磁盤上,命令如下:

mirrorvg –S -c 2 rootvg hsisk0 hdisk1

操作完成后,還要執行以下兩個命令:

(1) bosboot The bosboot command is required to customize the bootrec of the newly mirrored drive.

The bosboot command creates a boot file (boot image) from a RAM (Random access Memory) disk file system and a kernel. This boot image is transferred to a particular media that the ROS boot code recognizes. When the machine is powered on or rebooted, the ROS boot code loads the boot image from the media into memory. ROS then transfers control to the loaded images kernel.

(2) bootlist The bootlist command needs to be performed to instruct the system which disk and order you PRefer the mirrored boot process to start.

操作如下:

(1)執行bosboot命令

bosboot -ad /dev/hdisk0 bosboot -ad /dev/hdisk1

(2) 執行bootlist命令: 設置系統的引導順序

bootlist -m normal hdisk0 hdisk1 cd0

(3) 查看引導熟悉結果

bootlist -o -m normal

4 替換在鏡像卷組里的壞盤

當我們發現,在鏡像卷組中的一塊盤有問題時,需要使用一塊新磁盤來頂替這塊有問題的磁盤。操作方法如下:

(1) 取消hdisk7盤上的鏡像

unmirrorvg workvg hdisk7

(2) 從卷組中刪除hdisk7磁盤 reducevg workvg hdisk7

(3) 系統層面刪除hdisk7 rmdev -l hdisk7 –d

(4) 識別新盤

cfgmgr –v

(5) 重命名磁盤

需要將新識別的磁盤為hdisk7,關于hdiskX的名字是存在操作系統底層的ODM數據庫里的,ODM數據庫包含了所有PV、VG和LV的配置信息,這些信息與VGDA中的信息互為鏡象,ODM數據也和LV控制塊中的信息相互鏡象。因此需要將原先的hdisk盤從系統層面刪除,然后再去重新掃盤,讓系統識別出新掃描到的磁盤名稱與之前的名稱是一致的。

查看物理磁盤命令:lspv

給磁盤一個ID編號:chdev –l hdisk7 –a pv=yes

(6) 將磁盤添加到卷組中

extendvg workvg hdisk7

(7) 查看workvg鏡像情況 mirrorvg workvg

5 取消卷組鏡像

命令:unmirrorvg

Purpose

Removes the mirrors that exist on volume groups or specified disks. This command only applies to AIX 4.2.1 or later.

Syntax

unmirrorvg [ -c Copies ] VolumeGroup [ PhysicalVolume .. . ]

例如:取消workvg卷組鏡像,留有一份副本

命令:unmirrorvg -c 1 workvg

6 備注

  When unmirrorvg workvg hdisk7 is run, hdisk7 will be the remaining drive in the volume group. This drive is not actually removed from the volume group. You must run the migratepv command to move the data from the disk that is to be removed from the system to disk hdisk7.

migratepv命令:

Purpose

Moves allocated physical partitions from one physical volume to one or more other physical volumes.

Syntax

migratepv [ -i ] [ -l LogicalVolume ] SourcePhysicalVolume DestinationPhysicalVolume...

Description

The migratepv command moves allocated physical partitions and the data they contain from the SourcePhysicalVolume to one or more other physical volumes. To limit the transfer to specific physical volumes, use the names of one or more physical volumes in the DestinationPhysicalVolume parameter; otherwise, all the physical volumes in the volume group are available for the transfer. All physical volumes must be within the same volume group. The specified source physical volume cannot be included in the list of DestinationPhysicalVolume parameters.


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb
午夜精品久久久久久久99热| 欧美专区第一页| 欧美精品福利在线| 欧美电影免费在线观看| 久久久精品2019中文字幕神马| 国产精品视频中文字幕91| 国产色婷婷国产综合在线理论片a| 久久精品视频在线播放| 欧美成在线观看| 欧美午夜视频一区二区| 国产免费观看久久黄| 国产欧美精品xxxx另类| 成人福利网站在线观看11| 日韩中文字幕在线免费观看| 最好看的2019年中文视频| 亚洲成人亚洲激情| 久久久亚洲福利精品午夜| 久久久久久久一区二区| 久久国产精品网站| 人妖精品videosex性欧美| 国产精品三级美女白浆呻吟| 国产精品久久久久久久久久ktv| www.欧美三级电影.com| 国产免费一区二区三区在线能观看| 国产精品高清在线观看| 国产精品免费久久久久久| 国产精品jizz在线观看麻豆| 亚洲精品福利免费在线观看| 97视频在线免费观看| 欧美肥臀大乳一区二区免费视频| 国产一区二区三区在线播放免费观看| 久国内精品在线| 亚洲精品一区av在线播放| 国产视频在线一区二区| 国产v综合ⅴ日韩v欧美大片| 久久精品中文字幕免费mv| 国产99视频精品免视看7| zzijzzij亚洲日本成熟少妇| 成人免费自拍视频| 少妇高潮 亚洲精品| 日韩在线精品视频| 国产视频在线观看一区二区| 国产亚洲精品成人av久久ww| 国产一区二区三区毛片| 欧美精品电影免费在线观看| 欧美日韩亚洲天堂| 国产a∨精品一区二区三区不卡| 日韩成人在线视频网站| 久久影院在线观看| 中国人与牲禽动交精品| 在线丨暗呦小u女国产精品| 欧美xxxx综合视频| 91麻豆国产语对白在线观看| 日韩av免费一区| 欧美激情videos| 亚洲一品av免费观看| 国产精品久久久久久久久借妻| 精品国产拍在线观看| 亚洲精品v天堂中文字幕| 亚洲人线精品午夜| 伊人成人开心激情综合网| 国产精品精品视频一区二区三区| 中文字幕免费精品一区| 国产91ⅴ在线精品免费观看| 成人免费高清完整版在线观看| 国产成人精品在线| 亚洲韩国欧洲国产日产av| 亚洲一区中文字幕在线观看| 国产97色在线| 精品国产一区二区三区久久狼5月| 美女啪啪无遮挡免费久久网站| 国产欧美日韩精品在线观看| 亚洲国产精品久久91精品| 国产精品成人品| 欧美制服第一页| 国产精品第一视频| 国产精品美女主播| 久久伊人色综合| 国产精品扒开腿做爽爽爽的视频| 97精品一区二区视频在线观看| 精品国产一区二区三区四区在线观看| 中文国产亚洲喷潮| 91av成人在线| 日韩激情视频在线| 亚洲欧美制服综合另类| 亚洲a在线观看| 国产精品免费电影| 亚洲视频日韩精品| 欧美激情小视频| 亚洲视频专区在线| 亚洲欧美在线免费观看| 欧美一区二区三区图| 日本国产欧美一区二区三区| 亚洲成人黄色网| 成人美女av在线直播| 久久在精品线影院精品国产| 成人国产在线激情| 精品一区精品二区| 国产精品久久av| 亚洲精品视频免费| 久99九色视频在线观看| 欧美成人网在线| 亚洲3p在线观看| 国产99久久精品一区二区 夜夜躁日日躁| 日韩美女免费线视频| 久久精品国产久精国产思思| 日韩一区二区久久久| 久久综合九色九九| 亚洲黄色av女优在线观看| 日韩电影大全免费观看2023年上| 日韩电视剧免费观看网站| 免费97视频在线精品国自产拍| 国产视频久久久久| 成人亲热视频网站| 精品久久久久久久大神国产| 福利二区91精品bt7086| 国产成人涩涩涩视频在线观看| 亚洲国产精品va在线| 国产成人欧美在线观看| 国产精品网站视频| 成人国产精品色哟哟| 久久久久久久一区二区三区| 欧美激情a在线| 91精品国产综合久久香蕉| 久久久成人av| 另类图片亚洲另类| 欧美在线视频一区| 国产日韩在线一区| 91天堂在线观看| 亚洲欧美日韩在线高清直播| 国产精品黄色av| 成人久久久久久| 国产精品高潮呻吟久久av无限| 97精品伊人久久久大香线蕉| 久久免费观看视频| 中文字幕久热精品视频在线| 伊人久久免费视频| 欧美激情区在线播放| 国产精品www色诱视频| 久久久久久久国产精品| 欧美精品在线播放| 欧美激情小视频| 成人做爽爽免费视频| 亚洲日本中文字幕| 亚洲综合日韩中文字幕v在线| 亚洲性线免费观看视频成熟| 国产精品18久久久久久首页狼| 国产精品27p| 精品国内亚洲在观看18黄| 91亚洲国产成人久久精品网站| 国产精品久久久一区| 日韩在线国产精品| 成人免费网站在线观看| 亚洲第一免费播放区| 欧美又大又硬又粗bbbbb| 色偷偷888欧美精品久久久| 成人福利在线视频| www.xxxx精品| 国内精品一区二区三区四区| 亚洲精品少妇网址| 国产一区二区色| 色综合久久精品亚洲国产| 国产成人综合av| 91免费国产视频|