免费注册 查看新帖 |

Chinaunix

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

给系统做完RAID,发现一点小问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-10-18 15:19 |只看该作者 |倒序浏览
V440,兄弟单位在使用的时候,发现系统不能使用了,我们拿来检查,发现磁盘坏了一块,并且刚好就是装OS的磁盘,于是把坏磁盘拔了,这个时候V440只剩下3块磁盘,于是用第一块磁盘装了一个SPARC 9,另外2个磁盘做了一个硬件RAID1

  但是问题来了,好不容易同步完,看来一下系统


format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,700000/scsi@2/sd@0,0
       1. c1t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,700000/scsi@2/sd@1,0

RAID1后能看到一块磁盘
Specify disk (enter its number): 1
selecting c1t1d0
[disk formatted]


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> p


PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit
partition> p
Current partition table (original):
Total disk cylinders available: 24620 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -    90      128.37MB    (91/0/0)      262899
  1       swap    wu      91 -   181      128.37MB    (91/0/0)      262899
  2     backup    wu       0 - 24619       33.92GB    (24620/0/0) 71127180
  3 unassigned    wm       0                0         (0/0/0)            0
  4 unassigned    wm       0                0         (0/0/0)            0
  5 unassigned    wm       0                0         (0/0/0)            0
  6        usr    wm     182 - 24619       33.67GB    (24438/0/0) 70601382
  7 unassigned    wm       0                0         (0/0/0)            0


但是发现这2个磁盘以前好象装了一些东西,觉得很奇怪,想如何把做RAID1磁盘挂起来
mkdir /data
# mount /data /dev/rdsk/c1t1d0
mount: 安装点 /dev/rdsk/c1t1d0 不存在。
觉得非常奇怪,于是想觉得不能挂起,就把他给删除了也行
newfs /dev/rdsk/c1t1d0
newfs: /dev/rdsk/c1t1d0: 无此文件或目录
# which newfs
/usr/sbin/newfs
# newfs /dev/dsk/c1t1d0
newfs: /dev/dsk/c1t1d0: 无此文件或目录


也不行,都不知道应该怎么办!

论坛徽章:
0
2 [报告]
发表于 2007-10-18 15:32 |只看该作者
newfs /dev/rdsk/c1t1d0/s6

论坛徽章:
0
3 [报告]
发表于 2007-10-18 15:35 |只看该作者
原帖由 race 于 2007-10-18 15:32 发表
newfs /dev/rdsk/c1t1d0/s6



which newfs
/usr/sbin/newfs
# newfs /dev/rdsk/c1t1d0/s6
newfs: /dev/rdsk/c1t1d0/s6: 无此文件或目录


   还是不行

   谢谢斑竹的无私帮助

论坛徽章:
0
4 [报告]
发表于 2007-10-18 15:41 |只看该作者
我打错了 ,应该是
newfs /dev/rdsk/c1t1d0s6
看来你是头回做这个

论坛徽章:
0
5 [报告]
发表于 2007-10-18 15:42 |只看该作者
newfs  /dev/rdsk/c1t1d0s6是这样.

论坛徽章:
0
6 [报告]
发表于 2007-10-18 15:53 |只看该作者
兄弟我一个小问题,一下惊动了2个斑竹,罪过罪过

   能否斑竹再指点一下,为什么要对s6分区做这个动作就可以解决这个问题,是什么原因呢?

论坛徽章:
0
7 [报告]
发表于 2007-10-18 16:06 |只看该作者
按照2个斑竹的指点,果然成功,但是有点小问题,兄弟不解,请看红色字体

newfs /dev/dsk/c1t1d0s6
newfs: 建构新的文件系统 /dev/rdsk/c1t1d0s6: (y/n)? y
警告:柱面组必须有多个具有给定参数的
         16 柱面
将 cgsize 四舍五入到256
  /dev/rdsk/c1t1d0s6:   在 24438 磁道上,27 扇区的 107 柱面的 70601382 扇区
        34473.3MB 在 764 柱面群组 (32 c/g, 45.14MB/g, 5632 i/g)
超块 (fsck -F ufs -o b=#) 备份在:
32, 92592, 185152, 277712, 370272, 462832, 555392, 647952, 740512, 833072,
初始化柱面组:
...............
最后 10 个柱面组的超级块备份位置:
69707840, 69800400, 69892960, 69985520, 70078080, 70170640, 70263200,
70355760, 70448320, 70540880,
# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,700000/scsi@2/sd@0,0
       1. c1t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,700000/scsi@2/sd@1,0
Specify disk (enter its number): 1
selecting c1t1d0
[disk formatted]


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> p


PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit
partition> p
Current partition table (original):
Total disk cylinders available: 24620 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -    90      128.37MB    (91/0/0)      262899
  1       swap    wu      91 -   181      128.37MB    (91/0/0)      262899
  2     backup    wu       0 - 24619       33.92GB    (24620/0/0) 71127180
  3 unassigned    wm       0                0         (0/0/0)            0
  4 unassigned    wm       0                0         (0/0/0)            0
  5 unassigned    wm       0                0         (0/0/0)            0
  6        usr    wm     182 - 24619       33.67GB    (24438/0/0) 70601382
  7 unassigned    wm       0                0         (0/0/0)            0

partition> label
Ready to label disk, continue? y


怎么系统还有这2个分区?不迷惑,我对LINUX用的比较多,看到这个实在不太了解

论坛徽章:
0
8 [报告]
发表于 2007-10-18 16:07 |只看该作者
不用多说了,想知道的话还是找本SUN的书看一下。比如SUN培训材料SA-238 239.
你对SUN的硬盘分区都不明白,就使用format和newfs,早晚会把好盘上的数据弄丢了。

论坛徽章:
0
9 [报告]
发表于 2007-10-18 16:09 |只看该作者
这个上面的资料就是不要的,我想做的也是想把RAID1上的2个磁盘上的资料FORMAT掉

论坛徽章:
0
10 [报告]
发表于 2007-10-18 16:14 |只看该作者
SOLARIS 239,299看过,上面讲到分区,但是上面的内容还是无法满足我的需要
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP