在Solaris 下用DVD光盘保存数据(1)

作者: 曹江华 理由:51CTO.com  
 
阅读提示:目下当今的使用琐屑越来越伟年夜,运用传统CD-R来备份硬盘并不睬想,因为悉数安装一个Solaris 10就需求4.5GB,回收CD-R分卷制造真实太费事、磁带组织于中小企业又过于昂贵。跟着DVD刻录机和盘片的价格敏捷低沉,运用DVD刻录机用来备份琐屑数据非常明智的。

目下当今的使用琐屑越来越伟年夜,运用传统CD-R来备份硬盘并不睬想,因为悉数安装一个Solaris 10就需求4.5GB,回收CD-R分卷制造真实太费事、磁带组织于中小企业又过于昂贵。其它各个使用措施的庞瑰丽日与剧增, 处置的数据量也都相当伟年夜,Unix用户常常遇到的成效便是 : 有什么措施可以经济快捷的对数据做备份与保存。

数据备份关于unix琐屑是非常次要的,然则来自IDC的统计材料表明,全全国60%~80%的公司数据都存储在条记本电脑和 PC中。但令人遗憾的是,活期备份的条记本电脑和台式机用户却低于4%。在阅历了因为琐屑阻挠或数据丧失而带来的悲凄教导之后,越来越多的寻常用户熟悉到了备份的次要性。在畴昔磁带备份一向被以为是经济高效的备份介质选择。然则当你面临不计其数的PC和条记本电脑,有年夜批的小文件要同时备份时,这种备份 措施就不再实用了。寻常用户备份看似年夜事一桩,但是一旦出现成效,仍会给企业带来丧失。跟着DVD刻录机和盘片的价格敏捷低沉,运用DVD刻录机用来备份琐屑数据非常明智的。

一、号令行形式界面

1. 反省DVD刻录配备

在Solaris  下可以运用 cdrw 号令在 CD-R、CD-RW、DVD-RW 或 DVD RW 介质配备上以 ISO 9660 式子(带有 Rock Ridge 或 Joliet 扩展)向 CD 和 DVD 中写入文件琐屑。 从以下发行版动手脱手提供了 cdrw 号令:Solaris 8 使用环境 1/01 的 Software Supplement CD,从 Solaris 9 发行版动手脱手的SolarisTM 发行版。运用 cdrw 号令实施以下任务:
◆创立数据 CD 和 DVD。
◆创立音频 CD。
◆从音频 CD 提取音频数据。
◆复制 CD 和 DVD。

起首运用cdrw -l 号令搜检刻录配备的加载环境。

cdrw -l
Looking for CD devices...
    Node              |    Connected Device            |  Device type
---------------------- -------------------------------- -----------------
 cdrom0               | HP     DVD Writer 640b      | CD Reader/Writer

若是列表中未示意驱动器,请选择以下使用之一以便琐屑可识别驱动器。

加载驱动措施后重启琐屑的措施:

# touch /reconfigure
# init 6

加载驱动措施后不重新琐屑的措施:
# drvconfig
# disks 

然后重新启动 vold
# svcadm disable volfs
# svcadm enable volfs 

剖析');:必须具有超等用户的拜候权限,材干终止和启动 vold 警备进程。

2.数据光盘的刻录

把文件转化为ISO 9660文件琐屑
起首Solaris下只能从iso文件刻录。也便是所必须将要刻的文件先制形成ISO文件。ISO 9660文件琐屑是一个标准CD-ROM文件琐屑,它容许您在PC,Mac和其它次要竞赛争论机平台上读CD-ROM文件。此标准,议决于1998年,是由称为High Sierra的财富组织草拟的。险些悉数带有CD-ROM的竞赛争论机都可以从ISO 9660文件琐屑读取文件。 起首运用号令将方针文件转化为ISO 9660式子:

mkisofs -r /Documents/RICHPse > my_cd 

剖析');:mkisofs 将生成 ISO 9660 文件琐屑,个中包罗 UNIX 命名空间中的文件名。这个号令将创立一个包罗 ISO9660 文件琐屑的 imagefile.iso 文件,它是目录树 /path/to/tree 的一个副本。 在处置进程中,它将文件称呼映射为标准的 ISO9660 文件琐屑的文件名,将撤废那些不模范的 ISO 文件琐屑的文件。-R 选项可以启用 Rock Ridge 扩展普通的 UNIX 琐屑。 498)this.style.width=498;">
文件转化为ISO9660文件琐屑
◆然后就可以将my_cd文件举办刻录:
cdrw -i ufs_cd
Initializing device...done.
Writing track 1...done.
Finalizing (Can take several minutes)...done.

3.多媒体cd的刻录

需求剖析');的是cdrw号令只能识别以下式子:

式子

剖析');<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />



sun 

数据CDDA 式子的 Sun .au 文件



wav

数据为CDDA 式子的 RIFF (.wav) 文件



cda

包罗原始 CD 音频数据的 .cda 文件,该音频数据是按小尾数法字节顺序以 44.1 kHz 抽样率举办抽样的 16 位 PCM 平面声



aur

包罗原始 CD 数据的 .aur 文件,该数据以年夜尾数法字节顺序排序



若是不是:.sun;.wav;.cda;.aur式子的文件cdrw会自动纰漏。号令实例:
cdrw -aO groucho.wav chico.au harpo.wav 

上面一个例子会把groucho.wav,chico.au,harpo.wav 三个文件刻录到光盘。

4. 复制 CD盘

缺省环境下,cdrw 号令会将 CD 复制到 /tmp 目录中。复制时可以需求多达 700 MB 的闲暇空间。若是 /tmp 目录中用于复制 CD 的空间缺乏,请运用 -m 选项指定替代目录。步调如下:
◆将音频 CD 拔出 CD-RW 驱动器。
◆为音频文件创立目录。

$ mkdir /music_dir 

◆从音频 CD 提取声道。
$ cdrw -c -m music_dir 

◆关于每个声道,将示意 Extracting audio ... 消息。提取悉数声道后,将弹出 CD。
◆拔出空白 CD,然后按回车键。提取声道后,将弹出音频 CD。琐屑将提示拔出空白 CD。

5. 复制 CD

若是具有两个 CD-RW 配备,可以举办复制 CD

$ cdrw -c -s cdrom0 -d cdrom1

6.老版本solaris

上面的使用是在solaris 10 使用琐屑下,若是您运用的solaris版本比较陈旧如solaris 8 ,这个版本没有cdrw,可以去sunfreeware 下载 cdrecord 。版本cdrecord-1.6.1-sol8-sparc-local.gz。步调如下:

#gzip -d cdrecord-1.6.1-sol8-sparc-local.gz 
#pkgadd -d cdrecord-1.6.1-sol8-sparc-local 
#cdrecord -v /local/mycdromfile.iso   (从ISO文件刻录到光盘 )
#mkisofs -l -L -r -o /local/mycdromfile2.iso /home/neal 
(将一个目录下的文件刻录到光盘)
#mkisofs -o xxx.iso -J -R /full-path-data/ 
#cdrecord -v /local/mycdromfile2.iso 






版权声明: 原创作品,容许转载,转载时请务必以超链接体式式子标明文章 原始理由 、作者信息和本声明。不然将清查规则责任。

转载于:https://www.cnblogs.com/zgqjymx/archive/2011/03/07/1974924.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
2013年最新版的强悍Unix版本Solaris 11.1系统文件,功能十分强大,不愧是真正血统的Unix系统! Oracle Announces Availability of Oracle Solaris 11.1 and Oracle Solaris Cluster 4.1 Delivers Oracle Database and Java Enhancements, Expanded Mission Critical Cloud Management Capabilities and Advanced Platform Features Redwood Shores, Calif – October 26, 2012 News Facts Oracle today announced general availability of Oracle Solaris 11.1 and Oracle Solaris Cluster 4.1. Oracle Solaris 11 is the first cloud OS that allows customers to build large-scale enterprise-class Infrastructure as a Service (IaaS), Platform as a Service (PaaS) and Software as a Service (SaaS) clouds on a wide range of SPARC and x86 servers and Oracle engineered systems. Oracle Solaris Cluster 4.1 extends high availability and disaster recovery capabilities of Oracle Solaris and includes unique virtual cluster features supporting highly efficient application consolidation with best-in-class availability. Oracle Solaris 11 is already widely in production with thousands of customers with mission critical deployments across industries such as financial services, communications, healthcare, retail, public sector and media and entertainment. Read customer success stories about Oracle Solaris here. Oracle Solaris 11 is also gaining strong momentum among enterprise application vendors with hundreds of applications already qualified for Oracle Solaris Ready status through the Oracle PartnerNetwork (OPN). OPN members can develop, sell and implement their solutions on Oracle Solaris 11 and take advantage of specialized Oracle Solaris resources to expand their market reach. Customers and partners can quickly and safely upgrade to Oracle Solaris 11.1 using the built-in update tools and software repositories available with Oracle Solaris 11. Oracle will host a webcast on November 7, 2012 at 8 a.m. Pacific time on Oracle Solaris 11.1 and Oracle Solaris Cluster 4.1, featuring Markus Flierl, vice president, Oracle Solaris Engineering, Core Technology and Bill Nesheim, vice president, Oracle Solaris Engineering, Platform Software. Register here. This event will also include an interactive chat with core developers of Oracle Solaris and Oracle Solaris Cluster. New and Enhanced Features in Oracle Solaris 11.1 Oracle Solaris 11.1 increases the performance, availability and I/O throughput of the latest Oracle Database technology. A new, optimized shared memory interface between the Oracle Database and Oracle Solaris 11.1 provides 8x faster database startup and shutdown, as well as online resizing of the Oracle Database System Global Area (SGA). Oracle Solaris 11.1 introduces unique new capabilities for optimizing Oracle Database performance. Oracle Solaris 11.1 exposes Oracle Solaris DTrace I/O interfaces that allow an Oracle Database administrator to identify I/O outliers and subsequently isolate network or storage bottlenecks. A new Oracle Solaris DTrace plug-in for Oracle Java Mission Control to enable customers to profile Java applications on Oracle Solaris production systems. New cloud management features add to Oracle Solaris 11’s zero overhead built-in virtualization capabilities across system, network and storage resources, including expanded support for Software Defined Networks (SDN) with Edge Virtual Bridging enhancements, to maximize network resource utilization and manage bandwidth in cloud environments. New built-in memory predictor monitors application memory use and provides optimized memory page sizes and resource location to speed overall application performance. Support for an unprecedented 32 TB of RAM and thousands of CPUs unlocks the full potential of Oracle’s latest server systems. Oracle Solaris Cluster 4.1 Highlights New Oracle Solaris 10 Zone Clusters allow customers to consolidate mission critical Oracle Solaris 10 applications on Oracle Solaris 11 cloud environments. Expanded disaster recovery operations using Oracle’s Sun ZFS Storage Appliance services along with Oracle Solaris Cluster 4.1 to coordinate failover of applications and data to a remote disaster recovery site. Faster application recovery with improved storage failure detection and resource dependencies management. New labeled security capability in Oracle Solaris Zone Clusters provides military grade application separation in highly consolidated mission-critical deployments using Oracle Solaris 11 Trusted Extensions. Integrated Oracle Deployments and Support Oracle Enterprise Manager Ops Center provides comprehensive cloud management capabilities for Oracle Solaris 11, including self-service provisioning of Oracle Solaris 11 Zones. Ops Center’s integrated systems management delivers enterprise scale cloud performance. Oracle Enterprise Manager Ops Center is available to Oracle Solaris customers at no additional cost under the Ops Center Everywhere Program. Oracle Solaris Studio delivers the latest in compiler optimizations, multithread performance and powerful analysis tools for native development, and optimized application performance and reliability on Oracle Solaris 11.1 systems. Oracle Solaris 11 guarantees binary compatibility with previous Oracle Solaris versions through the Oracle Solaris Binary Application Guarantee Program, which provides customers a seamless upgrade path and the industry’s best investment protection. Oracle Solaris Legacy Containers allows older Oracle Solaris environments to be brought forward onto latest generation hardware to provide power, cooling and footprint consolidation savings. OPN members can find Oracle Solaris tools and resources in the Oracle Solaris Knowledge Zone, including Oracle Solaris Ready, Oracle Solaris 11 Specialization and Oracle Solaris Development Initiative. The Oracle Solaris Remote Lab now provides a secure cloud environment for OPN members to test and validate their applications with Oracle Solaris 11 in SPARC and x86 virtual environments. Supporting Quotes “Oracle recommends Oracle Solaris 11 for all UNIX®-based Oracle implementations. Oracle Solaris 11.1 delivers over 300 new performance and feature enhancements and is engineered together with Oracle Database, middleware, applications to increase performance, streamline management and automate support for Oracle deployments,” said John Fowler, executive vice president, Systems, Oracle. “The combination of the secure, highly available capabilities of Oracle Solaris Cluster 4.1 and the built-in virtualization of Oracle Solaris 11.1 helps customers bring their most mission-critical applications into a cost effective, agile cloud environment and delivers extreme availability for enterprise applications.” “Clients are looking for ways to reduce the complexity of systems management while enabling Platform as a Service (PaaS) & Software as a Service (SaaS) clouds,” says Lee Diamante, solutions architect, Systems Computing Solutions at Forsythe. “The value of Oracle Solaris 11 is that it maintains all the enterprise-class features expected with a mission-critical OS, while bringing in new, innovative technologies. Forsythe has a long and rich history of delivering customer solutions on Oracle Solaris systems. This is why we are excited about the Solaris 11.1 release.” “Oracle is making it much easier for partners like Informatica to gain access to their software with the new testing environments; shrinking the time to measurable results and value,” said Julie Lockner, vice president, ILM, Informatica. “With the release of Oracle Solaris 11.1 Informatica customers now have access to mission critical deployments across major industries, with an environment of high performance and high availability. With all the new feature enhancements, we look forward to making the Informatica Platform certified on the Oracle Solaris 11 product family.”
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值