lvm2 | Mirror of upstream LVM2 repository
kandi X-RAY | lvm2 Summary
kandi X-RAY | lvm2 Summary
This tree contains the LVM2 and device-mapper tools and libraries. This is development branch, for stable 2.02 release see stable-2.02 branch. For more information about LVM2 read the changelog in the WHATS_NEW file. Installation instructions are in INSTALL. There is no warranty - see COPYING and COPYING.LIB. Tarballs are available from: ftp://sourceware.org/pub/lvm2/ The source code is stored in git: git clone git://sourceware.org/git/lvm2.git mirrored to: git clone git clone git@github.com:lvmteam/lvm2.git. Mailing list for general discussion related to LVM2: linux-lvm@redhat.com Subscribe from Mailing lists for LVM2 development, patches and commits: lvm-devel@redhat.com Subscribe from lvm2-commits@lists.fedorahosted.org (Read-only archive of commits) Subscribe from Mailing list for device-mapper development, including kernel patches and multipath-tools: dm-devel@redhat.com Subscribe from Report upstream bugs at: or open issues at:
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of lvm2
lvm2 Key Features
lvm2 Examples and Code Snippets
Community Discussions
Trending Discussions on lvm2
QUESTION
After reopening STDOUT stream, the message does not display on my screen if calling print() like this:
...ANSWER
Answered 2022-Jan-27 at 21:27Assigning to stdout
(or stdin
or stderr
) is Undefined Behaviour. And in the face of undefined behaviour, odd things happen.
Technically, no more needs to be said. But after I wrote this answer, @zwol noted in a comment that the glibc documentation claims to allow reassignment of standard IO streams. In those terms, this behaviour is a bug. I accept this fact, but the OP was not predicated on the use of glibc, and there are many other standard library implementations which don't make this guarantee. In some of them, assigning to stdout
will raise an error at compile time; in others, it will simply not work or not work consistently. In other words, regardless of glibc, assigning to stdout
is Undefined Behaviour, and software which attempts to do so is, at best, unportable. (And, as we see, even on glibc it can lead to unpredictable output.)
But my curiosity was aroused so I investigated a bit. The first thing is to look at the actual code generated by gcc and see what library function is actually being called by each of those output calls:
QUESTION
Ansible-newbie here.
I am struggling with understanding how to check if a value exists in an array returned from a previous task. Im trying to search if a volume exists in any array of volumes returned from a search:
...ANSWER
Answered 2022-Jan-11 at 18:50QUESTION
Current my pv looks like this
...ANSWER
Answered 2021-Oct-20 at 08:00Curently your VG have those gigabytes, check your screens:
QUESTION
I just installed Armbian on my SBC running Ubuntu 20.04.3 LTS (Focal Fossa). Output of cat /etc/os-release
is:
ANSWER
Answered 2021-Oct-12 at 08:47In the Armbian community I found a post which answered my question.
Even after installing NFS via apt-get install nfs-kernel-server
it only installs the user-space support.
This is the original package info from https://packages.debian.org/sid/nfs-kernel-server:
This package contains the user-space support needed to use the NFS kernel server.
That means what NFS version is supported depends on the kernel on compile time. And even NFSv4 and above is over 10 years only it can be activated/deactivated in the so called kernel config which looks like:
QUESTION
I am writing a linux command line program that will return the size of a directory. The program works as expected, except when specifically dealing with root directories. I know many files in the root directory do not have sizes because they are special files used to represent system information (like /proc/) or something like /dev/null/, so I used std::filesystem::directory_options::skip_permission_denied
in my for loop to skip permission issues and I used multiple try/catch blocks to catch exceptions.
However, even with this, a permission denied exception is still thrown. See the following code:
...ANSWER
Answered 2021-Mar-11 at 12:30The docs on cppreference say that skip_permission_denied
is to "Skip directories that would otherwise result in permission denied errors.". It says nothing about files, only about directories. The option means that in case you cannot read "/proc/sys/xyz" this directory is skipped and no exception is thrown. In your case this is respected and you do not get a filesystem_error
exception from recursive_directory_iterator
. But that is not related to any file that this iterator returns.
But an exception is thrown in std::filesystem::exists(p)
and in std::filesystem::is_directory(p)
. It is thrown by std::filesystem::status
which is internally called by both functions. en.cppreference says that in status
"symlinks are followed to their targets". This is not possible for /proc/1/task/1/cwd
if you are not root
.
ls -alg /proc/1/task/1/cwd
shows me a file mode lrwxrwxrwx
but a permission denied message.
$ ls -alg /proc/1/task/1/cwd
ls: Lesen der symbolischen Verknüpfung '/proc/1/task/1/cwd' nicht möglich: Keine Berechtigung
lrwxrwxrwx 1 root 0 Mär 11 08:53 /proc/1/task/1/cwd
I believe that the recursive_directory_iterator
is only looking at the file mode, but cwd
seems to be special and additional access rules apply. So a solution for you could be to catch exceptions thrown by std::filesystem::exists
or std::filesystem::is_directory
, ignore them and proceed.
QUESTION
After hours of trying I'm not able to get Manjaro (Luks, btrfs, lvm) to show up in my systemd-boot menu, and I can't figure out why.
Manjaro is set up with Luks encryption, a btrfs file system, and with LVMs. Boot manager is installed at /boot/efi
Previous to Manjaro, I was already dual booting PopOS and Windows, which were set up with systemd-boot. I have installed Manjaro with the architect image, and selected systemd-boot as the bootloader. After rebooting, the only entry that showed up was Windows. The PopOS entry I managed to fix by chroot'ing into the installation and running update-initramfs
.
What I have tried:
- Running
sudo mkinitcpio -p linux59
inside chroot - Running
sudo boot --path="/mnt/boot/efi install"
from my host (Pop) - Manually adding the file
/boot/efi/loader/entries/Manjaro.conf
:
ANSWER
Answered 2021-Feb-07 at 23:13Solved the issue. As the boot files were installed in /boot, but the bootloader was installed in /boot/efi, the relative path was the latter rather than the former. Solved it by copying the boot files to a dir inside /boot/efi
QUESTION
I used parted to extend my disk as I would do normally and it appeared successful showing the new 140GB disk.
...ANSWER
Answered 2021-Jan-27 at 07:37You need resize FS. For ext do:
QUESTION
Yesterday we lost contact with 10 identically configured servers, after some investigation the conclusion was that a reboot after security updates had failed.
We have so far not been able to get any of the servers back online, but were lucky enough to be able to reinstall the instances without data loss.
I will paste the console log below, can anyone help me determine the root cause and perhaps give me some advice on if there is a better way to configure the server to make recovery easier (like getting past the "Press Enter to continue." prompt, that it seems to hang in).
The full log is too big for SO, so I put it on pastebin and pasted a redacted version below. I have removed the escape sequences that colorize the output and removed some double new lines, but besides that it is complete.
...ANSWER
Answered 2020-Oct-30 at 11:21Ok, shortly after posting we figured it out. Seems like a mount point has changed (I expect due to a linux kernel update) and we have not used the nofail option in /etc/fstab as described in the aws knowledge center, this caused the server to hang at boot.
Going forward we will also ensure we use UUID mounting so we are independent on the device naming in /dev/.
QUESTION
after few deployment of openstack (packstack all-in-one) I founded that (from hypervisor summary) the local storage size is around 40G-50G. The disk storage that I deployed is actually around 150G and 250G but keep getting around 40-50G in openstack. The same behavior when I run over VM and baremetal. During OS(Centos7) installation I just using default auto setup...all storage size (sda) and never set manual. For example this is the VGS output from VM with 150G storage running openstack
...ANSWER
Answered 2020-Oct-16 at 05:19What do you mean by storage size? If you mean the amount of storage for Cinder volumes, adjust the CONFIG_CINDER_VOLUMES_SIZE parameter. The documentation isn't clear about it, but I think the number is in Gigabytes. However, this only works if your root filesystem has enough space.
If you mean ephemeral storage, you also need to have a root filesystem that is large enough. I see that your system has three LVM volumes for root, swap and home. My suspicion is that your root volume (named centos-root) is too small. If that is the case, create a Centos installation that does not separate root and home and try again.
Adding additional information to answer the below questions:
The storage size reported in the hypervisor summary refers to the space available in Nova's instances directory, probably under /var/lib/nova (not sure). Which is on your root filesystem.
Packstack uses an LVM volume group as the storage backend for Cinder. The physical volume for that volume group resides on a loop device /dev/loop1, which is a file that resides on the root filesystem. Therefore, Cinder's storage does take up space in your root filesystem. Use the command losetup -a
to see that file.
QUESTION
I am re-installing vagrant
on my local machine unsuccessfully. Initially, I had vagrant
downloaded, installed and running well, but decided to uninstall it. My uninstall was as follows:
ANSWER
Answered 2020-Sep-30 at 22:54As you just removed the files instead of using apt-get
or dpkg
to uninstall the package, the package management is not aware of your manual removal, and so apt-get
and dpkg
still think the newest version is already installed, and so do nothing.
apt-get --reinstall install vagrant
should solve this.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install lvm2
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page