免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7873 | 回复: 2
打印 上一主题 下一主题

[SCO UNIX] LSM学习笔记之9关于系统镜像 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-05-28 09:56 |只看该作者 |倒序浏览
告别Tru64 UNIX,资料分享。

Add a mirror plex to the volume, specifying disks not used in the first data plex and preferably on different buses:

# volassist [-g disk_group] mirror volume init=active \
layout=nolog disks

The init=active option prevents LSM from synchronizing the plexes. Because the volume is new and contains no data yet, LSM does not need to synchronize the plexes.

The following example creates a mirror plex for the same volume, using disks dsk5, dsk6, and dsk7:

# volassist -g dg1 mirror vol2 init=active \
layout=nolog dsk5 dsk6 dsk7
例:volassist -g rootdg mirror usrvol2 init=active layout=nolog dsk11h



Note
Because two mirrors are used in the volume, 6 GB of free space is needed. Each mirror uses 3 GB of disk space.


  The following are examples of the use of the volmirror command.

   1.  The following command mirrors the contents of the disk named disk01 to
       any available space on any available disk. Subsequent calls to volas-
       sist will cause created volumes to be mirrored by default.
            volmirror -d yes disk01

   2.  The following command displays the current status of default mirror-
       ing. It prints the string yes if mirroring is currently enabled or no,
       if not.
            volmirror -D

   3.  The following command mirrors any volumes on disk02 onto disk03.
            volmirror disk02 disk03

#Make mirror
volassist mirror vol-dsk0e datadg02

普通DISK镜像记录

smf1:/>voldiskadm volmirror

Logical Storage Manager Support Operations
Menu: LogicalStorageManager/Disk

1      Add or initialize a disk
2      Encapsulate a disk
3      Remove a disk
4      Remove a disk for replacement
5      Replace a failed or removed disk
6      Mirror volumes
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
list   List disk information

?      Display help about menu
q      Exit from menus

Select an operation to perform: 6


Mirror volumes on a disk
Menu: LogicalStorageManager/Disk/Mirror

  This operation can be used to mirror volumes on a disk.  These
  volumes can be be mirrored onto another disk or onto any
  available disk space.  Volumes will not be mirrored if they are
  already mirrored.  Also, volumes that are comprised of more than
  one subdisk will not be mirrored.

Enter disk name [<disk>,list,q,?] list
Disk group: rootdg

DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   PUBPATH

dm rz16a        rz16a        nopriv   0        262144   /dev/rrz16a
dm rz16b        rz16b        nopriv   0        8387584  /dev/rrz16b
dm rz16d        rz16d        simple   1024     0        /dev/rrz16d
dm rz16g        rz16g        nopriv   0        8388608  /dev/rrz16g
dm rz17a        rz17a        nopriv   0        262144   /dev/rrz17a
dm rz17b        rz17b        nopriv   0        8387584  /dev/rrz17b
dm rz17d        rz17d        simple   1024     0        /dev/rrz17d
dm rz17g        rz17g        nopriv   0        8388608  /dev/rrz17g

Disk group: localdg

DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   PUBPATH

dm rz16f        rz16f        simple   1024     54091616 /dev/rrz16f
dm rz17f        rz17f        simple   1024     54091616 /dev/rrz17f

Enter disk name [<disk>,list,q,?] rz16f

  You can choose to mirror volumes from disk rz16f onto any
  available disk space, or you can choose to mirror onto a specific
  disk.  To mirror to a specific disk, select the name of that disk.
  To mirror to any available disk space, select "any".

Enter destination disk [<disk>,list,q,?] (default: any) list
Disk group: rootdg

DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   PUBPATH

dm rz16a        rz16a        nopriv   0        262144   /dev/rrz16a
dm rz16b        rz16b        nopriv   0        8387584  /dev/rrz16b
dm rz16d        rz16d        simple   1024     0        /dev/rrz16d
dm rz16g        rz16g        nopriv   0        8388608  /dev/rrz16g
dm rz17a        rz17a        nopriv   0        262144   /dev/rrz17a
dm rz17b        rz17b        nopriv   0        8387584  /dev/rrz17b
dm rz17d        rz17d        simple   1024     0        /dev/rrz17d
dm rz17g        rz17g        nopriv   0        8388608  /dev/rrz17g

Disk group: localdg

DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   PUBPATH

dm rz16f        rz16f        simple   1024     54091616 /dev/rrz16f
dm rz17f        rz17f        simple   1024     54091616 /dev/rrz17f

Enter destination disk [<disk>,list,q,?] (default: any) rz17f

  The requested operation is to mirror all volumes on disk rz16f

Invalid argument index
  in disk group localdg rz17f onto available disk space on disk
  NOTE: This operation can take a long time to complete.

Continue with operation? [y,n,q,?] (default: y)

  
  Mirror volume localvol01 ...

  Mirroring of disk rz16f is complete.


Logical Storage Manager Support Operations
Menu: LogicalStorageManager/Disk

1      Add or initialize a disk
2      Encapsulate a disk
3      Remove a disk
4      Remove a disk for replacement
5      Replace a failed or removed disk
6      Mirror volumes
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
list   List disk information

?      Display help about menu
q      Exit from menus

Select an operation to perform: q

Goodbye.
smf1:/>voldisk list
DEVICE       TYPE      DISK         GROUP        STATUS
rz128        sliced    -            -            offline
rz129        sliced    -            -            offline
rz136        sliced    -            -            offline
rz137        sliced    -            -            offline
rz16a        nopriv    rz16a        rootdg       online
rz16b        nopriv    rz16b        rootdg       online
rz16d        simple    rz16d        rootdg       online
rz16f        simple    rz16f        localdg      online
rz16g        nopriv    rz16g        rootdg       online
rz17a        nopriv    rz17a        rootdg       online
rz17b        nopriv    rz17b        rootdg       online
rz17d        simple    rz17d        rootdg       online
rz17f        simple    rz17f        localdg      online
rz17g        nopriv    rz17g        rootdg       online

Disk group: localdg

DG NAME         GROUP-ID
DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   PUBPATH
V  NAME         USETYPE      KSTATE   STATE    LENGTH   READPOL  PREFPLEX
PL NAME         VOLUME       KSTATE   STATE    LENGTH   LAYOUT   ST-WIDTH MODE
SD NAME         PLEX         PLOFFS   DISKOFFS LENGTH   DISK-NAME    DEVICE

dg localdg      1073724443.1195.smf1

dm rz16f        rz16f        simple   1024     54091616 /dev/rrz16f
dm rz17f        rz17f        simple   1024     54091616 /dev/rrz17f

v  localvol01   fsgen        ENABLED  ACTIVE   54091616 SELECT   -
pl localvol01-01 localvol01   ENABLED  ACTIVE   54091616 CONCAT   -        RW
sd rz16f-01     localvol01-01 0        0        54091616 rz16f        rz16f
pl localvol01-02 localvol01   ENABLED  ACTIVE   54091616 CONCAT   -        RW
sd rz17f-01     localvol01-02 0        0        54091616 rz17f        rz17f

9关于系统镜像.zip

2.82 KB, 下载次数: 139

论坛徽章:
0
2 [报告]
发表于 2010-07-19 17:18 |只看该作者
貌似大拿,你一个人玩吧

论坛徽章:
0
3 [报告]
发表于 2011-10-05 16:06 |只看该作者
把这九个都下载了,起因是一个同事碰到一台老compaq,没有试验环境,只能直接发给他了。
其实从技术角度来说,COMPAQ软硬件都做得不错,这么古董的东西在那里稳稳的跑了好多年,这次大约是硬盘坏了,想换一块上去都不知道怎么做。

谢谢楼主的共享。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP