鉄's profileautoupdatePhotosBlogListsMore Tools Help

autoupdate

autoupdate

鉄 lee

Occupation
Location
hello,everybody!
No list items have been added yet.
Photo 1 of 13
More albums (1)

巧用SecureCRT

 
提起SecureCRT,也许大家都不陌生。兼有SSH和telnet,ftp,记录会话,端口转发等功能。
一、先说说她的异步命令模式,即聊天功能。
最近有朋友问到,同时管理若干台配置相同的服务器,有没有简便方法呢。答案是肯定的。
具体设置方法如下:
1.进入“全局选项”,终端,勾选“显示交谈窗口”。然后你会看到窗口最下端出现了异步窗口。
2.登录多个窗口,然后右键单击异步窗口(窗口下部),选中“将交谈发送到所有标签”。
3.注意,修改配置前一定要作备份,因为这样的操作是有一定风险性的。
其实还有其它的一些工具也可以达到这样的功效,如Xmanager。
二、用SecureCRT上传和下载文件
1.设定上传下载文件保存路径,即选项里面的Xmodem/Zmodem。
2.确认一下系统中是否有rz,sz这两个命令(不同系统会有少许区别,lrz,lsz等),若没有的话需要安装。
3.使用比较简单。就不敖述了。
 

ASM数据库数据库创建详细步骤文档(一)

一:安装linux系统,关闭防火墙和selinux

Oracle Enterprise Linux 4.5

必须组件安装:

GNOME Desktop Environment

Editors

Graphical Internet

Text-based Internet

Development Libraries

Development Tools

Server Configuration Tools

Administration Tools

Base

System Tools

X Window System

二:配置oracle数据库安装环境

1.         创建用户和用户组(root用户创建)

groupadd -g 1001 dba

id nobody

groupadd -g 1002 oinstall

useradd -u 1002 -g oinstall -G dba oracle

passwd oracle

2.         检查所需软件:(root用户进行)

rpm -qa setarch make glibc libaio compat-libstdc++- compat-gcc-34-  compat-gcc-34-c++- gcc libXp openmotif compat-db

以下为所需软件包

setarch-2.0-1.1.i386.rpm

make-3.81-1.1.i386.rpm

glibc-2.5-12.i686.rpm

libaio-0.3.106-3.2.i386.rpm

compat-libstdc++-33-3.2.3-61.i386.rpm

compat-gcc-34-3.4.6-4.i386.rpm

compat-gcc-34-c++-3.4.6-4.i386.rpm

gcc-4.1.1-52.el5.i386.rpm

libXp-1.0.0-8.i386.rpm

openmotif-2.3.0-0.3.el5.i386.rpm

compat-db-4.2.52-5.1.i386.rpm

 

3.         配置内核参数(以root用户)

# vi /etc/sysctl.conf

kernel.shmall = 268435456

kernel.shmmax = 4294967295

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

fs.file-max = 65536

net.ipv4.ip_local_port_range = 1024 65000

net.core.rmem_default = 4194304

net.core.rmem_max = 4194304

net.core.wmem_default = 262144

net.core.wmem_max = 262144

使参数输出#/sbin/sysctl -p

4.         # vi /etc/security/limits.conf

添加以下内容:

oracle         soft    nproc 2047

oracle         hard    nproc 16384

oracle         soft    nofile 1024

oracle         hard    nofile 65536

# vi /etc/pam.d/login

添加以下内容:

session    required     /lib/security/pam_limits.so

5.         创建安装目录(root身份)

mkdir -p /orac/orahome/app/oracle/product/10.2.0/db_1

chown -R oracle.oinstall /orac/orahome

mkdir -p /orac/oradata

chown -R oracle.oinstall /orac/oradata

chown -R oracle.oinstall /orac

注意:/app/oracle/product/10.2.0/db_1此目录不管放置在那个目录下,都必须存在。orac/orahome为用户创建的存放目录。

6.         设置shelloracle用户的限制(oracle用户登陆修改)

vi .bash_profile

if [ \$USER = "oracle" ]; then

  if [ \$SHELL = "/bin/ksh" ]; then

  ulimit -p 16384

  ulimit -n 65536

  else

  ulimit -u 16384 -n 65536

  fi

  umask 022

 fi

ORACLE_BASE=/orac/orahome/app/oracle; export ORACLE_BASE

ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME

ORACLE_SID=orcl;export ORACLE_SID

PATH=$PATH:$HOME/bin;export PATH

PATH=$ORACLE_HOME/bin:$PATH;export PATH

三:创建磁盘

[root@node2 etc]# fdisk /dev/sdb

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

Building a new DOS disklabel. Changes will remain in memory only,

until you decide to write them. After that, of course, the previous

content won't be recoverable.

 

 

The number of cylinders for this disk is set to 1305.

There is nothing wrong with that, but this is larger than 1024,

and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs

   (e.g., DOS FDISK, OS/2 FDISK)

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

 

Command (m for help): n

Command action

   e   extended

   p   primary partition (1-4)

p

Partition number (1-4): 1

First cylinder (1-1305, default 1):

Using default value 1

Last cylinder or +size or +sizeM or +sizeK (1-1305, default 1305):

Using default value 1305

 

Command (m for help): w

The partition table has been altered!

 

Calling ioctl() to re-read partition table.

Syncing disks.

[root@node2 etc]# fdisk /dev/sdc

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

Building a new DOS disklabel. Changes will remain in memory only,

until you decide to write them. After that, of course, the previous

content won't be recoverable.

 

 

The number of cylinders for this disk is set to 1305.

There is nothing wrong with that, but this is larger than 1024,

and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs

   (e.g., DOS FDISK, OS/2 FDISK)

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

 

Command (m for help): n

Command action

   e   extended

   p   primary partition (1-4)

p

Partition number (1-4): 1

First cylinder (1-1305, default 1):

Using default value 1

Last cylinder or +size or +sizeM or +sizeK (1-1305, default 1305):

Using default value 1305

 

Command (m for help): w

The partition table has been altered!

 

Calling ioctl() to re-read partition table.

Syncing disks.

[root@node2 etc]#

四:安装ASM包并配置
Linux 平台上,ASM 可以使用原始设备或通过 ASMLib 接口管理的设备。出于易于使用和性能方面的原因,Oracle 建议使用通过 ASMLib 接口管理的设备而非原始设备确定您需要哪个版本的 ASMLibASMLib 以一套共三个 Linux 程序包的形式提供:
oracleasmlib — ASM

oracleasm-support —
管理 ASMLib 所需的实用程序
oracleasm —
用于 ASM 库的内核模块

每个 Linux 发行版本都有其自己的一套 ASMLib 程序包,并且在每个发行版本中,每个内核版本都有一个相应的 oracleasm 程序包。以下部分介绍如何确定您需要哪套程序包。 确定适用于您环境的正确 oracleasmlib 模块。

root 用户身份登录并运行以下命令来确定您正在使用的内核:

[root@node2 etc]# uname -rm

2.6.9-55.0.0.0.2.ELhugemem i686

使用此信息在 OTN 上查找相应的 ASMLib 程序包:

  1. 下载适用于您 Linux 版本的 oracleasmlib oracleasm-support 程序包。
  2. 下载与您的内核相对应的 oracleasm 程序包。

通过以 root 用户身份执行以下命令,在主机上安装这些程序包:

oracleasm-2.6.9-55.0.0.0.2.ELhugemem-2.0.3-2

oracleasm-support-2.0.3-2

oracleasm-2.6.9-55.0.0.0.2.EL-2.0.3-2

1.         配置 ASMLib root用户)

使用 ASMLib 之前,必须运行配置脚本来准备驱动程序。 root 用户身份在主机上运行以下命令并回应提示,如下例所示。 这将配置 Oracle ASM 库驱动程序的启动时属性。以下问题将确定在启动时是否加载驱动程序以及它将拥有的权限。当前值将显示在方括号(“[]”)中。按 <ENTER> 而不键入回应将保留该当前值。按 Ctrl-C 将终止。

[root@node2 etc]# /etc/init.d/oracleasm configure

Configuring the Oracle ASM library driver.

 

This will configure the on-boot properties of the Oracle ASM library

driver.  The following questions will determine whether the driver is

loaded on boot and what permissions it will have.  The current values

will be shown in brackets ('[]').  Hitting <ENTER> without typing an

answer will keep that current value.  Ctrl-C will abort.

 

Default user to own the driver interface []: oracle

Default group to own the driver interface []: dba

Start Oracle ASM library driver on boot (y/n) [n]: y

Fix permissions of Oracle ASM disks on boot (y/n) [y]: y

Writing Oracle ASM library driver configuration:           [  OK  ]

Creating /dev/oracleasm mount point:                       [  OK  ]

Loading module "oracleasm":                                [  OK  ]

Mounting ASMlib driver filesystem:                         [  OK  ]

Scanning system for ASM disks:                             [  OK  ]

[root@node2 etc]# /etc/init.d/oracleasm enable

Writing Oracle ASM library driver configuration:           [  OK  ]

Scanning system for ASM disks:                             [  OK  ]

现在,如下所示启用 ASMLib 驱动程序。

[root@node2 etc]# /etc/init.d/oracleasm enable

Writing Oracle ASM library driver configuration:           [  OK  ]

Scanning system for ASM disks:                             [  OK  ]

2.         ASM 配置磁盘

接下来告诉 ASMLib 驱动程序要使用哪些磁盘。通过以 root 用户身份运行以下命令来标记由 ASMLib 使用的磁盘。在主机上执行此操作。

/etc/init.d/oracleasm createdisk DISK_NAME device_name

提示: 以大写字母输入 DISK_NAME。当前版本中有一个错误,即如果使用小写字母,ASM 实例将无法识别磁盘。

[root@node2 etc]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdb1

Marking disk "/dev/sdb1" as an ASM disk:                   [  OK  ]

[root@node2 etc]# /etc/init.d/oracleasm createdisk VOL2 /dev/sdc1

Marking disk "/dev/sdc1" as an ASM disk:                   [  OK  ]

以下示例演示了如何列出标记为由 ASMLib 使用的所有磁盘。

# /etc/init.d/oracleasm listdisks

VOL1

VOL2

3.         链接磁盘组文件(oracle用户)

 [oracle@node2 ~]$ ln -s /dev/oracleasm/disks/VOL1 /orac/oradata/asmdisk1

[oracle@node2 ~]$ ln -s /dev/oracleasm/disks/VOL2 /orac/oradata/asmdisk2

 五:安装数据库软件(oracle用户执行)

oracle数据包10201_database_linux32拷入系统内,进行解压。

命令如下:unzip 10201_database_linux32

解压完成之后进入database目录执行[oracle@node2 database]$ ./runInstaller

安装数据库软件。

六:创建ASM数据库实例并创建数据库

oracle用户登陆系统执行[oracle@node2 ~]$ dbca出现如下界面:

点击next

按照提示操作到如下界面选中第二项。

 

点击next出下图

UnixWare7.1.x作業系統下的硬碟管理(4)

    5. 用edvtoc命令增加slice 系統自動增加了s0到sf共16個 slice,如果我們繼續增加只能通過編輯vtoc檔。
    1)prtvtoc –f /tmp/vtoc /dev/c0b0t0d0s0 這樣獲得當前硬碟的VTOC資訊檔。
    2)然後在檔的末尾增加如下16、17兩行:
    15 0xf 0x201 12514635 16065
    16 0x4 0x200 12530700 300
    17 0x4 0x200 12531000 400
有一個原則,最後一個slice的結束sector不能超出整個fdisk分區的範圍,如果超出,將產生不可預料的嚴重錯誤,甚至有導致整個系統癱瘓的可能。
    3)edvtoc –f /tmp/aaa /dev/c0b0t0d0s0
通過修改後的vtoc檔/tmp/aaa更新硬碟的VTOC資訊。
    4)然後重新啟動系統,系統將自動給新增加的兩個slice創建兩個設備檔/dev/[r]dsk/c0b0t0d0s11和/dev/[r]dsk/c0b0t0d0s12。這樣我們就可以通過這兩個設備檔對slice進行操作了。
2.3 增加硬碟
將硬碟正確的連接到主機系統上,並且連接硬碟的適配器(或者通道或者卡)的驅動程式已經正確安裝,則作業系統在啟動的時候能夠正確的檢測到硬碟,並由VTOC驅動程式創建了21個與slice對應的設備檔/dev/[r]dsk/cXbXtXdXp0-4和/dev/[r]dsk/cXbXtXdXs0-f,只有發現系統正確的檢測到了硬碟時我們才能夠通過命令diskadd增加硬碟,否則無法進行。舉個例子,在我們的學習環境中,磁碟陣列櫃是通過SCSI Ultra29160卡連接到主機上的,如果在UnixWare7.1.x作業系統中沒有正確的安裝此SCSI卡的驅動程式,將無法進行增加硬碟,因為系統根本無法在啟動時自動檢測到該磁碟陣列櫃並為其創建設備檔,所以不可能正確的執行命令diskadd。
    2.3.1 第一個例子
增加磁碟陣列櫃第一個邏輯分區/dev/[r]dsk/c2b0t5d0,這個例子詳細列出整個過程,目的是讓大家有一個較為詳細的瞭解。
    1 # diskadd c2b0t5d0
    2 UX:diskadd: INFO: You have invoked the System V disk management (s5dm) diskadd .
    3 The purpose of this utility is to set up additional disk drives.
    4 This utility can destroy the existing data on the disk.
    5 Do you wish to continue?
    6 (Type y for yes or n for no followed by ENTER):
    1)第1行是增加硬碟的命令,它是建立在系統啟動時檢測到該硬碟並正確的創立了/dev/[r]dsk/目錄下的設備檔的基礎之上的。
    2)第2行的提示可以看出,當我們省略了參數-F時,缺省調用s5dm交互介面。
    3)第4行有一個該操作可能破壞硬碟上存在資料的提示。
    4)第5、6兩行詢問你是否繼續,如果可以回答y,如果不想繼續則回答n。
    7 y
    8 The recommended default partitioning for your disk is:
    0. a 100% "UNIX System" partition.
    9 To select this, please type "y". To partition your disk
    10 differently, type "n" and the "fdisk" program will let you
    11 select other partitions. y
    12 Surface analysis of your disk is recommended
    13 but not required.
    1)第7行就是我們的回答”y”,是由我們手動輸入的。
    2)第8到11行提示我們是用缺省的將該邏輯分區100%的劃分為UNIX分區還是手動用fdisk自己進行分區,我們在11行回答的是”y”。
    14 Do you wish to skip surface analysis? (y/n) y
    15 You will now be queried on the setup of your disk.After you
    16 have determined which slices will be created, you will be
    17 queried to designate the sizes of the various slices.
    18 How many slices/filesystems do you want created on the disk (1 - 13)? 2 注釋:創建兩個slices。
    19 Please enter the absolute pathname (e.g., /home3) for
    20 slice/filesystem 1 (1 - 32 chars)? /home/s1 注釋:輸入檔系統的掛接點目錄/home/s1。
    21 Enter the filesystem type for this slice (vxfs,ufs,s5,sfs),
    22 type 'na' if no filesystem is needed, or press
    23 <ENTER> to use the default (vxfs):    注釋:使用缺省的檔系統類型vxfs,如果使用其他的檔系統可以手動輸入後確認。
    24 Specify the block size from the the following list
    25 (1024, 2048, 4096, 8192), or press <ENTER> to use the first one: 注釋:指定slice的塊(block)大小,此處缺省。
    26 Should /home/s1 be automatically mounted during a reboot?
    27 Type "no" to override auto-mount or press <ENTER> to enable the option: no
        注釋:詢問是否在系統啟動時自動mount該檔系統。
    28 Please enter the absolute pathname (e.g., /home3) for
    29 slice/filesystem 2 (1 - 32 chars)? /home/s2
    30 Enter the filesystem type for this slice (vxfs,ufs,s5,sfs),
    31 type 'na' if no filesystem is needed, or press
    32 <ENTER> to use the default (vxfs):
    33 Specify the block size from the the following list
    34 (1024, 2048, 4096, 8192), or press <ENTER> to use the first one:
    35 Should /home/s2 be automatically mounted during a reboot?
    36 Type "no" to override auto-mount or press <ENTER> to enable the option: no
       注釋:28-36行定義第二個slice,步驟和內容和第一個slice相同。
    37 You will now specify the size in cylinders of each slice.
    38 (One cylinder is approximately 2 megabytes of disk space.)
    39 There are now 17542 cylinders available on your disk.
    40 The filesystem type you have chosen is limited to 541064 cylinders.
    41 How many cylinders would you like for /home/s1 (0 - 17542)?
    42 Press <ENTER> for 0 cylinders: 1000
    43 There are now 16542 cylinders available on your disk.
    44 The filesystem type you have chosen is limited to 541064 cylinders.
    45 How many cylinders would you like for /home/s2 (0 - 16542)?
    46 Press <ENTER> for 0 cylinders: 1000
    47 Notice: The selections you have made will leave 15542 cylinders unused.
    48 You have specified the following disk configuration:
    49 A /home/s1 filesystem with 1000 cylinders (1938.0 MB)
    50 A /home/s2 filesystem with 1000 cylinders (1938.0 MB)
    51 Is this allocation acceptable to you (y/n)? y
    52 UX:sh (sh): ERROR: disk3: Not found
    53 UX:sh (sh): ERROR: disk5: Not found
    54 UX:sh (sh): ERROR: disk6: Not found
     注釋:第37行到54行對上面定義的兩個slice分配空間,以cylinder為單位進行,在第38行有提示說一個cylinder大約接近2MB的空間,在41行提示整個邏輯分區的空間是17542個cylinder。第49、50行說明了上面我們分配的兩個slice的大小,並在51行詢問是否接受以上定義,我們回答”y”。
    55 Filesystems will now be created on the needed slices
    56 Creating the /home/s1 filesystem on /dev/rdsk/c2b0t5d0s1
    57 Allocated approximately 496093 inodes for this file system. Specify a
    58 new value or press <ENTER> to use the default:
    59 Creating the /home/s2 filesystem on /dev/rdsk/c2b0t5d0s2
    60 Allocated approximately 496093 inodes for this file system. Specify a
    61 new value or press <ENTER> to use the default:
    62 UX:diskadd: INFO: Diskadd for Disk Drive 2 DONE at Tue Feb 24 13:44:02 CST 2004
  注釋:第55到62行創建slice成功,並有說明s1是/dev/rdsk/c2b0t5d0s1,s2是/dev/rdsk/c2b0t5d0s2,這樣我們就完成了添加硬碟的工作,並在該邏輯分區上創建了兩個子分區。

UnixWare7.1.x作業系統下的硬碟管理(6)

2.4 刪除硬碟
    2.4.1 diskrm命令
    diskrm [-F dm_type] [disk_number]
    diskrm命令的參數與diskadd完全相同,代表的意思也完全一樣,它的作用就是將/etc/vfstab檔中的相應記錄刪除。
    2.4.2 一個例子
我們這個例子是刪除我們學習環境的磁碟陣列的第二個邏輯分區/dev/[r]dsk/c2b0t5d1。
我們先來看一下在沒有執行命令diskrm前的/etc/vfstab的內容,我們看到第14到16行都是磁碟陣列第二邏輯分區的子分區的資訊。
    1 # vi /etc/vfstab
    2 /dev/root /dev/rroot / vxfs 1 no mincache=closesync SYS_RANGE_MAX
    3 /dev/stand /dev/rstand /stand bfs 1 no - SYS_RANGE_MAX
    4 /proc - /proc proc - no -
    5 /processorfs - /system/processor profs - yes -
    6 /dev/fd - /dev/fd fdfs - no -
    7 /dev/dsk/f0t /dev/rdsk/f0t /install s5 - no -
    8 /dev/dsk/f1t /dev/rdsk/f1t /install s5 - no -
    9 /dev/dsk/f0 /dev/rdsk/f0 /install s5 - no -
    10 /dev/dsk/f1 /dev/rdsk/f1 /install s5 - no -
    11 /tmp - /tmp memfs - yes swapmax=10485760,rootmode=1777
    12 /var/tmp - /var/tmp memfs - yes swapmax=41943040,rootmode=1777
    13 /dev/_tcp - /dev/_tcp specfs - yes dev=tcp
    14 /dev/dsk/c2b0t5d1s1 /dev/rdsk/c2b0t5d1s1 /home/s21 vxfs 1 no mincache=closesync SYS_RANGE_MAX
    15 /dev/dsk/c2b0t5d1s2 /dev/rdsk/c2b0t5d1s2 /home/s22 vxfs 1 no mincache=closesync SYS_RANGE_MAX
    16 /dev/dsk/c2b0t5d1s3 /dev/rdsk/c2b0t5d1s3 /home/s23 vxfs 1 no mincache=closesync SYS_RANGE_MAX
    17 /dev/dsk/c2b0t5d2s1 /dev/rdsk/c2b0t5d2s1 /home/31 vxfs 1 no mincache=closesync SYS_RANGE_MAX
    18 /dev/dsk/c2b0t5d2s2 /dev/rdsk/c2b0t5d2s2 /home/32 vxfs 1 no mincache=closesync SYS_RANGE_MAX
    19 /dev/root /dev/rroot / vxfs 1 no mincache=closesync SYS_RANGE_MAX
    20 /dev/stand /dev/rstand /stand bfs 1 no - SYS_RANGE_MAX
    21 /proc - /proc proc - no -
    22 /processorfs - /system/processor profs - yes -
    23 /dev/fd - /dev/fd fdfs - no -
    24 /dev/dsk/f0t /dev/rdsk/f0t /install s5 - no -
    25 /dev/dsk/f1t /dev/rdsk/f1t /install s5 - no -
    26 /dev/dsk/f0 /dev/rdsk/f0 /install s5 - no -
    27 /dev/dsk/f1 /dev/rdsk/f1 /install s5 - no -
    28 /tmp - /tmp memfs - yes swapmax=10485760,rootmode=1777
    29 /var/tmp - /var/tmp memfs - yes swapmax=41943040,rootmode=1777
    30 /dev/_tcp - /dev/_tcp specfs - yes dev=tcp
    31 /dev/dsk/c2b0t5d1s1 /dev/rdsk/c2b0t5d1s1 /home/s21 vxfs 1 no mincache=closesync SYS_RANGE_MAX
    32 /dev/dsk/c2b0t5d1s2 /dev/rdsk/c2b0t5d1s2 /home/s22 vxfs 1 no mincache=closesync SYS_RANGE_MAX
    33 /dev/dsk/c2b0t5d1s3 /dev/rdsk/c2b0t5d1s3 /home/s23 vxfs 1 no mincache=closesync SYS_RANGE_MAX
    34 /dev/dsk/c2b0t5d2s1 /dev/rdsk/c2b0t5d2s1 /home/31 vxfs 1 no mincache=closesync SYS_RANGE_MAX
    35 /dev/dsk/c2b0t5d2s2 /dev/rdsk/c2b0t5d2s2 /home/32 vxfs 1 no mincache=closesync SYS_RANGE_MAX
    36 @
    37 "/etc/vfstab" 21 lines, 1483 characters
我們執行命令diskrm c2b0t5d1後,在/etc/vfsvtab檔中看不到上面14到16行所顯示的內容,說明刪除成功。在執行該命令的過程中顯示內容如下所示:
    1 # diskrm c2b0t5d1
    2 UX:diskrm: INFO: You have invoked the System V disk management (s5dm) diskrm ut.
    3 The purpose of this utility is to remove entries from the /etc/vfstab file.
    4 Do you wish to continue?
    5 (Type y for yes or n for no followed by ENTER):
    6 y
    7 UX:diskrm: INFO:
    8 Do you want to delete the following entry?
    9 /dev/dsk/c2b0t5d1s1 /dev/rdsk/c2b0t5d1s1 /home/s21 vxfs 1 X
    10 (Type y for yes or n for no and press <ENTER>):
    11 y
    12 UX:diskrm: INFO:
    13 Do you want to delete the following entry?
    14 /dev/dsk/c2b0t5d1s2 /dev/rdsk/c2b0t5d1s2 /home/s22 vxfs 1 X
    15 (Type y for yes or n for no and press <ENTER>):
    16 y
    17 UX:diskrm: INFO:
    18 Do you want to delete the following entry?
    19 /dev/dsk/c2b0t5d1s3 /dev/rdsk/c2b0t5d1s3 /home/s23 vxfs 1 X
    20 (Type y for yes or n for no and press <ENTER>):
    21 y
    22 UX:diskrm: INFO: saving /etc/vfstab to /etc/Ovfstab
    23 UX:diskrm: INFO: creating a new /etc/vfstab
    24 UX:diskrm: INFO: Diskrm for disk c2b0t5d1 DONE at Thu Feb 26 14:07:46 CST 2007
    25 #

在SCO UNIX上利用CD/DVD做資料備份

由於現今各個應用程式複雜度日與劇增處理的資料量也都相當龐大客戶常常遇到的問題就是 : 
    有什麼辦法可以很快的對資料做備份與保存
    事實上針對客戶所遇到的問題UnixWare 7.1.3/7.1.4OpenServer 5.0.7 已經有提供一個很好的解決方法就是利用cdrecord(dvdrecord) 這套工具直接將需要備份的檔案燒入CDDVD來作保存.
    以下將在UnixWare 7.1.3/7.1.4OpenServer 5.0.7的環境上實際操作一次
1UnixWare 7.1.3/7.1.4
首先必須先確定的是系統是否已經安裝cdrtools這套工具?若沒有安裝可以放入第二片安裝光碟執行 pkgadd -d cdrom1 cdrtools即可
接著必須將需要備份的檔案建立一個ISO檔案以便交由cdrecord命令處理可以參考這個範例 : 
首先將要備份的資料複製到/mydata的目錄 
# mkisofs -r -o my_backup.iso /mydata 
這樣就會產生一個 my_backup.iso 的檔案了之後利用cdrecord的命令先判斷燒錄機的位置 : 
# cdrecord -scanbus 
接著利用這樣的命令
# cdrecord -v -eject dev=2,1,0 -data my_backup.iso (dev須參考-scanbus的結果)
2OpenServer 5.0.7
OpenServer 5.0.7也已經正式提供cdrtools套件來幫助客戶達到用CD做資料備份的功能了(DVD功能也於Update Pack 3提供), 客戶必須先安裝目前最新的Maintenance Pack, 目前最新的版本為Maintenance Pack 3. 
使用的方式也類似UnixWare 7.1.3/7.1.4, 首先先使用mkisofs命令建立ISO檔案 
# mkisofs -r -o my_backup.iso /mydata
接的利用cdrecord -scanbus確認燒錄器的位置後就可以執行 : 
# cdrecord -v -eject dev=2,1,0 -data my_backup.iso 

 
感谢访问!
Please wait...
Sorry, the comment you entered is too long. Please shorten it.
You didn't enter anything. Please try again.
Sorry, we can't add your comment right now. Please try again later.
To add a comment, you need permission from your parent. Ask for permission
Your parent has turned off comments.
Sorry, we can't delete your comment right now. Please try again later.
You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
Complete the security check below to finish leaving your comment.
The characters you type in the security check must match the characters in the picture or audio.
bestewrote:
 
Jan. 29
Hi! My dear friend, i from Thailand!
have a nice evening and enjoy the days!
see u again...
                kiss
Nov. 17
No list items have been added yet.