add ssd
1.分区
- [root@xen-01 ~]# fdisk /dev/sdc
- The number of cylinders for this disk is set to 15597.
- There is nothing wrong with that, but this is larger than 1024,
- and could in certain setups cause problems with:
- 1) software that runs at boot time (e.g., old versions of LILO)
- 2) booting and partitioning software from other OSs
- (e.g., DOS FDISK, OS/2 FDISK)
- Command (m for help): p
- Disk /dev/sdc: 128.2 GB, 128297884672 bytes
- 255 heads, 63 sectors/track, 15597 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Device Boot Start End Blocks Id System
- Command (m for help): n
- Command action
- e extended
- p primary partition (1-4)
- p
- Partition number (1-4): 1
- First cylinder (1-15597, default 1):
- Using default value 1
- Last cylinder or +size or +sizeM or +sizeK (1-15597, default 15597):
- Using default value 15597
- Command (m for help): w
- The partition table has been altered!
- Calling ioctl() to re-read partition table.
- Syncing disks.
2.格式化分区
- [root@xen-01 ~]# mkfs.ext3 /dev/sdc1
- mke2fs 1.39 (29-May-2006)
- Filesystem label=
- OS type: Linux
- Block size=4096 (log=2)
- Fragment size=4096 (log=2)
- 15663104 inodes, 31320717 blocks
- 1566035 blocks (5.00%) reserved for the super user
- First data block=0
- Maximum filesystem blocks=0
- 956 block groups
- 32768 blocks per group, 32768 fragments per group
- 16384 inodes per group
- Superblock backups stored on blocks:
- 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
- 4096000, 7962624, 11239424, 20480000, 23887872
- Writing inode tables: 154/956
3.创建storage repository(sr)
- [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
- #xe pbd-list
- uuid ( RO) : 942c15a6-a95f-e7e1-b5c3-fddb668cd0c6
- host-uuid ( RO): 7cd5a93b-d754-4274-aee2-a465734bad2b
- sr-uuid ( RO): d6beec8f-2175-89d9-a7d3-a600084711b4
- device-config (MRO): device: /dev/sdc1
- currently-attached ( RO): true
2.删除pbd-uuid
- #xe pbd-unplug uuid=942c15a6-a95f-e7e1-b5c3-fddb668cd0c6
3.删除sr-uuid
- #xe sr-forget uuid=d6beec8f-2175-89d9-a7d3-a600084711b4
阅读(1610) | 评论(0) | 转发(0) |