现在的位置: 首页 >> 操作系统 >> Solaris >> vxvm rootdisk 封装和解除封装
添加时间:2005-8-21 来源:网教中国 作者:
vxvm rootdisk 封装和解除封装

环境: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

[1] [2]  下一页


上一篇:关于SA-119读书笔记-2 下一篇:关于Solaris的syslog机制
大部分文章摘自网上,如有侵犯您的权益请与我们联系,我们会第一时间进行处理,谢谢! [ 打印文章 ] [ 关闭窗口 ]
推荐文章
·Solaris 8 (Intel 平台版本)安装
·Solaris 命令格式
·Solaris8 双网卡配置(路由器用
·实时连接器ld.so.1文件损坏或丢,
·Solaris7 交流 -- 重新配置系统
·Solaris高级系统管理员指南 (4
·Solaris 网络地址和掩码
·Solaris Net Install SUNOS
·Solaris VCS(Veritas Cluster Se
·SUN E3500与D1000升级流程和心得
相关文章
 
最新文章
·SUN Solaris 2.6系统的克隆方法
·Jumpstart安装实例
·我升级Sun Ultra 5 OBP&POST的过
·Sun Solaris 8 for Intel X86安
·如何使用 Solaris的系统帮助
·DiskSuite做raid 0的一些note
·solaris8学习资料 - 第九课
·solaris8学习资料 - 第八课
·solaris8学习资料 - 第七课
·solaris8学习资料 - 第六课
Google