频道直达 - 专题 - 新闻 - 技巧 - 组网 - 开发 - 安全 - web编程 - 图像 - 操作系统 - 数据库 - 教育 - 旅游 - 健康 - 时尚 - 驱动 - 软件 - 游戏 - 多媒体 - ERP - 讨论组

从安装硬盘到文件系统的相关命令

来源: 作者:佚名 出处:巧巧读书 2008-04-13 进入讨论组

    可以使用sam工具

    ioscan -funC disk 查看硬盘信息
    ioscan -funC tape 查看磁带信息

    /dev/dsk/c1t5d0
    c表示card instance number 对应系统中的scsi卡
    t表示target号 用于对应物理硬盘
    d表示lun号 系统中看到的逻辑硬盘

    #insf 配置新硬件,他会更新/etc/ioconfig和io_tree中的信息
    #insf -e 去掉旧的硬件信息
    #rmsf /dev/dsk/c1t5d0 删除此硬件

    pvdisplay -v
    vgdisplay -v
    lvdisplay -v

    建pv:
    #pvcreate /dev/rdsk/c0t0d1
    #pvcreate -f /dev/rdsk/c0t0d1 如果磁盘以前属于其他vg,加f

    建vg:
    Create:
    # mkdir /dev/vg01
    # mknod /dev/vg01/group c 64 0x010000 --0x010000中的01表示vg号,是16进制数
    # vgcreate vg01 /dev/dsk/c0t3d0 /dev/dsk/c0t4d0
    Check:
    # vgdisplay -v vg01
    # pvdisplay -v /dev/dsk/c0t3d0
    # pvdisplay -v /dev/dsk/c0t4d0
    The options on vgcreate include:
    -e max_physical_extents Sets the maximum number of physical extents per
    physical volume in a volume group (default is 1016).
    -l max_logical_vols Sets the maximum number of logical volumes allowed
    in a volume group (default 255).
    -p max_physical_vols Sets the maximum number of LVM disks (physical
    volumes) allowed in a volume group (default 16).
    -s physical_extent_size Sets the size, in megabytes, for each physical extent in a
    volume group (default 4).

    建lv:
    Create:
    # lvcreate -L 16 -n myswap vg01
    # lvcreate -L 16 -n myfs1 vg01
    # lvcreate -L 16 -n myfs2 vg01
    Check:
    # vgdisplay -v vg01
    # lvdisplay -v /dev/vg01/myswap
    Options
    -L logical_volume_size The size of the logical volume in megabytes. The size
    specified will be rounded up to the nearest whole
    logical extent. The default is zero.
    -l logical_extents_number The number of logical extents in the logical volume.
    The default is zero.
    -n name A custom name you want to assign to the logicalvolume. The default name follows the naming convention.
    To create a logical volume of 10 logical extents in size:
    # lvcreate -l 10 /dev/vg01
    To create a logical volume with a size of 100 MB:建一个100m的lv
    # lvcreate -L 100 /dev/vg01
    To create a logical volume with a nonstandard name:
    # lvcreate -L 16 -n myswap vg01

    建文件系统:
    # mount -v # reports which file systems are mounted where
    # bdf # also reports file system sizes, and other info
    1. Create the new file system
    # newfs -F hfs /dev/vg01/rmyfs1
    2. Create a mount point directory for the file system
    # mkdir /myfs1
    3. Mount the new file system
    # mount /dev/vg01/myfs1 /myfs1
    4. Add the file system to the /etc/fstab file
    # vi /etc/fstab

更多文章 更多内容请看Windows操作系统安装系统优化大全系统安全设置专题,或进入讨论组讨论。
收藏此文】【 】【打印】【关闭
相关图文阅读
频道图文推荐
健 康 咨 询
时 尚 咨 询
巧巧读书宗旨
相关专题
讨论组问题推荐
站内各频道最新更新文档
站内最新制作专题
热门关键字导读
Photoshop教 程照片处理 照片制作 PS快捷键 抠图
计 算 机 故 障XP系统修复
艺 术 与 设 计设计 流媒体 设计欣赏 边框
计 算 机 安 全ARP
站内频道文章精选
巧巧电脑频道编辑信箱  告诉我们您想看的专题或文章