免费注册 查看新帖 |

Chinaunix

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

[SCO UNIX] mount问题请教! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-08-19 15:48 |只看该作者 |倒序浏览
服务器:DS10
系统:True64 4.0F
我有2块硬盘,一块上面有root区和swap 区及g,h区
另一块现在只分成g,h 2个区,上面都做了AdvFs
装好系统以后,我不知道怎么样使用这第2块盘,也就是说
我不知道该怎样把它mount 上去
我自己尝试:mount -t advfs /dev/rz17g /db
结果报 /dev/rz17g on /db:No such domain, fileset or mount directory错
我该怎么做呢?谁能帮帮小弟???
谢谢谢谢!!!

论坛徽章:
2
荣誉会员
日期:2011-11-23 16:44:17拜羊年徽章
日期:2015-03-03 16:15:43
2 [报告]
发表于 2004-08-19 16:50 |只看该作者

mount问题请教!

还要做如下工作:
1.#mkfdmn /dev/rz17g db_domain
2.#mkfset db_domain db
3.#cd /
4.#mkdir db
5.mount -t advfs db_domain#db /db

论坛徽章:
2
荣誉会员
日期:2011-11-23 16:44:17拜羊年徽章
日期:2015-03-03 16:15:43
3 [报告]
发表于 2004-08-19 16:56 |只看该作者

mount问题请教!

仔细看看,ADVFS有很多需要掌握的东西呢!
advfs(4)
NAME

  advfs - A local file system and utilities

DESCRIPTION

  The File System (AdvFS), a file system option on the Tru64 UNIX operating
  system, features rapid crash recovery, high performance, and a flexible
  structure that enables you to manage your file system while it is on line.
  The AdvFS component is licensed with the Tru64 UNIX operating system and is
  available as file system option during installation.

  A set of utilities that expands the capabilities of the AdvFS file system
  is available: The Advanced File System Utilities. These utilities include
  capabilities such as adding volumes without reconfiguring the directory
  hierarchy of the file system, cloning filesets to enable online backup, and
  improving system performance with domain balancing, and file striping.
  Additionally, a graphical user interface (GUI) that simplifies file system
  management is available with the utilities. The Advanced File System Utili-
  ties component is licensed separately from the Tru64 UNIX operating system.

  Using journaling techniques, AdvFS provides faster crash recovery than the
  UNIX file system (UFS), which implements crash recovery using the fsck
  utility.

  In addition to fast restarts, AdvFS ensures that file structures are
  recovered consistently; extends file and fileset sizes to greater than 2
  gigabytes; creates, deletes, and renames files faster than UFS; and pro-
  vides enhanced backup utilities (vdump and vrestore).

  By configuring AdvFS as the root filesystem, the preceding AdvFS features
  are extended to the root filesystem.

  A UFS file system corresponds to a disk partition and is, therefore, lim-
  ited by the size restrictions of that disk. In contrast, AdvFS filesets can
  span all volumes in the file domain.

  AdvFS introduces file system concepts that do not exist for UFS. Under-
  standing the following concepts prepares you for planning, creating, and
  maintaining the AdvFS file system:

    +  Volumes

       A volume is any mechanism that behaves like a UNIX block device, such
       as a disk, disk partition, or logical volume that is configured with
       the Logical Storage Manager (LSM).

    +  File Domain

       A file domain is a named set of one or more volumes that provides a
       shared storage pool for one or more filesets (see filesets below).

       When you create a file domain using the mkfdmn command, you must
       specify a domain name and one initial volume.  The mkfdmn command
       creates a subdirectory in the /etc/fdmns directory for each new file
       domain. The file-domain subdirectory contains a symbolic link to the
       initial volume.

       You can add additional volumes to an existing file domain by using the
       addvol utility.        With each added volume, the addvol utility creates a
       new symbolic link in the appropriate file-domain subdirectory of the
       fdmns directory.

    +  Filesets

       A fileset is both the logical file structure that the user recognizes
       and a unit that you can mount.  Whereas you typically mount an entire
       UNIX file system, with the AdvFS you mount the individual filesets of
       a file domain.

       An Advanced File System consists of a file domain with at least one
       fileset that you create using the mkfset command.  For each fileset,
       the mkfset command creates a .tags directory. The .tags directory is a
       permanent directory that is reserved for future use. You cannot
       delete, rename, or add any files to the .tags directory.

    +  Clone Fileset

       A clone fileset is a read-only copy of an existing fileset, which you
       can mount as you do other filesets. You create a clone fileset by
       using the clonefset utility. The reason you create and mount a clone
       fileset is to perform an online backup of the existing fileset.

       A clone fileset is a snapshot of the original fileset, capturing and
       fixing the original fileset at a moment in time.         Any changes you make
       to the original fileset will not appear in its clone. For instance,
       new files added to the original fileset will not appear in the clone.
       Changes to data in files in the original fileset will not appear in
       the clone. Also, files that you remove from the original fileset will
       remain accessible in the clone under the names they had when you
       created the clone fileset.

  The following list summarizes the AdvFS commands:

  advfsstat
      Displays file system statistics. See advfsstat(.

  advscan
      Locates AdvFS partitions on disks. See advscan(.

  chfile
      Changes the attributes of a file. See chfile(.

  chfsets
      Changes the attributes of a fileset.  See chfsets(.

  chvol
      Changes the attributes of a volume. See chvol(.

  defragment
      Makes the files in a file domain more contiguous. See defragment(.

  edquota
      Edits the user or group quotas.  See edquota(.

  mkfdmn
      Creates a new file domain. See mkfdmn(.

  mkfset
      Creates a fileset within an existing file domain. See mkfset(.

  mountlist
      Checks for mounted AdvFS filesets. See mountlist(.

  ncheck
      Creates a list of files on specified filesets, including the path names
      and i-numbers.  See ncheck(8).

  quot
      Summarizes fileset ownership.  See quot(8).

  quota
      Displays disk usage and limits.  See quota(1).

  quotacheck
      Checks file system quota consistency. See quotacheck(8).

  quotaon
      Turns on user and group quotas.  See quotaon(8).

  quotaoff
      Turns off user and group quotas.        See quotaoff(8).

  renamefset
      Renames an existing fileset.  See renamefset(8).

  repquota
      Summarizes the disk usage and quotas for specified filesets.  See
      repquota(8).

  rmfdmn
      Removes an unused file domain from AdvFS. See rmfdmn(8).

  rmfset
      Deletes a fileset from a file domain. See rmfset(8).

  shblk
      Displays unformatted disk blocks. See shblk(8).

  shfragbf
      Displays frag file information. See shfragbf(8).

  showfdmn
      Displays domain attributes. See showfdmn(8).

  showfile
      Displays attributes for files in an Advanced File System.         See
      showfile(8).

  showfsets
      Displays information about the filesets in a domain. See showfsets(8).

  switchlog
      Moves the AdvFS log file to a different volume in a file domain.        See
      switchlog(8).

  tag2name
      Prints the path name of a file, given the tag number. See tag2name(8).

  vbmtchain
      Displays mcells that describe metadata for a file. See vbmtchain(8).

  vbmtpg
      Displays a formatted page of the bitfile metadata table (BMT).  See
      vbmtpg(8).

  vdump
      Backs up filesets. See vdump(8).

  verify
      Checks for and repairs file system inconsistencies. See verify(8).

  vfile
      Displays the contents of a file from an unmounted domain.         See
      vfile(8).

  vfragpg
      Prints a single header page of a frag file. See vfragpg(8).

  vlogpg
      Displays a formatted page of the log. See vlogpg(8).

  vlsnpg
      Displays the logical sequence number (LSN) of a page of the log. See
      vlsnpg(8).

  vrestore
      Restores files from devices written with the vdump command. See vre-
      store(8).

  vtagpg
      Displays a formatted page of the tag directory. See vtagpg(8).


                                       Note

         Operations supported by the following AdvFS commands will be retired
         in a future release of the Tru64 UNIX operating system and are sup-
         ported only for backward compatibility with operating system ver-
         sions earlier than DIGITAL UNIX Version 4.0: vedquota(8),
         vncheck(8), vquot(8), vquota(1), vquotaon(8), vquotaoff(8), and
         vrepquota(8).        The operations supported by these retiring commands
         are also supported by the following commands: edquota(8), ncheck(8),
         quot(8), quota(1), quotaon(8), quotaoff(8), and repquota(8).



  The Advanced File System Utilities are licensed separately from the Tru64
  UNIX operating system and must be purchased separately.  Both the software
  and the reference pages are contained in the separately-licensed product,
  and must be installed before being used. The following list summarizes the
  Advanced File System Utilities commands:

  addvol
      Adds a volume to an existing file domain. See addvol(8).

  advfsd
      Starts the AdvFS graphical user interface (GUI) daemon.

  balance
      Balances the percentage of used space between volumes. See balance(8).

  clonefset
      Creates a read-only copy of a fileset. See clonefset(8).

  dtadvfs
      Starts the AdvFS graphical user interface.  See dtadvfs(8).

  migrate
      Moves the location of a file within a file domain.  See migrate(8).

  mktrashcan
      Attaches directories to a trashcan directory, which stores deleted
      files.  See mktrashcan(8).

  rmtrashcan
      Detaches a specified directory from a trashcan directory.         See
      mktrashcan(8).

  rmvol
      Removes a volume from an existing file domain. See rmvol(8).

  shtrashcan
      Shows the trashcan directory, if any, that is attached to a specified
      directory. See mktrashcan(8).

  stripe
      Interleaves storage allocation of a file across two or more volumes
      within a file domain.  See stripe(8).

RESTRICTIONS

  When configuring root on AdvFS, set up one partition and one fileset in the
  file domain. Multiple volumes are not supported on root.

EXAMPLES

  The following example creates a file domain called accounts_dmn, which con-
  tains rz1c as the initial volume.  The example also creates two filesets,
  credit_fs and debit_fs and mounts both filesets.

       # mkfdmn /dev/rz1c accounts_dmn
       # mkfset accounts_dmn credit_fs
       # mkfset accounts_dmn debit_fs
       # mkdir /mnt/credit /mnt/debit
       # mount -t advfs accounts_dmn#credit_fs /mnt/credit
       # mount -t advfs accounts_dmn#debit_fs /mnt/debit

SEE ALSO

  advfs_err(4), fdmns(4), mkfdmn(8), mkfset(8), mkdir(1), mount(8)

论坛徽章:
0
4 [报告]
发表于 2004-08-19 17:10 |只看该作者

mount问题请教!

我刚才自己也做了些尝试,正好是和2楼的朋友的方法一样
只是现在还有一个问题:
这样做,就只是在/dev/rz17g上新建了一个domain
第2块盘的g分区是用起来了。那h分区怎么办呢?
如果我现在想把h分区也放在跟g分区同一个domain里
我该怎么做呢?
我说的是现在该怎么做,就是说如何能把h分区也放到我刚才新建的domain里?
感谢大家这么热心的给我答案
非常感谢!!!

论坛徽章:
0
5 [报告]
发表于 2004-08-19 17:22 |只看该作者

mount问题请教!

由于现在盘上没有重要数据,所以我就直接把/dev/rz17c重做了个domain
请问我这样做,原来在g区的那个domain还会保留么?
另外,如果我盘上有重要的数据,能不能有其他方法
把h区直接加到原来那个domain里?


感谢大家支持,感谢大家帮助!!!

论坛徽章:
2
荣誉会员
日期:2011-11-23 16:44:17拜羊年徽章
日期:2015-03-03 16:15:43
6 [报告]
发表于 2004-08-19 17:57 |只看该作者

mount问题请教!

做分区之前,首先要对分区如何划分方法进行全面了解,每个分区要做什么先做好合理的规划,如果乱来,原来的分区上的数据就有可能被破坏的。
如果对/dev/rz17c做了domain的话,就是rz17c整块盘的分区,而原来的g分区估计被破坏掉了。

论坛徽章:
2
荣誉会员
日期:2011-11-23 16:44:17拜羊年徽章
日期:2015-03-03 16:15:43
7 [报告]
发表于 2004-08-19 18:00 |只看该作者

mount问题请教!

原帖由 "菜芽" 发表:
我刚才自己也做了些尝试,正好是和2楼的朋友的方法一样
只是现在还有一个问题:
这样做,就只是在/dev/rz17g上新建了一个domain
第2块盘的g分区是用起来了。那h分区怎么办呢?
如果我现在想把h分区也放在跟g分区..........


#addvol /dev/rz17g db_domain


如果想移出
#rmvol /dev/rz17g db_domain

论坛徽章:
0
8 [报告]
发表于 2004-08-19 20:35 |只看该作者

mount问题请教!

如果rz17g上有重要数据,可以这样作:

#cd /etc/fdmns  
#mkdir   test_dmn
#cd   test_dmn
#ln -s /dev/rz17g
#cd ..
#showfsets  test_dmn  (显示原来建在rz17g上的set名,假设显示hello)
#mount  test_dmn#hello /mnt
#cd /mnt
这样就可以用rz17g上的数据了。

论坛徽章:
0
9 [报告]
发表于 2004-08-25 14:41 |只看该作者

mount问题请教!

原帖由 "菜芽" 发表:
我刚才自己也做了些尝试,正好是和2楼的朋友的方法一样
只是现在还有一个问题:
这样做,就只是在/dev/rz17g上新建了一个domain
第2块盘的g分区是用起来了。那h分区怎么办呢?
如果我现在想把h分区也放在跟g分区..........

实现这个功能需要花钱买许可证

论坛徽章:
0
10 [报告]
发表于 2004-08-26 11:46 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP