Hi,
I have a server booted into sysresccd (mini-linux OS) with 1 40 GB disk attached
I am trying to create a volume group and restore another server into the new one
However, when I try to create a partition for /boot it seems that my VG in LVM is not recognized anymore
These are the configuration of the server I am trying to restore
Code:
[root@galtest ~]# fdisk -l /dev/sda
Disk /dev/sda: 64.4 GB, 64424509440 bytes
64 heads, 32 sectors/track, 61440 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 100 102384 83 Linux
/dev/sda2 101 61440 62812160 8e Linux LVM
[root@galtest ~]# lvmdiskscan |grep sda
/dev/sda1 [ 99.98 MB]
/dev/sda2 [ 59.90 GB] LVM physical volume
[root@galtest ~]# vgs
VG #PV #LV #SN Attr VSize VFree
vg00 1 8 0 wz--n- 59.88G 18.72G
[root@galtest ~]# df -h /dev/sda1
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 97M 35M 58M 38% /boot
[root@galtest ~]# df -h /dev/sda2
Filesystem Size Used Avail Use% Mounted on
- 2.8G 72K 2.8G 1% /dev
On my new server I am creating a new VG using /dev/sda and then 2 partitions (same as the above) however when I create the partitions the VG is not visible anymore
see below for more information
Code:
root@sysresccd /etc/lvm % fdisk -l /dev/sda
Disk /dev/sda: 42.9 GB, 42949672960 bytes
64 heads, 32 sectors/track, 40960 cylinders, total 83886080 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 identifier: 0xeac5c5ef
Device Boot Start End Blocks Id System
root@sysresccd /etc/lvm % vgcreate vg00 /dev/sda
No physical volume label read from /dev/sda
Physical volume "/dev/sda" successfully created
Volume group "vg00" successfully created
root@sysresccd /etc/lvm % vgs
VG #PV #LV #SN Attr VSize VFree
vg00 1 0 0 wz--n- 40.00g 40.00g
root@sysresccd /etc/lvm % pvs
PV VG Fmt Attr PSize PFree
/dev/sda vg00 lvm2 a-- 40.00g 40.00g
root@sysresccd /etc/lvm % fdisk /dev/sda
Welcome to fdisk (util-linux 2.21.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0xa701bbb6.
Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p
Partition number (1-4, default 1):
Using default value 1
First sector (2048-83886079, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-83886079, default 83886079): +100M
Partition 1 of type Linux and of size 100 MiB is set
Command (m for help): n
Partition type:
p primary (1 primary, 0 extended, 3 free)
e extended
Select (default p): p
Partition number (1-4, default 2):
Using default value 2
First sector (206848-83886079, default 206848):
Using default value 206848
Last sector, +sectors or +size{K,M,G} (206848-83886079, default 83886079):
Using default value 83886079
Partition 2 of type Linux and of size 39.9 GiB is set
Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 8e
Changed system type of partition 2 to 8e (Linux LVM)
Command (m for help): a
Partition number (1-4): 1
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
root@sysresccd /etc/lvm % fdisk -l /dev/sda
Disk /dev/sda: 42.9 GB, 42949672960 bytes
64 heads, 32 sectors/track, 40960 cylinders, total 83886080 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 identifier: 0xa701bbb6
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 83 Linux
/dev/sda2 206848 83886079 41839616 8e Linux LVM
root@sysresccd /etc/lvm % vgs
No volume groups found
I have 40GB HD with mepis8, swap, MBR and under flags word boot.
I also have a 160 GB external with a few Linux OS, no swaps, no extended etc. I am total Linux no MS
I would feel more secure by resizing that sda1 partition and creating a /boot partition with the MBR housed there. Is that a... (1 Reply)
Hi,
I have red hat enterprise 4. I would like to add more space on my lvm from the first partition that is not lvm type.
Here's the config
# fdisk -l
Disk /dev/sda: 73.4 GB, 73406611456 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes... (6 Replies)
I have a RHEL6 guest running on vmware esx server and the root disk size is 30G and i increased the disk size and create another partition /dev/sda3 but i do not know how to increase the size of the VG and then intrun LV .. can anyone help me on this .
fdisk -l /dev/sda
Disk /dev/sda:... (1 Reply)
hi all
while formatting hard disk i am getting following error.
Partition 1 ends at 266338338
It must be between 34 and 143374704.
label error: EFI Labels do not support overlapping partitions
Partition 8 overlaps partition 1.
Warning: error writing EFI.
Label failed.
I have formatted the... (2 Replies)
Hi guys,
let me start by saying I appreciate your assistance always.
I was practicing how to encrypt partitions in my server. I encrypted an lvm partition using luks and when I tried to remove the partition using lvremove, I get this message
Logical volume vg10/lvol1 is used by another... (2 Replies)
Hi,
I need a suggesstion i have 2 disk if i installed OS / root partition by making Lvm in one disk and data in other disk also with the lvm, means 2 different lvms.
Is making LVM partition for OS disk will the performacne will be good?
Can i make 2 different lvm one is for OS and other for... (1 Reply)
Hello All,
I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows,
/boot - Linux Partition & another is
LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc).
Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Hi ,
Background : I am installing the KVM based RHEL OS VM on one of the HP pro-line physical server.
Issue: While doing custom layout partition, i want to create partition lvm based , for example :lv_root.
But problem is that, whenever i am creating the partition, its showing /sda1... (2 Replies)