免费注册 查看新帖 |

Chinaunix

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

如果已经把一块磁盘分区挂载,还能growfs吗? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-04 09:59 |只看该作者 |倒序浏览
小弟自知知识匮乏,所以请不要 仅仅回复 请小弟补习基础知识了。\r\n\r\n前面的人已经把1个HD(c0t1)分好挂载到home2上了,而且都已经有数据了。\r\n请问能不能不损坏原有数据,另加一块HD让原来的分区扩容? 在本bbs搜索了svm和growfs的帖子\r\n没看见相关信息,才发贴。\r\n\r\n系统信息:\r\n                       Solaris 10 11/06 s10s_u3wos_10 SPARC\r\n           Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.\r\n                        Use is subject to license terms.\r\n                           Assembled 14 November 2006\r\n分区信息:\r\n\r\nFilesystem             size   used  avail capacity  Mounted on\r\n/dev/dsk/c0t0d0s0       15G    15G     0K   100%    /\r\n/devices                 0K     0K     0K     0%    /devices\r\nctfs                     0K     0K     0K     0%    /system/contract\r\nproc                     0K     0K     0K     0%    /proc\r\nmnttab                   0K     0K     0K     0%    /etc/mnttab\r\nswap                   7.7G   1.5M   7.7G     1%    /etc/svc/volatile\r\nobjfs                    0K     0K     0K     0%    /system/object\r\nsharefs                  0K     0K     0K     0%    /etc/dfs/sharetab\r\nfd                       0K     0K     0K     0%    /dev/fd\r\nswap                   7.7G    40K   7.7G     1%    /tmp\r\nswap                   7.7G    56K   7.7G     1%    /var/run\r\n/dev/dsk/c0t1d0s6       67G   1.1G    65G     2%    /export/home2\r\n\r\n\r\n补充下: t1硬盘空间全部划分,挂给home2了。\r\n不知道可否没有可用空间时,创建一个卷,把原来的T1和要增加的硬盘空间合并在一起,\r\n还要保证保留原T1上的数据。。。\r\n\r\n系统从别人那里接手,原来没有创建过svm.\r\n新增加一块硬盘,请问可否在保留c0t1d0s6数据的前提下,\r\n把新硬盘的空间和原c0t1d0s6的空间一起合并增加\r\n\r\n看过新建meta然后管理所有卷的,不知道我这种情况可行否?\r\n或者有其他融通的迁移方法。恳请大虾们指点。\n\n[ 本帖最后由 m@qintoshi 于 2010-1-4 11:08 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2010-01-04 10:03 |只看该作者
metadevice的可以growfs,直接在cxtxdxsx上建立的文件系统不可以growfs

论坛徽章:
0
3 [报告]
发表于 2010-01-04 11:30 |只看该作者
先转成metadevice,再扩\r\nman growfs\r\n
\r\nEXAMPLES\r\n     Example 1: Expanding nonmetadevice slice  for  /export  file\r\n     system\r\n\r\n     The following example expands a nonmetadevice slice for  the\r\n     /export  file  system.  In this example, the existing slice,\r\n     /dev/dsk/c1t0d0s3, is converted to  a  metadevice  so  addi-\r\n     tional slices can be concatenated.\r\n\r\n     # metainit -f d8 2 1 c1t0d0s3 1 c2t0d0s3\r\n     # umount /export\r\n\r\n     Example 2: Associate /export with new metadevice\r\n\r\n     Edit the /etc/vfstab file to change the entry for /export to\r\n     the newly defined metadevice, d8.\r\n\r\n     # mount /export\r\n     # growfs -M /export /dev/md/rdsk/d8\r\n

论坛徽章:
0
4 [报告]
发表于 2010-01-05 09:35 |只看该作者

虚心再次请教各位

我这样做对不对.\r\n\r\n1. 先建原有硬盘c0t0d0s6的metadb, # metadb -a -f c0t0d0s6\r\n2. 装新硬盘,然后newfs 出来到 c0t1d0s6\r\n3. 建立新增硬盘c0t1d0s6的metadb # metadb -a -f c0t1d0s6\r\n4. 转换为metadevice # metainit -f d0 2 1 c0t1d0s6 1 c1t0d0s6\r\n    umount原有挂载点 # umount /export/home2\r\n5. 修改vfstab,然后growfs\r\n    # mount /export/home2\r\n    # growfs -M /export /dev/md/rdsk/d0\r\n\r\n请大家指点,且问这样做不会对c0t0d0s6上的数据有影响,而且把c0t1d0s6的容量并在一起\r\n给/export/home2了吧?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP