免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4045 | 回复: 0

为什么pvremove执行不下去? [复制链接]

论坛徽章:
0
发表于 2008-03-09 00:14 |显示全部楼层
重新启动电脑之后执行以下步骤
[root@ora1 ~]# df -lh
Filesystem            容量  已用 可用 已用% 挂载点
/dev/sda9             494M  110M  359M  24% /
/dev/sda1              99M  8.5M   86M  10% /boot
none                  316M     0  316M   0% /dev/shm
/dev/sda8             494M   11M  458M   3% /home
/dev/sda2              12G  6.6G  4.4G  61% /opt
/dev/sda7            1012M  443M  518M  47% /tmp
/dev/sda3             6.0G  2.7G  3.0G  48% /usr
/dev/sda5             1.5G  108M  1.3G   8% /var
[root@ora1 ~]# fdisk -l

Disk /dev/sda: 24.6 GB, 24696061952 bytes
255 heads, 63 sectors/track, 3002 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        1543    12289725   83  Linux
/dev/sda3            1544        2326     6289447+  83  Linux
/dev/sda4            2327        3002     5429970    5  Extended
/dev/sda5            2327        2522     1574338+  83  Linux
/dev/sda6            2523        2685     1309266   82  Linux swap
/dev/sda7            2686        2816     1052226   83  Linux
/dev/sda8            2817        2881      522081   83  Linux
/dev/sda9            2882        2946      522081   83  Linux

Disk /dev/sdb: 524 MB, 524288000 bytes
64 heads, 32 sectors/track, 500 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         287      293872   8e  Linux LVM

Disk /dev/sdc: 524 MB, 524288000 bytes
64 heads, 32 sectors/track, 500 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1         287      293872   8e  Linux LVM

Disk /dev/sdd: 524 MB, 524288000 bytes
64 heads, 32 sectors/track, 500 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1         287      293872   8e  Linux LVM

Disk /dev/sde: 524 MB, 524288000 bytes
64 heads, 32 sectors/track, 500 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1               1         500      511984   8e  Linux LVM

Disk /dev/sdf: 524 MB, 524288000 bytes
64 heads, 32 sectors/track, 500 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdf1               1         500      511984   8e  Linux LVM

Disk /dev/sdg: 524 MB, 524288000 bytes
64 heads, 32 sectors/track, 500 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdg1               1         500      511984   8e  Linux LVM
[root@ora1 ~]# lvdisplay
  --- Logical volume ---
  LV Name                /dev/oradata/data
  VG Name                oradata
  LV UUID                H71V9u-Ffa2-3xsJ-FUlD-zTZb-T3ut-8Wqiwh
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                816.00 MB
  Current LE             204
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:0
   
[root@ora1 ~]# pvdisplay
  --- Physical volume ---
  PV Name               /dev/sdb1
  VG Name               oradata
  PV Size               284.00 MB / not usable 0   
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              71
  Free PE               3
  Allocated PE          68
  PV UUID               M3E5Na-Rh1v-s4wK-J4FJ-ogCg-EHjl-OKatfw
   
  --- Physical volume ---
  PV Name               /dev/sdc1
  VG Name               oradata
  PV Size               284.00 MB / not usable 0   
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              71
  Free PE               3
  Allocated PE          68
  PV UUID               MyzF3H-gYxJ-81u8-Cgap-X1h3-Ng5x-8e6gPz
   
  --- Physical volume ---
  PV Name               /dev/sdd1
  VG Name               oradata
  PV Size               284.00 MB / not usable 0   
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              71
  Free PE               3
  Allocated PE          68
  PV UUID               G8QFMg-OQuG-4Q5y-si3O-Rfpi-GlCk-unG2iH
   
  --- Physical volume ---
  PV Name               /dev/sde1
  VG Name               oradata
  PV Size               496.00 MB / not usable 0   
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              124
  Free PE               124
  Allocated PE          0
  PV UUID               kg2Rvl-lO6a-hKcW-WKu1-4xTo-l1CU-p5dpYb
   
  --- Physical volume ---
  PV Name               /dev/sdf1
  VG Name               oradata
  PV Size               496.00 MB / not usable 0   
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              124
  Free PE               124
  Allocated PE          0
  PV UUID               ekd2En-YM8p-0EaG-ux1I-gPAB-pfBW-9bOoM8
   
  --- Physical volume ---
  PV Name               /dev/sdg1
  VG Name               oradata
  PV Size               496.00 MB / not usable 0   
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              124
  Free PE               124
  Allocated PE          0
  PV UUID               hsgX2J-08Jo-r2ka-b1js-OhLW-gIz1-3WAUKj
   
[root@ora1 ~]# pvremove /dev/sdc1 /dev/sdf1
  /dev/cdrom: open failed: 只读文件系统
  Attempt to close device '/dev/cdrom' which is not open.
  Can't pvremove physical volume "/dev/sdc1" of volume group "oradata" without -ff
  Can't pvremove physical volume "/dev/sdf1" of volume group "oradata" without -ff
[root@ora1 ~]# pvremove -ff /dev/sdc1 /dev/sdf1
  /dev/cdrom: open failed: 只读文件系统
  Attempt to close device '/dev/cdrom' which is not open.
Really WIPE LABELS from physical volume "/dev/sdc1" of volume group "oradata" [y/n]? y
  WARNING: Wiping physical volume label from /dev/sdc1 of volume group "oradata"
  Can't open /dev/sdc1 exclusively.  Mounted filesystem?


1)为什么不能执行,如何才能执行?
2)/dev/cdrom: open failed: 只读文件系统
  Attempt to close device '/dev/cdrom' which is not open,为什么有这个提示?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP