Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ~ # esxcli storage filesystem list
- Mount Point Volume Name UUID
- ------------------------------------------------- ----------- ------------------------------
- datastore1 502d10a5-10c40f3f-c6c7-
- datastore1 4fc5fa1b-af99fbde-a6fd-
- ~ # esxcli storage filesystem mount --volume-label=datastore1
- ~ # esxcli storage filesystem list
- Mount Point Volume Name UUID
- ------------------------------------------------- ----------- ------------------------------
- /vmfs/volumes/502d10a5-10c40f3f-c6c7-d067e5e9afa5 datastore1 502d10a5-10c40f3f-c6c7-
- datastore1 4fc5fa1b-af99fbde-a6fd-
- ~ # vim-cmd /hostsvc/datastore/rename datastore1 datastore0
- ~ # esxcli storage filesystem list
- Mount Point Volume Name UUID
- ------------------------------------------------- ----------- ------------------------------
- /vmfs/volumes/502d10a5-10c40f3f-c6c7-d067e5e9afa5 datastore0 502d10a5-10c40f3f-c6c7-
- datastore1 4fc5fa1b-af99fbde-a6fd-
- ~ # esxcli storage filesystem mount --volume-label=datastore1
- ~ # esxcli storage filesystem list
- Mount Point Volume Name UUID
- ------------------------------------------------- ----------- ------------------------------
- /vmfs/volumes/502d10a5-10c40f3f-c6c7-d067e5e9afa5 datastore0 502d10a5-10c40f3f-c6c7-
- /vmfs/volumes/4fc5fa1b-af99fbde-a6fd-d067e5e9afa5 datastore1 4fc5fa1b-af99fbde-a6fd-
- ~ # esxcli storage core device list
- t10.ATA_____WDC_WD2003FYYS2D02W0B1________________________WD2DWCAY00289066
- Display Name: Local ATA Disk (t10.ATA_____WDC_WD2003FYYS2D02W0B1________________________WD2DWCAY00289066)
- Has Settable Display Name: true
- Size: 1907729
- Device Type: Direct-Access
- Multipath Plugin: NMP
- Devfs Path: /vmfs/devices/disks/t10.ATA_____WDC_WD2003FYYS2D02W0B1________________________WD2DWCAY00289066
- Vendor: ATA
- Model: WDC WD2003FYYS-0
- Create new VMFS Volume:
- 1. Formating Partition:
- #fdisk -u /vmfs/devices/disks/naa.60901234567890123456789012345678
- Type p and press Enter to list partition information.
- Type d and press Enter to delete existing partition information.
- Type n and press Enter for new partition.
- Type p and press Enter for a primary partition.
- Type 1 and press Enter.
- For the First cylinder prompt, press Enter for the default.
- For last cylinder or +size, press Enter for the default.
- Type t and press Enter to change volume type.
- Type 1 and press Enter to select the first partition.
- Type fb and press Enter.
- ### Note: fb is the hexadecimal code for VMFS volumes.
- Type x and press Enter to enter Expert mode.
- Type b and press Enter to start the process of changing the starting block of the partition.
- Type 1 and press Enter to select the first partition.
- Type 128 and press Enter to set the starting block to 128.
- Type w and press Enter to save the changes and exit fdisk.
- 2. To list the newly created partition information:
- #fdisk -lu /vmfs/devices/disks/naa.60901234567890123456789012345678
- 3. For ESXi 5.0 you can create a datastore with the VMFS-5 file system using the command:
- #vmkfstools -C vmfs5 -b 1m -S NewDatastore /vmfs/devices/disks/naa.60901234567890123456789012345678:1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement