Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3124720
  • 博文数量: 710
  • 博客积分: 14546
  • 博客等级: 上将
  • 技术积分: 6738
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-30 10:20
文章分类

全部博文(710)

文章存档

2016年(1)

2014年(7)

2013年(22)

2012年(227)

2011年(322)

2009年(119)

2008年(12)

分类: 虚拟化

2012-04-09 18:02:54

add ssd
1.分区

点击(此处)折叠或打开

  1. [root@xen-01 ~]# fdisk /dev/sdc
  2. The number of cylinders for this disk is set to 15597.
  3. There is nothing wrong with that, but this is larger than 1024,
  4. and could in certain setups cause problems with:
  5. 1) software that runs at boot time (e.g., old versions of LILO)
  6. 2) booting and partitioning software from other OSs
  7. (e.g., DOS FDISK, OS/2 FDISK)

  8. Command (m for help): p

  9. Disk /dev/sdc: 128.2 GB, 128297884672 bytes
  10. 255 heads, 63 sectors/track, 15597 cylinders
  11. Units = cylinders of 16065 * 512 = 8225280 bytes

  12. Device Boot Start End Blocks Id System

  13. Command (m for help): n
  14. Command action
  15. e extended
  16. p primary partition (1-4)
  17. p
  18. Partition number (1-4): 1
  19. First cylinder (1-15597, default 1):
  20. Using default value 1
  21. Last cylinder or +size or +sizeM or +sizeK (1-15597, default 15597):
  22. Using default value 15597

  23. Command (m for help): w
  24. The partition table has been altered!

  25. Calling ioctl() to re-read partition table.
  26. Syncing disks.
2.格式化分区

点击(此处)折叠或打开

  1. [root@xen-01 ~]# mkfs.ext3 /dev/sdc1
  2. mke2fs 1.39 (29-May-2006)
  3. Filesystem label=
  4. OS type: Linux
  5. Block size=4096 (log=2)
  6. Fragment size=4096 (log=2)
  7. 15663104 inodes, 31320717 blocks
  8. 1566035 blocks (5.00%) reserved for the super user
  9. First data block=0
  10. Maximum filesystem blocks=0
  11. 956 block groups
  12. 32768 blocks per group, 32768 fragments per group
  13. 16384 inodes per group
  14. Superblock backups stored on blocks:
  15. 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
  16. 4096000, 7962624, 11239424, 20480000, 23887872

  17. Writing inode tables: 154/956
3.创建storage repository(sr)

点击(此处)折叠或打开

  1. [root@xen-01 ~]# xe sr-create type=ext shared=false device-config:device=/dev/sdc1 name-label=SSD
------注释
------lvmohba:hba-connect-storage
------ext:local filesystem

remove ssd
研究了大半天,才搞定了!
1.查看uuid

点击(此处)折叠或打开

  1. #xe pbd-list
  2. uuid ( RO) : 942c15a6-a95f-e7e1-b5c3-fddb668cd0c6
  3. host-uuid ( RO): 7cd5a93b-d754-4274-aee2-a465734bad2b
  4. sr-uuid ( RO): d6beec8f-2175-89d9-a7d3-a600084711b4
  5. device-config (MRO): device: /dev/sdc1
  6. currently-attached ( RO): true
2.删除pbd-uuid

点击(此处)折叠或打开

  1. #xe pbd-unplug uuid=942c15a6-a95f-e7e1-b5c3-fddb668cd0c6
3.删除sr-uuid

点击(此处)折叠或打开

  1. #xe sr-forget uuid=d6beec8f-2175-89d9-a7d3-a600084711b4

阅读(1569) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~