Posted on January 24, 2014 at 12:32 pm
Show what is available on the physical disks:
pvdisplay |
Example output:
--- Physical volume --- PV Name /dev/md3 VG Name VG_XenStorage-14d4c49b-a46c-3e9d-6102-6a531b2be7d9 PV Size 1.81 TB / not usable 7.19 MB Allocatable yes PE Size (KByte) 4096 Total PE 474880 Free PE 458883 Allocated PE 15997 PV UUID 1y7deB-2V4S-AQBN-TRlM-1cT4-3WD1-1LZNE5 |
Show attached and unattached storage repositories:
xe pbd-list |
Example output:
uuid ( RO) : ed949548-14f7-17e2-812d-e20da19218d3 host-uuid ( RO): 12345678-60d1-44b1-91ed-123456789012 sr-uuid ( RO): 5dd4c7db-a464-5bd6-6933-3d5a2b431413 device-config (MRO): device: /dev/md3 currently-attached ( RO): true uuid ( RO) : 17e2248e-a6e7-f329-d2d1-522074b19416 host-uuid ( RO): 12345678-60d1-44b1-91ed-123456789012 sr-uuid ( RO): 26548342-1a61-316b-1916-20bdb0be3914 device-config (MRO): location: /dev/xapi/cd currently-attached ( RO): true |
Show storage repositories:
xe sr-list |
Example output:
uuid ( RO) : 1a9a131f-3265-226b-29a6-20bd20e271b1 name-label ( RW): DVD drives name-description ( RW): Physical DVD drives host ( RO): server-host.eu type ( RO): udev content-type ( RO): iso uuid ( RO) : 2b152724-1b5c-2e3c-e5e6-0e54094bd231 name-label ( RW): Removable storage name-description ( RW): host ( RO): server-host.eu type ( RO): udev content-type ( RO): disk |
Show storage repositories with type = LVM:
xe sr-list type=lvm |
Attach a storage repository:
xe pbd-plug uuid=26548342-1a61-316b-1916-20bdb0be3914 |
Detach a storage repository:
xe pbd-unplug uuid=26548342-1a61-316b-1916-20bdb0be3914 |
Completely delete a storage repository:
xe pbd-unplug uuid=26548342-1a61-316b-1916-20bdb0be3914 xe pbd-destroy uuid=26548342-1a61-316b-1916-20bdb0be3914 xe sr-forget uuid=26548342-1a61-316b-1916-20bdb0be3914 |
Recognize a storage repository:
xe sr-introduce uuid=26548342-1a61-316b-1916-20bdb0be3914 type=lvm name-label="Local storage" content-type=user |
Show a list of logical volumes:
vgs |
Example output:
VG #PV #LV #SN Attr VSize VFree VG_XenStorage-14d4c49b-a46c-3e9d-6102-6a531b2be7d9 1 4 0 wz--n- 1.81T 1.75T |
Restore a VG:
lvm vgcfgrestore VG_XenStorage-14d4c49b-a46c-3e9d-6102-6a531b2be7d9 |
Make a volume active:
lvm vgchange -ay VG_XenStorage-14d4c49b-a46c-3e9d-6102-6a531b2be7d9 |
Scan for physical devices:
lvm pvscan lvm vgscan |
Updated on November 19, 2016 at 12:05 pm
Other Posts
- Detect VMWare Virtual Machine
- Detect Microsoft Virtual PC Virtual Machine
- Fix MariaDB 10.5 "Can't create test file" errors
- Use MariaDB and MySQL without Password (MySQL Backup)
- Check if a Trademark is already registered
- Make name server address permanent in /etc/resolv.conf
- InnoSetup error the servicemanager is not available
- InnoSetup disable DesktopIcon via command-line
Updated Posts
- Delphi 10 Berlin System.Hash MD5 SHA1 SHA2 Hash
- Use cURL to check for SSL certificate issues:
- How to test Socks5 proxy with cURL
- How to use variables in a sed command
- Best Socks5 Servers for Linux Debian
- Error NO_PUBKEY in Google Cloud Debian Packages Update
- How to Run a Command with Time Limit in Bash Linux
- MySQL InnoDB log sequence number is in the future