Advertisement
mightyroot

VMWare Trouble Volume Name

Aug 17th, 2012
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Awk 3.57 KB | None | 0 0
  1. ~ # esxcli storage filesystem list
  2. Mount Point                                        Volume Name  UUID                                
  3. -------------------------------------------------  -----------  ------------------------------
  4.                                                    datastore1   502d10a5-10c40f3f-c6c7-
  5.                                                    datastore1   4fc5fa1b-af99fbde-a6fd-
  6.  
  7.  
  8. ~ # esxcli storage filesystem mount --volume-label=datastore1
  9. ~ # esxcli storage filesystem list
  10. Mount Point                                        Volume Name  UUID                                
  11. -------------------------------------------------  -----------  ------------------------------
  12. /vmfs/volumes/502d10a5-10c40f3f-c6c7-d067e5e9afa5  datastore1   502d10a5-10c40f3f-c6c7-
  13.                                                    datastore1   4fc5fa1b-af99fbde-a6fd-
  14.  
  15. ~ # vim-cmd /hostsvc/datastore/rename datastore1 datastore0
  16. ~ # esxcli storage filesystem list
  17. Mount Point                                        Volume Name  UUID                                
  18. -------------------------------------------------  -----------  ------------------------------
  19. /vmfs/volumes/502d10a5-10c40f3f-c6c7-d067e5e9afa5  datastore0   502d10a5-10c40f3f-c6c7-
  20.                                                    datastore1   4fc5fa1b-af99fbde-a6fd-
  21.  
  22.  
  23. ~ # esxcli storage filesystem mount --volume-label=datastore1
  24. ~ # esxcli storage filesystem list
  25. Mount Point                                        Volume Name  UUID                                
  26. -------------------------------------------------  -----------  ------------------------------
  27. /vmfs/volumes/502d10a5-10c40f3f-c6c7-d067e5e9afa5  datastore0   502d10a5-10c40f3f-c6c7-
  28. /vmfs/volumes/4fc5fa1b-af99fbde-a6fd-d067e5e9afa5  datastore1   4fc5fa1b-af99fbde-a6fd-
  29.  
  30.  
  31. ~ # esxcli storage core device list
  32. t10.ATA_____WDC_WD2003FYYS2D02W0B1________________________WD2DWCAY00289066
  33.    Display Name: Local ATA Disk (t10.ATA_____WDC_WD2003FYYS2D02W0B1________________________WD2DWCAY00289066)
  34.    Has Settable Display Name: true
  35.    Size: 1907729
  36.    Device Type: Direct-Access
  37.    Multipath Plugin: NMP
  38.    Devfs Path: /vmfs/devices/disks/t10.ATA_____WDC_WD2003FYYS2D02W0B1________________________WD2DWCAY00289066
  39.    Vendor: ATA    
  40.    Model: WDC WD2003FYYS-0
  41.  
  42.  
  43. Create new VMFS Volume:
  44.  
  45. 1. Formating Partition:
  46.  
  47. #fdisk -u /vmfs/devices/disks/naa.60901234567890123456789012345678
  48.  
  49. Type p and press Enter to list partition information.
  50. Type d and press Enter to delete existing partition information.
  51. Type n and press Enter for new partition.
  52. Type p and press Enter for a primary partition.
  53. Type 1 and press Enter.
  54. For the First cylinder prompt, press Enter for the default.
  55. For last cylinder or +size, press Enter for the default.
  56. Type t and press Enter to change volume type.
  57. Type 1 and press Enter to select the first partition.
  58. Type fb and press Enter.
  59. ###  Note: fb is the hexadecimal code for VMFS volumes.
  60. Type x and press Enter to enter Expert mode.
  61. Type b and press Enter to start the process of changing the starting block of the partition.
  62. Type 1 and press Enter to select the first partition.
  63. Type 128 and press Enter to set the starting block to 128.
  64. Type w and press Enter to save the changes and exit fdisk.
  65.  
  66. 2. To list the newly created partition information:
  67. #fdisk -lu /vmfs/devices/disks/naa.60901234567890123456789012345678
  68.  
  69. 3. For ESXi 5.0 you can create a datastore with the VMFS-5 file system using the command:
  70.  
  71. #vmkfstools -C vmfs5 -b 1m -S NewDatastore /vmfs/devices/disks/naa.60901234567890123456789012345678:1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement