LVM inside domU
Hello,
I'm running Xen on my ArchLinux (which run on a dedicated server), and I have some domUs running.
LVM run on my dom0 for the part of the hard drive dedicated to the domUs.
However, I need for one of my domU to have LVM running inside to manage "sub domU".
To achieve that goal, I tried to create a virtual device inside my LVM, to do a "LVM inside LVM" with "device-mapper create mysubdevice file-of-definition".
But I don't know how to do that well, because I don't want to have LVM on my whole disk, just on a special part, so with this definition :
50780540 419649500 linear /dev/my_LVM/ 0
it give me this error :
device-mapper: table: 252:5: linear: Gap in table
I know it's due to me not having the begin at 0 but at 50780540, but I don't know how to proceed without having the whole disk used by LVM ?
Maybe I'm misthinking the problem and I should do the LVM part from the dom0, with an other VG for example.
At least, it could allow me to easily see what's inside the domUs LVM.
But I'm really worried of the LVM getting inconsistent.
What do you think of my problem ?
Yann
(Sorry for the mistakes, i'm french)
Please mind mounting is the process of connecting a filesystem with your current filesystems. LVM is not a filesystem.
1. physical device
You need to add the physical device on which the filesystem is inside to the machine. The device needs to be visible with
fdisk -l2. add to LVM
Then you need to let LVM rescan your configuration, in order to read the LVM contents on the physical device:
vgchange -a yIf you encounter other problems, try:
vgchange -P --ignorelockingfailure -a y3. mount logical volume
Now use the lvsto see what logical volumes are present.
Now mount the logical volume (which of course should contain a filesystem):
mount /dev/VolGroup00/LogVol00 /mnt/mountpoint
Similar Messages
-
Resize the CentOS LVM inside VM from a secondary virtual hard disk
Requirement:
Airwave installed on a VM, with a secondary virtual hard disk.
we have a KB "Resizing the centOS LVM inside VM", is only useful if we have one hard disk for that VM instance.
https://arubanetworkskb.secure.force.com/pkb/articles/FAQ/Resizing-CentOS-LVM-inside-VM
However, This KB will be helpful in the scenario's where VM Administrators has to create a secondary virtual Hard disk, instead of increasing the disk space for current hard disk (could be for any reason for example: he cannot increase the disk space for the same disk as the pool that provides space to that disk has no space etc..).
Solution:
In this case, when we have added a secondary virtual hard disk, when we do # fdisk -l, we will see the secondary disk as /dev/sdb as shown below:
[root@localhost mercury]# fdisk -l
Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000650f3
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 5222 41839616 8e Linux LVM
Disk /dev/sdb: 17.2 GB, 17179869184 bytes
255 heads, 63 sectors/track, 2088 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/VolGroup00-LogVol01: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/VolGroup00-LogVol00: 38.5 GB, 38520487936 bytes
255 heads, 63 sectors/track, 4683 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
And this is the # df -h, command output, before the LVM extension:
[root@localhost mercury]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
36G 11G 23G 32% /
tmpfs 3.7G 0 3.7G 0% /dev/shm
/dev/sda1 97M 37M 56M 40% /boot
We need to extend the sdb disk space to VG group to combine to use the disk space as shown below in the configuration:
Configuration:
1. First, we need to create a partition in /dev/sdb
[root@localhost mercury]# fdisk /dev/sdb
# n {new partition}
# p {primary partition}
# 1 {select partition number, by default 3 is the next available}
# use the default cylinder values for First and last
# t {select partition id we just made (1)}
# 8e {Linux LVM partition}
# p {print. the new device should be described as Linux LVM}
# w {write to memory}
2. We need pv reate /dev/sdb1:
[root@localhost mercury]# pvcreate /dev/sdb1
3. Execute the command to extend the VG to sdb1:
[root@localhost mercury]# vgextend VolGroup00 /dev/sdb1
4. Enter the command to extend the LV to sdb1:
[root@localhost mercury]# lvextend /dev/VolGroup00/LogVol00 /dev/sdb1
5. Resize the VG:
[root@localhost mercury]# resize2fs /dev/VolGroup00/LogVol00
Done.
Verification
Now look at the # df -h, output, which will be different:
[root@localhost mercury]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
52G 11G 38G 22% /
tmpfs 3.7G 0 3.7G 0% /dev/shm
/dev/sda1 97M 37M 56M 40% /bootHi Eric,
"My first thought was to do is reduce the drive, which I know cannot be done. I then thought to convert the disk but it consumes the whole of the dynamic potential, which somehow is a maximum of 2TB."
Yes , we can not get the disk space less than 2TB .
As a workaround , you can try the following steps :
1) defrag the volume in VM , after that shutdown the VM
2) use "edit disk" in hyper-v manager to compact the VHD file
3) start that VM then shrink the volume that the disk space is larger than the VM needs in disk manager
This may limits the expansion accordingly .
Hope it helps
Best Regards
Elton JI
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
[SOLVED] Initramfs fails to properly mount luks partition
Hello All,
As I foreshadowed in my intro, I'm having trouble getting encrypted Archlinux to work on my Acer Aspire 5750. I've previously had encrypted Debian Netinst and encrypted Aptosid working on this device. The arch iso I'm using is 2011.08.19-core-i686.
https://bbs.archlinux.org/viewtopic.php?id=124415 appears similar and Tallahassee offers a workaround, but it doesn't work for me (unless I'm doing something wrong?)
I suspect there is a bug in the init scripts used by the initramfs. I would like to first of all determine whether I really should file a bug report (and if so where), and secondly whether we can find a workaround to get things up and running in the meantime.
Now for the meaty bits.
Old grub doesn't appear to support lvm or luks, so I first of all prepare for grub 2 by installing the gptfdisk package into the iso environment. I use gdisk to set up a 1 or 2 mb bios boot partition at the start of /dev/sda, followed by a 256mb partition (/dev/sda2) for /boot, with the rest of the drive given to the partition intended for the encrypted root partition (/dev/sda3).
I use cfdisk to toggle the partition type for /dev/sda3 to 8e (Linux LVM).
Run the following commands, with credits to Aptosid: Installing to a Cryptroot:
pvcreate /dev/sda3
vgcreate vg /dev/sda3
lvcreate -n crypt --extents 100%FREE vg
cryptsetup --verify-passphrase -c aes-xts-plain:sha512 luksFormat /dev/mapper/vg-crypt
cryptsetup luksOpen /dev/mapper/vg-crypt cryptroot
pvcreate /dev/mapper/cryptroot
vgcreate cryptvg /dev/mapper/cryptroot
lvcreate -n swap --size 2g cryptvg
lvcreate -n root --extents 25%FREE cryptvg
lvcreate -n home --extents 100%FREE cryptvg
/arch/setup
Go through the arch setup as normal. At the bit where you configure hard-drives, you'll find all your encrypted partitions ready waiting to be labelled and formatted. Stop after installing packages.
After installing packages, press CTL-ALT-F2 and log in. Edit /mnt/etc/rc.conf and /mnt/etc/mkinitcpio.conf. CTL-ALT-F1 and reinstall packages. Proceed with the configure step.
Don't install a boot loader; just quit after configuring everything.
Follow the steps here: Grub 2 During Archlinux Installation.
The automatically generated grub.cfg doesn't include things necessary to lvm and luks. Before running grub_bios-install, I edit the grub.cfg to insmod lvm and flag the kernel with cryptdevice=/dev/mapper/vg-crypt:cryptvg-root and rootfstype=ext4 (because that is the encrypted root's filesystem).
At this point, I would expect the system to be bootable, so reboot.
Grub2 loads up. I can verify the changes I made to grub.cfg by pressing `e'. So boot and see the messages,
Loading Linux linux ...
Loading initial ramdisk ...
A password is required to access the cryptvg-root volume:
Enter passphrase for /dev/mapper/vg-crypt:
So far so good. I enter my passphrase. The following messages ensue:
vgscan: unrecognized option '--sysinit'
Error during parsing of command line.
device-mapper: create ioctl failed: Device or resource busy
mount: mounting /dev/mapper/cryptvg-root on /new_root failed: Device or resource busy
ERROR: Failed to mount he real root device.
Bailing out, you are on your own. Good luck.
So I get dumped into the ramfs. That ain't much fun.
Does anyone have some ideas on things to try next? Should I file a bug report?
Last edited by /dev/zero (2011-10-22 00:28:52)Not sure what you mean by difficult and buggy to work with... at this low level, if a VM is having issues replicating this sort if thing, it's not a very useful VM. Find one that doesn't suck. I tend to use KVM because it's terminal friendly via emulation of a serial console.
Anyways, I can reproduce your issue and fix it. There's 2 things you'll need to change:
1) You're naming your unlocked cryptdevice the same thing as your root. That's creating a clash with the name you've given your root logical volume. Since the name isn't really important, just change your cryptdevice declare to "cryptdevice=/dev/mapper/vg-crypt:root"
2) Since you're doing the xzibit thing and nesting lvm inside of the crypt device (i still think its really bizzare to do this, but it looks like mkinitcpio supports it anyways), you'll need to add the lvm2 hook a second time to HOOKS in /etc/mkinitcpio.conf after the encrypt hook.
Last edited by falconindy (2011-10-22 00:19:10) -
Problem with recent changes to LVM2
Hi,
the recent update broke my system. I did everything as described in the anouncement.
- udev hook is used
- the lvm.conf was properly updated
- lvm wait is not used
before rebooting I also did:
If you run pacman -Syu and update device-mapper, linux and lvm2 at the same time, you will get an error message that /sbin/dmsetup is missing. Run mkinitcpio -p linux again after the update to avoid any problems.
I have a LVM inside a luksCrypt container. After rebooting, I am asked for my password and then goes to recovery with the message:
The root device /dev/mapper/[my volume]-root could not be found.
I neither changed my hooks in mkinitcpio nor did I modify their order.
I used a rescue system to both recreate (multiple times) the grub config and linux image following the wiki (https://wiki.archlinux.org/index.php/Pa … onger_boot) without success.
Any ideas?
Thanks!
Last edited by cs (2013-02-13 15:52:20)Hello, I have an problem similar to this one. But my boot setup is slightly different, because I use my own mkinitcpio hook to encrypt my disk from smartcard.
I have two GPT-partitions on the harddisk (boot and a lvm "physical volume"), the smartcard hook only encrypts the pv and normally without the last changes to udev and lvm in the boot procedure, everything is working and my system boots perfect.
But now I got dropped in the initrd rescue shell, after entering my passphrase to access the plugged in smartcard which encrypts my disk. The strange part is, if I enter "exit" to continue the boot process, everything is working as expected.
The order of my hooks in mkinitcpio.conf are the following: HOOKS="base udev autodetect block keymap smartcard encrypt lvm2 resume filesystems keyboard fsck"
(The "encrypt" hook is only needed to add corresponding binaries to the initrd)
Maybe there is a change in when the system is scanned from lvm for new pv's? Or a timeout value is too low.
The main problem is, that I can't switch the "smartcard" hook easily to 'early_run' because it depends on other later hooks (to detect the smartcard reader).
Sorry for my english, I hope this is understandable.
Moved to this thread.
Last edited by tranqil (2013-02-14 08:34:25) -
Do we have a different Guest Addition Drivers for HVM, PVM or PVHVM ?
Do we have a different Guest Addition Drivers for HVM, PVM or PVHVM ?
As while installation of of Guest Addition on HVM uek3 I got below error :
Domain Type for VM: "Xen HVM, PV Drivers" does not equal VM Tools Alive Event guestType: "HVM"
Can anyone please suggest me with this issue ?Hi,
To add more to Budy's answer:
Pure HVM machines do not and can't use paravitualized drivers. This is because they have completely emulated devices (by qemu) and dom0 does not create backend devices for it. You can only use native drivers inside HVM machine. Qemu emulates only simple, popular devices: for example IDE controller for disks and Realtek or Intel card as network devices. As a result you can install almost every OS inside HVM machine. Disadvantage is that I/O is emulated so performance is very poor. Practically you don't use pure HVM machines at all because of it.
PVHVM and PVM machines are using backend and frontend Xen drivers for I/O and some other features. Operating system inside domU have to have fontend Xen drivers installed. This is always true for linux kernel which has these included as well as Solaris 10/11 x86. Windows does not have them and therefore one needs to install them separately.
As for "Guest Additions". I think you refer to:
Chapter 3 Oracle VM Guest Additions
This is something different. I doesn't provide disk or network I/O. It enables additional communication channel between domU OS and dom0. It is used by Oracle VM Manager (via its agent0 to pass configuration settings to domU. You can use it for example to automate OS configuration after you create VM from template. Also this might be use to obtain performance metrics from guest OS by Oracle VM Manager. This feature is actually not necessary at all to run your guests efficiently.
Try to change your machine to PVHVM and check if error is gone. There is no point to use HVM for Oracle Linux anyway.
Regards,
Michal -
Should my EFI partition be inside an LVM?
I'm having so so many problems booting EFI, because when I was initially partitioning my system, I created two partions: one for /boot, formatted fat32 and one for lvm. LVM has root and home partitions inside it. I finally hacked up my EFI boot, and now I'm getting kernel panics all over the place. I think I'm going to start fresh, but I need to know if I should put /boot inside the LVM this time.
No.
The EFI system partition can only be read if it is FAT formatted.
https://en.wikipedia.org/wiki/EFI_System_partition
https://www.happyassassin.net/2014/01/2 … work-then/ -
[Solved] Installing and using GRUB on LVM
New installation, no more windows, using LVM.
pvdisplay :
--- Physical volume ---
PV Name /dev/sda1
VG Name DesktopLVM
PV Size 243.14 MiB / not usable 3.14 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 60
Free PE 0
Allocated PE 60
PV UUID 9LXTZW-zZNI-dQ3W-RMTD-C3Fl-5blw-TbPwOo
--- Physical volume ---
PV Name /dev/sda2
VG Name DesktopLVM
PV Size 19.07 GiB / not usable 4.15 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 4882
Free PE 0
Allocated PE 4882
PV UUID bgu0dD-seVt-nz7i-3Vdi-PZ4U-MKKa-pk3i6V
--- Physical volume ---
PV Name /dev/sda3
VG Name DesktopLVM
PV Size 7.63 GiB / not usable 4.86 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 1952
Free PE 0
Allocated PE 1952
PV UUID lybKyF-aqIM-3tTA-FEH3-LRPn-cjI5-qqhG75
--- Physical volume ---
PV Name /dev/sda4
VG Name DesktopLVM
PV Size 438.82 GiB / not usable 3.84 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 112337
Free PE 0
Allocated PE 112337
PV UUID l1h3Hh-BkzT-Fj0q-9mDH-1IGx-DtI0-v8AGgS
lvdisplay :
--- Logical volume ---
LV Path /dev/DesktopLVM/boot
LV Name boot
VG Name DesktopLVM
LV UUID Je7Lat-TOzj-vWei-5fLe-4cc8-ZAUF-J2IGAu
LV Write Access read/write
LV Creation host, time archiso, 2013-08-01 16:54:03 +0000
LV Status available
# open 1
LV Size 256.00 MiB
Current LE 64
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1
--- Logical volume ---
LV Path /dev/DesktopLVM/root
LV Name root
VG Name DesktopLVM
LV UUID xRK2SN-4IG1-RjNV-RHAl-qeXL-R8F3-k4SDQt
LV Write Access read/write
LV Creation host, time archiso, 2013-08-01 16:54:12 +0000
LV Status available
# open 1
LV Size 20.00 GiB
Current LE 5120
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:2
--- Logical volume ---
LV Path /dev/DesktopLVM/var
LV Name var
VG Name DesktopLVM
LV UUID Ej5zmm-7Q2x-HubD-JCBp-rg3F-g1oo-4rGBEn
LV Write Access read/write
LV Creation host, time archiso, 2013-08-01 16:54:21 +0000
LV Status available
# open 1
LV Size 8.00 GiB
Current LE 2048
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:3
--- Logical volume ---
LV Path /dev/DesktopLVM/home
LV Name home
VG Name DesktopLVM
LV UUID jU5Fdz-Tgdl-wPeE-ePOB-NaZk-CsGN-Xc8rkn
LV Write Access read/write
LV Creation host, time archiso, 2013-08-01 16:54:37 +0000
LV Status available
# open 1
LV Size 437.50 GiB
Current LE 111999
Segments 4
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:4
The problem is when using grub-install :
sh-4.2# grub-install --recheck /dev/sda
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
/usr/bin/grub-bios-setup: warning: your core.img is unusually large. It won't fit in the embedding area.
/usr/bin/grub-bios-setup: error: embedding is not possible, but this is required for RAID and LVM install.
cat /boot/grub/grub.cfg :
# DO NOT EDIT THIS FILE
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod lvm
insmod ext2
set root='lvm/DesktopLVM-root'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvm/DesktopLVM-root' b881e4e6-ad72-495c-8ae1-610ec15d27c8
else
search --no-floppy --fs-uuid --set=root b881e4e6-ad72-495c-8ae1-610ec15d27c8
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_input console
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-b881e4e6-ad72-495c-8ae1-610ec15d27c8' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod lvm
insmod ext2
set root='lvm/DesktopLVM-boot'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvm/DesktopLVM-boot' edf3011c-e581-448e-baad-d1e03d5fb8f6
else
search --no-floppy --fs-uuid --set=root edf3011c-e581-448e-baad-d1e03d5fb8f6
fi
echo 'Loading Linux core repo kernel ...'
linux /vmlinuz-linux root=/dev/mapper/DesktopLVM-root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
menuentry 'Arch Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-b881e4e6-ad72-495c-8ae1-610ec15d27c8' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod lvm
insmod ext2
set root='lvm/DesktopLVM-boot'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvm/DesktopLVM-boot' edf3011c-e581-448e-baad-d1e03d5fb8f6
else
search --no-floppy --fs-uuid --set=root edf3011c-e581-448e-baad-d1e03d5fb8f6
fi
echo 'Loading Linux core repo kernel ...'
linux /vmlinuz-linux root=/dev/mapper/DesktopLVM-root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-fallback.img
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/60_memtest86+ ###
### END /etc/grub.d/60_memtest86+ ###
Partially related, fdisk -l :
Disk /dev/sda: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x1bbed4e9
Device Boot Start End Blocks Id System
/dev/sda1 * 63 498014 248976 8e Linux LVM
/dev/sda2 498015 40499864 20000925 8e Linux LVM
/dev/sda3 40499865 56500604 8000370 8e Linux LVM
/dev/sda4 56500605 976773167 460136281+ 8e Linux LVM
Disk /dev/mapper/arch_root-image: 1494 MB, 1494220800 bytes, 2918400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/DesktopLVM-boot: 268 MB, 268435456 bytes, 524288 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/DesktopLVM-root: 21.5 GB, 21474836480 bytes, 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/DesktopLVM-var: 8589 MB, 8589934592 bytes, 16777216 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/DesktopLVM-home: 469.8 GB, 469757853696 bytes, 917495808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
How do i install grub now ?
L.E. : do not include the boot partition into LVM.
Last edited by psycho (2013-08-01 18:58:18)Your first partition starts at block 63. Grub has gotten so bloated that it now writes to not only the MBR, but also to the space from the MBR (after sector 0) to the start of the first partition, which these days is sector 2048. This new start point is for alignment purposes.
You either need to recreate your first partition and let fdsik align it to sector 2048, or you need to create a grub bios boot partition (as though you were using GPT).
Honestly, although grub2 can handle this, I think putting /boot inside the LVM is a bad idea. It just makes you totally reliant on grub2 with no other bootloader choice. For example, if something in some poorly designed program decided to write some crap to the area between the MBR and the first partition (which applications have been known to do), and you had a USB flash drive with syslinux on it (which the Arch live media has), then you could not set it up to boot your disc.
I think you should use the pvremove command to take that first partition out temporarily, then create two new partitions. One for /boot and one to add back. But this is not going to be very straight forward since you already have four primary partitions. It might be better to convert your partitions to GPT (which is super easy using gdisk) because then you are limited to only 128 primary partitions instead of a measly four. If you do that though, then you will have to make three new partitions if you want to continue to use grub2. You will additionally need the grub bios partition mentioned above. The grub2 wiki page had more info on this. But then you should make the /boot partition and then the partition to add back.
At the very least, you are going to have to remove the first partition so that it can be resized, and then add it back. Hopefully, you have not already filled the LVM space, so that you can easily shift things around. -
Hi,
i would like to know one thing about the write to measurement file. Can i put the proper header at each column in write to measurement file (.lvm) ? and how can i do for it ? Could you show me a way to make it ?
i am looking forward your kindly reply.
thank you so much ..
best regard,
roxyHi Mike,
Thank you very much for your help. It works .
By the way, i would like to ask you about setting time interval. In the pic, X_Value column is for time column
i would like to ask that when i use the write to measurement file, there got the x column that show time inside the excel file. In this column, i would like to set the time interval at every 210ms .The data may come in every msec but i just want to record the data at every 210ms . for example, 210ms-420ms-630ms ..etc. how can i set it ?
One more thing .. can i do it in graph as well ?
i am looking forward your kindly reply.
Thank you for your time.
Best Regard,
Roxy -
[VIDEO TUTORIAL] Installing Arch Linux on GPT/LVM/GRUB2
Hello everyone,
I've recently switched over from running my machine on LVM with a MSDOS partition style, and I was tired of the limitations of it. Such as 4 primary partions or 3 primary and 1 extended. It was also hindering my flexibility since I had to make 1 primary partition that was /boot, which forced me to make an initram image if I wanted to put my / inside of the LVM. The only way I could truly fix all my problems was to move away from GRUB-Legacy (Which I love since it's so easy to configure) over to GRUB 2(Which is not as bad as I thought it was).
I made this video to help people trying to do this combination. I also included the links to further information in the videos' description. It contains a link to GRUB 2 Architecture and moving over to GRUB (on IBM's site), and also ArchWiki resources for further reading.
I hope you enjoy it.
http://www.youtube.com/watch?v=69X9ZYA41xU
After you finish doing this, you will end up with this style:
GPT Partition Layout w/ Protective MBR.
/dev/sda1 - BIOS Boot Partition
/dev/sda2 - Linux LVM (arch is name of LVM)
--> /dev/arch/boot - ext2
--> /dev/arch/swap - swap
--> /dev/arch/root - ext4
--> /dev/arch/home - ext4As a complete newbie to partitioning on Linux I'd like to say how grateful I am to for making this.
You've kept it clear, clean and simple which I appreciate.
As most of my ventures into installing Linux is usually accompanied with a graphical installer a great deal of this is fairly alien. It could be nice to have a wiki entry just laying out a few examples for partitioning and setting up arch in various simple and exotic ways.
Again, thank you for this contribution. (While I quickly transcribe the steps in your video and ready the 'man' command)
Edit:
Basic step by step transcription
[root@archiso ~]# modprobe dm-mod
[root@archiso ~]# dhcpcd
[root@archiso ~]# pacman -Syy gptfdisk
[root@archiso ~]# gdisk /dev/sda
GPT fdisk (gdisk) version 0.8.1
Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: not present
Creating new GPT entries.
Command (? for help): [n]
Partition number (1-128, default 1): [RETURN]
First sector (34-[max], default = 34) or {+-}size{KMGTP}: [RETURN]
Information: Moved requested sectory from 34 to 2048 in
order to align on 2048-sector boundries.
Use 'l' on the experts' menu to adjust alignment
Last sector (2048-[max], default = [max]) or{+-}size{KMGTP}: [+32MB]
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300): [EF02]
Changed type of partition to 'BIOS boot partition'
Command (? for help): [n]
Partition number (2-128, default 2): [RETURN]
First sector (34-[max], default = 67584) or {+-}size{KMGTP}: [RETURN]
Last sector (2048-[max], default = [max]) or {+-}size{KMGTP}: [RETURN]
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300): [8E00]
Changed type of partition to 'Linux LVM'
Command (? for help): [w]
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!!
Do you want to proceed? (Y/N): [y]
OK: writing new GUID partition table (GPT).
The operaton has completed successfully.
[root@archiso ~]# pvcreate /dev/sda2
[root@archiso ~]# vgcreate arch /dev/sda2
[root@archiso ~]# vgdisplay
[root@archiso ~]# lvcreate -L 100M -n boot arch
[root@archiso ~]# lvcreate -C y -L 1G -n swap arch
[root@archiso ~]# lvcreate -L 10G -n root arch
[root@archiso ~]# lvcreate -l 100%FREE -n home arch
[root@archiso ~]# lvscan
[root@archiso ~]# mkfs.ext2 /dev/arch/boot
[root@archiso ~]# mkfs.ext4 /dev/arch/root
[root@archiso ~]# mkfs.ext4 /dev/arch/home
[root@archiso ~]# mkswap /dev/arch/swap
[root@archiso ~]# /arch/setup
Prepare Hard Drive
3 Manually Configure block devices, filesystems andmountpoints
Partition Access Method
dev directly by /dev/* (most intuitive but devicefile names can change
Manage Filesystems
/dev/sda1 raw - 32MiB N
/dev/mapper/arch-boot raw - 100MiB N > [IGNORE]
/dev/mapper/arch-home raw - 91000MiB N > filesystem (re)created? [NO] > ext4 home
/dev/mapper/arch-root raw - 10240MiB N > filesystem (re)created? [NO] > ext4 root
/dev/mapper/arch-swap raw - 1024MiB N > filesystem (re)created? [NO] > swap
Choose bootloader
[SKIP]
Configuration
mkinitcpio > HOOKS="...lvm2..."
DONE
Exit
[root@archiso ~]# mount -o bind /dev /mnt/dev
[root@archiso ~]# mount -t proc /proc /mnt/proc
[root@archiso ~]# mount -t sysfs /sys /mnt/sys
[root@archiso ~]# chroot /mnt /bin/bash
[root@archiso /]# dhcpcd
[root@archiso /]# pacman-db-upgrade
[root@archiso /]# pacman -Syy grub2-bios
[root@archiso /]# grub_bios-install --boot-directory=/boot --no-floppy --recheck --debug /dev/sda
[root@archiso /]# grub-mkconfig -o /boot/grub/grub.cfg
[root@archiso /]# exit
[root@archiso ~]# reboot
login
[root@host ~]# $EDITOR /etc/default/grub
#GRUB_GFXMODE=auto
#GRUB_GFXPAYLOAD_LINUX=keep
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
[root@host ~]# chmod -x /etc/grub.d/10_linux
[root@host ~]# $EDITOR /etc/grub.d/40_custom
menuentry "Arch Linux" {
insmod lvm
set root=(arch-boot)
linux /vmlinuz-linux root=/dev/arch/root ro
initrd /initramfs-linux.img
menuentry "Arch Linux Fallback" {
insmod lvm
set root=(arch-boot)
linux /vmlinuz-linux root=/dev/arch/root ro
initrd /initramfs-linux-fallback.img
[root@host ~]# grub-mkconfig -o /boot/grub/grub.cfg
[root@host ~]# reboot
Last edited by Earnestly (2012-01-09 11:51:45) -
Does anyone know if, on a system with LVM on LUKS on LVM, a logical volume created inside a LUKS container can be added to the same volume group that the LUKS container is in? Even if this is possible, is it this just a bad idea from a security perspective? Should the outer LVM and inner LVM each have their own physical devices, volume groups, and logical volumes?
sda
└─sda1
└─Storage 254:0 0 XG 0 lvm
├─Storage-lrootvol 254:1 0 XG 0 lvm /
└─luks 254:0 0 XG 0 crypt
├─Storage-lvarvol 254:2 0 XG 0 lvm /var
├─Storage-lhomevol 254:3 0 XG 0 lvm /home
├─Storage-ltmpvol 254:4 0 XG 0 lvm /tmp
└─Storage-lswapvol 254:5 0 XG 0 lvm swap
Yes, that's what I was thinking, except that it's all on sda2 because sda1 is my EFI System partion.
Why don't you just encrypt the root partition as well? Any reason why that wouldn't work for you?
This is on a laptop, so I was trying to avoid the performance/battery life penalty of encrypting the root partition. -
LVM, RAID installation problems
I know there comes up alot when searching for my error messages, but unfortunately I have been unsuccessful in finding relevant fixes.
When trying to install Arch on a server with LVM and RAID1, I encounter the following after trying to boot with GRUB2:
ERROR: device 'lvm/VolGroupArray-lvroot' not found. Skipping fsck.
ERROR: Unable to find root device 'lvm/VolGroupArray-lvroot'.
Your are being dropped to a recovery shell
Type 'exit' to try and continue booting
sh: can't access tty; job control turned off
Here are my complete install notes, to the dot:
Getting ready
Stop raid arrays:
# mdadm -S /dev/md{x,y,z}
Erase superblocks:
# mdadm --zero-superblock /dev/sd{a,b}{1,2,3,4}
Wipe disk:
# dd if=/dev/zero of=/dev/sdX bs=1M count=100
GPT Partition Scheme
Partition Mount p. Size Type Raid
/dev/sda1 2MiB ef02
/dev/sda2 /boot 100MiB fd00 /dev/md1
/dev/sda3 /swap 2048MiB fd00 /dev/md2
/dev/sda4 / rest fd00 /dev/md0 <-- OBS!
# sgdisk --backup=table /dev/sda
# sgdisk --load-backup=table /dev/sdb
RAID
(--assume-clean / watch -n .1 cat /proc/mdstat)
(Resource busy? # dmsetup remove_all)
# mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sd[ab]4
# mdadm --create /dev/md1 --level=1 --raid-devices=2 --metadata=0.9 /dev/sd[ab]2
# mdadm --create /dev/md2 --level=1 --raid-devices=2 /dev/sd[ab]3
Further info:
# mdadm --misc --detail /dev/md[012] | less
LVM
# pvcreate /dev/md0
# vgcreate VolGroupArray /dev/md0
# lvcreate -L 20G VolGroupArray -n lvroot
# lvcreate -L 15G VolGroupArray -n lvvar
# lvcreate -L 640G VolGroupArray -n lvhome
File system
# mkfs.ext4 /dev/VolGroupArray/lvroot
# mkfs.ext4 /dev/VolGroupArray/lvvar
# mkfs.ext4 /dev/VolGroupArray/lvhome
# mkfs.ext4 /dev/md1
# mkswap /dev/md2
# swapon /dev/md2
# mount /dev/VolGroupArray/lvroot /mnt
# mkdir /mnt/{home,boot,var}
# mount /dev/md1 /mnt/boot
# mount /dev/VolGroupArray/lvvar /mnt/var
# mount /dev/VolGroupArray/lvhome /mnt/home
Base-system
Check internet connection!
Select mirror:
# vi /etc/pacman.d/mirrorlist
Install:
# pacstrap /mnt base base-devel
Update raid:
# mdadm --examine --scan > /mnt/etc/mdadm.conf
Generate fstab:
# genfstab -p /mnt >> /mnt/etc/fstab
Chroot into system:
# arch-chroot /mnt
Configure locale:
# nano /etc/locale.gen
# locale-gen
# echo LANG=en_US.UTF-8 > /etc/locale.conf
Console font and keymap:
# nano /etc/vconsole.conf
KEYMAP=no-latin1
FONT=Lat2-Terminus16
FONT_MAP=
Timezone:
# ln -s /usr/share/zoneinfo/Europe/Copenhagen /etc/localtime
Hardware clock to UTC:
# hwclock --systohc --utc
Hostname:
# echo myhostname > /etc/hostname
Uncomment repos in pacman:
# nano /etc/pacman.conf
Set root pwd:
# passwd
Add user:
# useradd -m -g users -s /bin/bash markus
# passwd markus
mkinitcpio.conf
MODULES=(... dm-mod raid1 ...)
HOOKS=(... mdadm lvm2 filesystems...)
Re-generate the initramfs image:
# mkinitcpio -p linux
GRUB2
# pacman-db-upgrade
# pacman -Syy
# pacman -S grub-bios
# grub-install --target=i386-pc --recheck /dev/sda
# grub-install --target=i386-pc --recheck /dev/sdb
# cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
# grub-mkconfig -o /boot/grub/grub.cfg
Modify menu.cfg:
# nano /boot/grub/grub.cfg > (inside the menu entries)
insmod lvm
// insmod raid (created a missing raid.mod warning)
set raid=(md1)
//set root=lvm/VolGroupArray-lvroot (no effect)
Finito
# exit
# umount /mnt/{boot,var,home,}
# reboot
Pray!
Mount into LVM
Info with pvs / # lvdisplay /dev/VolGroupArray
# vgscan --mknodes
# lvchange -a y /dev/VolGroupArray/lvroot
# mount /dev/VolGroupArray/lvroot /mnt
I have tried with the `mdadm_udev` hook.
I have tried modifing the global_filters in lvm.conf (described here: https://bbs.archlinux.org/viewtopic.php … 6#p801706)
Playing around in the menu.cfg, finding out that the generated one worked just as fine (not fine).
Thanks for the help!You should never run pacman -Sy or pacman -Syy followed by pacman -S <package> as this is effectively a partial upgrade. pacman -S <package> (without updating the databases) is safe. pacman -Syyu <package> (which also does a full system upgrade) is safe.
Also grub-bios is now provided by grub.
Why do you install grub to 2 separate devices? (EDIT: I guess because this is RAID? I don't know anything about that so ignore this.)
I don't think you need insmod lvm in grub.cfg as you are using the initramfs hook.
Shouldn't you be passing the root specification to the kernel rather than grub?
Last edited by cfr (2013-09-22 22:23:00) -
[SOLVED] Full upgrade + LVM = Error on boot
Arch64
Just ran a full upgrade ( -Syu).
/boot has it's own ext2 partition
/home /var etc are managed with LVM on the reminder of the disk
(there are 3 other disks that are mounted on different points under /home/user_name. They are not part of the LVM).
After upgrading, the LVM system will not load, What I'm getting after GRUB is :
:: Starting udev...
done
:: Running Hook [udev]
:: Triggering events,,,done.
Waiting 10 seconds for device /dev/mapper/VolGroup0-lvRoot ...
ERROR: device '/dev/mapper/VolGroup0-lvRoot' not found. Skipping fsck.
ERROR: Unable to find root device '/dev/mapper/VolGroup0-lvRoot'.
Any ideas ?
Thanks
Ben
Last edited by ben-arch (2012-04-24 17:37:23)Well, up till this morning there WAS one off course a everything was booting OK.
Edit :
Problem is that I haven't added "lvm2" hook to mkinitcpio.conf.
Now that I have added it I understand that I have to run "mkinitcpio -p linux" in /boot to regenerate the kernel.
Problem is - how to do it ?
I've tried booting with Arch install media, then mounted my original /boot.
Entered it and ran "mkinitcpio -p linux"
What I'm getting is :
Preset linux does not exist. Exiting
And of course I can't mount my original root as it is inside the said LVM :-(
Ideas any1 ?
Thanks
Last edited by ben-arch (2012-04-24 16:50:47) -
Does LVM 2.0 support MSSQL Server Alias?
Dear All
Is it possible to manage a MSSQL Server Alias from within SAP LVM 2.0?
Will LVM 2.0 detect any change if the alias is changed using the MSSQL tools?
Thank you for your input :-)
Kind regards
LucasHi Lucas,
There no out-of-the-box solution for this however, you can implement this using a custom hook/operation/notification in LVM.
Basically custom hooks/operations/notifications help you write your own scripts/procedures and integrate them with LVM to extend the standard functionality of LVM.
For example: you could define your own custom notification that would notify you whenever the alias changes and you will see the notification inside LVM (or) you could define a custom hook that is implicitly invokes during a system start/stop operations which checks for the new alias during startup.
Please refer to the official documentation link on Extended Landscape Configuration:
Extended
Landscape Configuration - SAP NetWeaver Landscape Virtualization Management
2.0, Enterprise Edition - SAP Libra…
SAP Notes: 1889590 and 1465491
Hope this helps.
Best Regards,
Adarsh -
How to open an lvm file in MATLAB Script Node
Hello everyone
I am using LabVIEW 8.0 in order to acquire a signal, and I chose to save the signal's data with "Write to Measurement File"
Here is the problem, later on I am using a MATLAB script on the data, but the problem is that the MATLAB can't read the lvm file, because it doesn't have a txt ending.
So my question is this : is there any way I can convert in LabVIEw the lvm file to txt ???
Thanks ,
Lavi
Attachments:
Single Session 19 04.vi 197 KBEdit: Sorry about the double answer on the .lvm file. Posted at the same time as previous answer.
The .lvm file is a text-based file. Form the online help for LabVIEW :
Use text-based measurement files (.lvm) to save
data that the Write To
Measurement File Express VI generates. The text-based measurement
file is a tab-delimited text file you can open with a spreadsheet application or
a text-editing application. In addition to the data an Express VI generates, the
.lvm file includes header information about the
data, such as the date and time the data was generated. LabVIEW saves data with
up to six digits of precision in a .lvm file. Use
binary measurement files
(.tdm) to exchange data with higher precision.
A few comments regarding your code:
Learn to stop using sequence frames. This is typical for someone coming from a text-based language programming environment. This is not a personal knock on you, just a pointer. For example, instead of using the "Wait (ms)" function you can use the "Time Delay" VI. That has error in/error out clusters which will allow you to chain VIs. In the bottom part you can eliminate the sequence frame that you're using the parallel port write to the following:
which is much cleaner and easier to read.
The loop where you're reading data is pointless. It is set up to run only once, so what's the purpose of a loop?
You do not need to place all objects inside a sequence frame and then place the sequence frame inside the loop. This is redundant.
Message Edited by smercurio_fc on 04-19-2007 09:26 AM
Message Edited by smercurio_fc on 04-19-2007 09:27 AM
Attachments:
Example_BD.png 5 KB -
[SOLVED] Remote install: how to convert LVM swap to a linux partition
I am trying to install arch onto a remote server using the instructions at https://wiki.archlinux.org/index.php/Re … ux_Install , which outline a way to convert the swap partition to the new root partition:
# swapoff /dev/sdaX
# fdisk /dev/sda
(set /dev/sdaX ID field to "Linux" - Hex 83)
# mke2fs -j /dev/sdaX
The problem I'm having is that the disks on the server are managed by LVM and I'm not sure how to convert the swap partition. How do I make it available for the install? fdisk does not want to operate on the disks because it doesn't support GPT. Can parted do it? Alternatively, the server has two hard drives so maybe one could be used for the install.
/etc/fstab contains
/dev/mapper/nc1-root / ext3 errors=remount-ro 0 1
# /boot was on /dev/sda2 during installation
UUID=c9bcfdd6-ae9a-4ea9-b679-53f29b95c63c /boot ext2 defaults 0 2
/dev/mapper/nc1-swap_1 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
fdisk -l gives
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 243202 1953514583+ ee GPT
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x36613b58
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 63 498688 fd Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sdb2 63 243202 1953014784 fd Linux raid autodetect
Disk /dev/dm-0: 1967.2 GB, 1967191490560 bytes
255 heads, 63 sectors/track, 239164 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 32.9 GB, 32946257920 bytes
255 heads, 63 sectors/track, 4005 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/dm-1 doesn't contain a valid partition table
dmsetup info gives
Name: nc1-root
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 1
Event number: 0
Major, minor: 254, 0
Number of targets: 1
UUID: LVM-Jlpnv3mTyxFgW3HKlMKlaTsGN0Edd0n3iybhIaeGjTu7l27UQXd7TTMfVuhFyKzJ
Name: nc1-swap_1
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 1
Event number: 0
Major, minor: 254, 1
Number of targets: 1
UUID: LVM-Jlpnv3mTyxFgW3HKlMKlaTsGN0Edd0n32wFEDu3V7u1C540QamjiPSe4qGR10o1A
parted print all gives
Model: ATA WDC WD2002FYPS-0 (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 1018kB 1000kB bios_grub
2 1018kB 257MB 256MB ext2 boot
3 257MB 2000GB 2000GB lvm
Model: ATA WDC WD2002FYPS-0 (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 512MB 511MB primary boot, raid
2 512MB 2000GB 2000GB primary raid
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/nc1-swap_1: 32.9GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0.00B 32.9GB 32.9GB linux-swap(v1)
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/nc1-root: 1967GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0.00B 1967GB 1967GB ext3
Last edited by rhodie (2015-05-31 08:39:02)gdisk is a GPT analog of fdisk, FYI. However, since the swap partition is inside an LVM container, you don't need to touch the underlying disk at all. You should be able to run mkfs on the partition immediately after swapoff.
Maybe you are looking for
-
How to load data in a particular order ?
Hi I am trying to load data from an oracle view to a oracle table. Its working fine. However the problem is, the load is not in a particular order. I mean the order in which the data is loaded in target table is not fixed. It means sometimes a partic
-
Query-blocked Invoices for Quality per mat with the total quantity in QI
Hello, We need to create a query for blocked Invoices in Quality summarized per materialcode together with the total quantity in Quality Inspection blocked stock. As starting point I've used the table RBKP_BLOCKED and linked it with RSEG from which I
-
Changed icons won't update in dock
so, i changed the folder icons for my Applications, Documents and Downloads folders which all appear in my dock. if i select "display as folder" the new icon will appear. however, when i shutdown and reboot, the icons do not display and only the defa
-
Can we make footnotes in the WAD to be dynamic? The footnotes are pertinent to the applicable month and are maintained by the business user. we want to make sure that we will be able to link the footnotes to the report and report period. how can we a
-
Tree control and drop target data
Hi I can't seem to find an answer to my problem anywhere. Is it possible to read the data from the node over which an item is dragged and accept or reject a drop if for example the node data has attribute droppable? Attached is the ArrayCollection us