xenserver 引入一个本地存储

  1. pvscan

    PV /dev/sdb    VG VG_XenStorage-6a6bee43-28bd-9690-f792-dfa1dfb939b1   lvm2 [136.72 GB / 86.61 GB free]

     PV /dev/sda3   VG VG_XenStorage-afd1c6a7-2d3b-b56a-a2ee-2d3ee8d6fe24   lvm2 [128.72 GB / 78.61 GB free]

     Total: 2 [265.44 GB] / in use: 2 [265.44 GB] / in no VG: 0 [0   ]


2. xe sr-introduce uuid=6a6bee43-28bd-9690-f792-dfa1dfb939b1 type=lvm name-label="local storega 2" content-type=user


3.xe hostlist

  获取主机UUID:162f1166-6ff6-4e90-8847-14e26cb2d7bd

4. xe pbd-create sr-uuid=6a6bee43-28bd-9690-f792-dfa1dfb939b1 device-config:device=/dev/sdb host-uuid=162f1166-6ff6-4e90-8847-14e26cb2d7bd 

bce13bf6-3d12-828a-9580-aaed0fa06a9a  返回新的uuid


5. xe pbd-plug uuid=bce13bf6-3d12-828a-9580-aaed0fa06a9a

你可能感兴趣的:(local,storage,2,xenserver)