免费注册 查看新帖 |

Chinaunix

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

sparc的磁盘分区命令是什么? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-07-14 01:38 |只看该作者 |倒序浏览
就像x86的fdisk一样。

我在测试中把第二块硬盘做成了zfs,结果系统就不认了,即使把它zpool destroy掉,系统还是不认为是ufs。format命令如下:
# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1c,600000/scsi@2/sd@0,0
       1. c0t1d0 <SEAGATE-ST336607LSUN36G-0307-33.92GB>
          /pci@1c,600000/scsi@2/sd@1,0
Specify disk (enter its number):1

partition->print

Current partition table (original):
Total disk sectors available: 71116541 + 16384 (reserved sectors)

Part      Tag    Flag     First Sector        Size        Last Sector
  0        usr    wm                34      33.91GB         71116541
  1 unassigned    wm                 0          0              0
  2 unassigned    wm                 0          0              0
  3 unassigned    wm                 0          0              0
  4 unassigned    wm                 0          0              0
  5 unassigned    wm                 0          0              0
  6 unassigned    wm                 0          0              0
  8   reserved    wm          71116542       8.00MB         71132925

注意2(也就是backup那个分区是0),这时候,系统不认这个硬盘。

我的问题是:
如和让这块硬盘回复到原来的具有backup的状态?

在x86可以用fdisk重新做分区表,但是在sparc下有分区表的概念吗?如果有用什么命令可以做到这一点?看起来fdisk只能用于x86的说!!


论坛徽章:
0
2 [报告]
发表于 2006-07-14 09:19 |只看该作者
可以用format的,然后用partition做分区

论坛徽章:
0
3 [报告]
发表于 2006-07-14 09:52 |只看该作者
試一下這個 command 吧!
# prtvtoc /dev/rdsk/c0t0d0 | fmthard -s - /dev/rdsk/c0t1d0
因為 c0t0d0 & c0t1d0 都是同樣 36GB 的 Disk,所以才可以如此執行

论坛徽章:
0
4 [报告]
发表于 2006-07-14 15:06 |只看该作者
fmthard好像不行,执行结果如下:

bash-3.00# prtvtoc /dev/rdsk/c0t0d0s0 | fmthard -s - /dev/rdsk/c0t1d0
fmthard: Partition 0 overlaps partition 2. Overlap is allowed
        only on partition on the full disk partition).

bash-3.00# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1c,600000/scsi@2/sd@0,0
       1. c0t1d0 <SEAGATE-ST336607LSUN36G-0307-33.92GB>
          /pci@1c,600000/scsi@2/sd@1,0
Specify disk (enter its number): 1
partition->print

partition> p
Current partition table (original):
Total disk sectors available: 71116541 + 16384 (reserved sectors)

Part      Tag    Flag     First Sector        Size        Last Sector
  0        usr    wm                34      33.91GB         71116541
  1 unassigned    wm                 0          0              0
  2 unassigned    wm                 0          0              0
  3 unassigned    wm                 0          0              0
  4 unassigned    wm                 0          0              0
  5 unassigned    wm                 0          0              0
  6 unassigned    wm                 0          0              0
  8   reserved    wm          71116542       8.00MB         71132925


结果还是一样,因为第2分区(overlap or backup)不对,所以不能直接镜像,anyway,thanks alot

不知大家还有什么意见。感觉sparc的fdisk不知道应该怎样办啊!!!

论坛徽章:
0
5 [报告]
发表于 2006-07-14 17:10 |只看该作者
got it
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP