分享
 
 
 

vxvmrootdisk的封装和解除封装

王朝other·作者佚名  2008-05-19
窄屏简体版  字體: |||超大  

环境:ultra1 2块硬盘

已经配置rootdg内包含一个slice c0t0d0s5

系统盘上的slice 5 6 7 各有100m空间 其余空间都给了/ 和swap 试验内容为将根盘封装,然后景象。试验景象盘能够引导系统,最后解除景象和封装。

Rootdisk encapsulate

1.add new disk slice at rootdg

root@sunlab # vxdctl add disk c0t1d0s5 type=simple

vxvm:vxdctl: WARNING: Device c0t1d0s5: Not currently in the configuration

root@sunlab # vxdisk -f init c0t1d0s5 type=simple

root@sunlab # vxdg adddisk c0t1d0s5

root@sunlab # vxdctl enable

vxdisk list

DEVICE TYPE DISK GROUP STATUS

c0t0d0s2 sliced - - error

c0t0d0s5 simple c0t0d0s5 rootdg online

c0t1d0s2 sliced - - error

c0t1d0s5 simple c0t1d0s5 rootdg online

2.remove rootdisk slice at rootdg

root@sunlab # vxdctl rm disk c0t0d0s5

root@sunlab # vxdg -g rootdg rmdisk c0t0d0s5

root@sunlab # vxdisk rm c0t0d0s5

root@sunlab # vxdisk list

DEVICE TYPE DISK GROUP STATUS

c0t0d0s2 sliced - - error

c0t1d0s2 sliced - - error

c0t1d0s5 simple c0t1d0s5 rootdg online

root@sunlab # vxdiskadm

Menu: VolumeManager/Disk

1 Add or initialize one or more disks

2 Encapsulate one or more disks

3 Remove a disk

4 Remove a disk for replacement

5 Replace a failed or removed disk

6 Mirror volumes on a disk

7 Move volumes from a disk

8 Enable access to (import) a disk group

9 Remove access to (deport) a disk group

10 Enable (online) a disk device

11 Disable (offline) a disk device

12 Mark a disk as a spare for a disk group

13 Turn off the spare flag on a disk

14 Unrelocate subdisks back to a disk

15 Exclude a disk from hot-relocation use

16 Make a disk available for hot-relocation use

17 Prevent multipathing/Suppress devices from VxVM's view

18 Allow multipathing/Unsuppress devices from VxVM's view

19 List currently suppressed/non-multipathed devices

20 Change the disk naming scheme

Hit RETURN to continue.

21 Get the newly connected/zoned disks in VxVM view

list List disk information

? Display help about menu

?? Display help about the menuing system

q Exit from menus

Select an operation to perform: 2

Encapsulate one or more disks

root@sunlab # vxdisk list

DEVICE TYPE DISK GROUP STATUS

c0t0d0s2 sliced rootdisk rootdg online

c0t1d0s2 sliced - - error

c0t1d0s5 simple c0t1d0s5 rootdg online

3.remove disk slice from rootdg

root@sunlab # vxdctl rm disk c0t1d0s5

root@sunlab # vxdg -g rootdg rmdisk c0t1d0s5

root@sunlab # vxdisk rm c0t1d0s5

root@sunlab # vxdisk list

DEVICE TYPE DISK GROUP STATUS

c0t0d0s2 sliced rootdisk rootdg online

c0t1d0s2 sliced - - error

4.mirror rootdisk

root@sunlab #vxdisksetup ?i c0t1d0s2

root@sunlab #vxdg ?g rootdg adddisk c0t1d0

root@sunlab # vxdiskadm --select option 6

root@sunlab #vxtask list --wait for the process finish

root@sunlab # vxdisk list

DEVICE TYPE DISK GROUP STATUS

c0t0d0s2 sliced rootdisk rootdg online

c0t1d0s2 sliced c0t1d0 rootdg online

root@sunlab # more /etc/vfstab

#device device mount FS fsck mount mount

#to mount to fsck point type pass at boot options

#

#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes -

fd - /dev/fd fd - no -

/proc - /proc proc - no -

/dev/vx/dsk/swapvol - - swap - no -

/dev/vx/dsk/rootvol /dev/vx/rdsk/rootvol / ufs 1 no -

swap - /tmp tmpfs - yes -

#NOTE: volume rootvol (/) encapsulated partition c0t0d0s0

#NOTE: volume swapvol (swap) encapsulated partition c0t0d0s1

root@sunlab # eeprom -- use-nvramrc devalias

use-nvramrc?=true

nvramrc=devalias vx-c0t1d0 /sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@1,0:a

devalias vx-rootdisk /sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@0,0:a

root@sunlab # prtconf -pv |grep boot --verify the boot disk

boot-retained-page:

bootargs: 00

bootpath: '/sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@0,0:a'

boot-command: 'boot'

auto-boot?: 'false'

watchdog-reboot?: 'false'

boot-file:

boot-device: 'vx-rootdisk'

root@sunlab # init 0

OK boot vx-c0t1d0

root@sunlab # prtconf -pv |grep boot --verify the boot disk

boot-retained-page:

bootargs: 00

bootpath: '/sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@1,0:a'

6.unmirror rootdisk

vxdg -g rootdg -k rmdisk c0t1d0

root@sunlab # vxprint -htg rootdg

DG NAME NCONFIG NLOG MINORS GROUP-ID

DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE

RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL

RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK

V NAME RVG KSTATE STATE LENGTH READPOL PREFPLEX UTYPE

PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE

SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE

SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE

DC NAME PARENTVOL LOGVOL

SP NAME SNAPVOL DCO

dg rootdg default default 0 1075733857.1025.sunlab

dm c0t1d0 - - - - REMOVED

dm rootdisk c0t0d0s2 sliced 3039 4151120 -

v rootdisk5vol - ENABLED ACTIVE 103360 ROUND - gen

pl rootdisk5vol-01 rootdisk5vol ENABLED ACTIVE 103360 CONCAT - RW

sd rootdisk-05 rootdisk5vol-01 rootdisk 3634319 103360 0 c0t0d0 ENA

pl rootdisk5vol-02 rootdisk5vol DISABLED REMOVED 103360 CONCAT - RW

sd c0t1d0-01 rootdisk5vol-02 c0t1d0 0 103360 0 - RMOV

v rootdisk6vol - ENABLED ACTIVE 205200 ROUND - gen

pl rootdisk6vol-01 rootdisk6vol ENABLED ACTIVE 205200 CONCAT - RW

sd rootdisk-04 rootdisk6vol-01 rootdisk 3737679 205200 0 c0t0d0 ENA

pl rootdisk6vol-02 rootdisk6vol DISABLED REMOVED 205200 CONCAT - RW

sd c0t1d0-02 rootdisk6vol-02 c0t1d0 103360 205200 0 - RMOV

v rootdisk7vol - ENABLED ACTIVE 205200 ROUND - gen

pl rootdisk7vol-01 rootdisk7vol ENABLED ACTIVE 205200 CONCAT - RW

sd rootdisk-03 rootdisk7vol-01 rootdisk 3942879 205200 0 c0t0d0 ENA

pl rootdisk7vol-02 rootdisk7vol DISABLED REMOVED 205200 CONCAT - RW

sd c0t1d0-03 rootdisk7vol-02 c0t1d0 308560 205200 0 - RMOV

v rootvol - ENABLED ACTIVE 3336400 ROUND - root

pl rootvol-01 rootvol ENABLED ACTIVE 3336400 CONCAT - RW

sd rootdisk-B0 rootvol-01 rootdisk 4151119 1 0 c0t0d0 ENA

sd rootdisk-02 rootvol-01 rootdisk 0 3336399 1 c0t0d0 ENA

pl rootvol-02 rootvol DISABLED REMOVED 3336400 CONCAT - RW

sd c0t1d0-04 rootvol-02 c0t1d0 513760 3336400 0 - RMOV

v swapvol - ENABLED ACTIVE 297920 ROUND - swap

pl swapvol-01 swapvol ENABLED ACTIVE 297920 CONCAT - RW

sd rootdisk-01 swapvol-01 rootdisk 3336399 297920 0 c0t0d0 ENA

pl swapvol-02 swapvol DISABLED REMOVED 297920 CONCAT - RW

sd c0t1d0-05 swapvol-02 c0t1d0 3850160 297920 0 - RMOV

root@sunlab # vxplex dis rootdisk6vol-02 rootdisk5vol-02 rootdisk7vol-02 rootvol-02 swapvol-02

root@sunlab # vxedit -r rm rootdisk6vol-02 rootdisk5vol-02 rootdisk7vol-02 rootvol-02 swapvol-02

root@sunlab # vxprint -htg rootdg

DG NAME NCONFIG NLOG MINORS GROUP-ID

DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE

RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL

RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK

V NAME RVG KSTATE STATE LENGTH READPOL PREFPLEX UTYPE

PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有