General :: LVM - Adding New Disk Space To Volume Group?

Feb 7, 2011

I plan to install a server using LVM. I thought a partition schema where /boot would be in an ext4 partition while / /usr /var /home and /opt would be in the LVM. My question is: if I'm putting / into the LVM, is it necessary to divide /usr /var /home and /opt into different logical volumes? If I divide them, would it become harder to maintain when new disk space has to be added to the volume group?

View 7 Replies


ADVERTISEMENT

Software :: Extend Volume Group Size Over The Remaining Space?

Mar 28, 2010

extend the size of a LVM2 volume group over the remaining free space available on a physical volume. My linux box is a Ubuntu Karmic 9.10 64bit, the 60GB hard disk has 2 win partition for about 19GB, a 1.5GB ext3 boot partition and finally a 36GB LVM partition (/dev/sda4) on which I created a volume group (volgrp) smaller 10GB than the 36GB physical volume (/dev/sda4). What I want now is to extend the size of volume group up to the end of physical volume. I tried to use the "vgextend volgrp /dev/sda4" but system answers me
with following output:

me@pc:~> sudo vgextend volgrp /dev/sda4
Physical volume '/dev/sda4' is already in volume group 'volgrp'
Unable to add physical volume '/dev/sda4' to volume group 'volgrp'.

Here the output of fdisk command:

me@pc:~> sudo fdisk -l
Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders

[code]...

View 3 Replies View Related

General :: Move / Copy A Logical Volume From One Volume Group To Another?

Dec 1, 2010

I'm rearranging a bunch of disks on my server at home and I find myself in the position of wanting to move a bunch of LVM logical volumes to another volume group. Is there a simple way to do this? I saw mention of a cplv command but this seems to be either old or not something that was ever available for linux.

View 2 Replies View Related

Software :: Extend Physical Volume Disk Space From One To Another?

Sep 16, 2010

Is is possible to extend physical volume disk space from one to another?

Quote:
PV VG Fmt Attr PSize PFree
/dev/sda1 Zeus-extra lvm2 a- 149.05G 17.05G
/dev/sdb1 Zeus-misc lvm2 a- 394.96G 274.96G

Could I get 50GB from /dev/sdb1 and add it to /dev/sda1 ???

View 1 Replies View Related

CentOS 5 :: Adding Disk Space On System Based On VM Ware?

Sep 30, 2010

I have install Cent OS 5.5 on VM Ware ESXi 4. I have added new hard disk of 100 GB Disk space to same VM Ware instance.

How do I initialize that volume so I can see it on Linux server and use it.

View 3 Replies View Related

CentOS 5 :: Df Not Showing Disk Space After Logical Volume Expansion / Fix It?

Jun 5, 2009

I've added a new LUN to my Centos 5.2 server using Powerpath and have added it to an ext3 logical volume. I extended the logical volume using lvextend and the new space shows up correctly in lvdisplay. What I'm having problems with is getting Centos to see the new disk space (df -h shows 500GB, not 600GB as expected). I've tried running a resize2fs on the new volume but it tells me that "the filesystem is already n blocks long. Nothing to do". Does any one know where I'm going wrong? If possible I'd like to sort this without a reboot.

View 3 Replies View Related

General :: Adding Root To A Group

Jul 4, 2011

I'm seeing on my Fedora 15 box. I want to add the superuser to a group called, say, thisgroup.thisgroup is absent. Surprisingly, when I thought of editing /etc/group, root was present there!Anyone on why groups didn't show my new addition?

View 3 Replies View Related

Fedora :: Dumb Lvm - Volume Group And Volume Names Are Gone From View

Jan 22, 2011

I don't know much about lvm and I've managed to screw up a drive. I had a 500GB drive with FC14 on it and I wanted to copy over a load of data to my new 1TB that was replacing it. I set up my new install the same way as the old...including the same volume names (error number 1 I think) I successfully mounted the old/500GB drive (using vgscan and vgchange -a y etc.) using a laptop (running FC13) and an external hdd cradle. I could access the files I wanted but this wasn't the machine I wanted to copy them to (I was doing this while waiting for the install to finish on the new drive).

When I tried the same process on the new install I found that having two lvm with the same name meant I couldn't mount the external one. So I opened the disk utility (palimsest) and was going to change the name of the old volume group but it wouldn't let me do that. I then thought maybe I could get away with just changing the name of the partition where the files were and maybe I could add it to the mounted group or something so I changed it to lv_home2. This changed the name of my new/1TB lv_home to lv_home2 as well. So thinking that wasn't the answer I just changed the name of the new lv_home2 back to lv_home.

From that point on I haven't been able to see the old drives partitions (the new volume group still works so far). I has a physical volume but the volume group and volume names are gone from view. When I try to vgscan on my main computer or the laptop I had it working on earlier I get:

[Code]....

View 3 Replies View Related

General :: How To Split Volume Group

Oct 15, 2010

i have created two physical volumes, later added volume group to it and then created logical volume and formated the logical volume n mounted it on directory now now i wanted to split the volume group but am unable to do it.If i tries it error msg displayed as existing volume group is active and i have to inactive that volume group

View 4 Replies View Related

General :: Adding Users To Existing Group

Aug 26, 2010

I've been asked by my professor to add the list of users to a linux server (not sure of the OS type I think he said debian) but anyway. He gave me this script to add users.

Code: #!/bin/bash
# Script to add a user to Linux system
if [ $(id -u) -eq 0 ]; then
read -p "Enter username : " username
read -s -p "Enter password : " password
egrep "^$username" /etc/passwd >/dev/null
if [ $? -eq 0 ]; then
echo "$username exists!"
exit 1
else
pass=$(perl -e 'print crypt($ARGV[0], "password")' $password)
useradd -m -p $pass $username
[ $? -eq 0 ] && echo "User has been added to system!" || echo "Failed to add a user!"
fi
else
echo "Only root may add a user to the system"
exit 2
fi

I need to see if I can get this script to read a file that list the usernames and their passwords using the pipe command (or some similar command) so I can just do it in one batch. I've done some searching but there are so many vairiations of the code that I've confused myself. Also, I'm not too familiar with linux, it's been a few years since I've used it but in the prior script, I need to add the users to an existing group named "forensics". Which line would I change/add in order to do this?

View 3 Replies View Related

General :: Adding User To A Secondary Group?

Sep 10, 2009

If user1's main group is genetics and one wants to add him/her to group biochem and to assign biochem as his/her secondary group will the following suffice ?

Code:

$ sudo usermod -G biochem user1

I would like for user1 to have genetics as the main group but also belong to biochem. When user1 creates a file, as he/she belongs to main group genetics, I assume the file will be owned by user1 and group owner will be genetics. Ideally files created by user1 should be accessible to users in group genetics(when permissions are tweaked) but not by individuals in group biochem. However, any files with group owner biochem should be accessible to user1 as he/she does belong to biochem as a secondary group. Would having user1 main group genetics, secondary group biochem fulfil this criteria ?

View 5 Replies View Related

General :: LVM - Multiple Installations In One Volume Group?

Apr 18, 2011

I am not familiar with LVM at all, although I have successfully got it up and running in Slackware. What I would like to know is, could I create one Volume Group in a Physical Volume consisting at the moment of just one disk, and install separate Linux releases into Logical Volumes in this solitary VG? So, for example:

/dev/sda1 = Physical Volume
volgroup = Volume Group
lv01-root = Slackware root

[code]....

View 3 Replies View Related

General :: OS Is Not Start Because The Volume Group Is Not Exist?

Feb 28, 2011

I have RHEL3 on of my old system.the OS is not start because the Volume group is not exist.
The single mode is not work either.the onlly shell i have is by rescue mode.and either the sysimage is not exist!should i use vgimport command?how ?I never use this command before?!?!
Part of the error that i received during start the OS is :

vgscan --ERROR "vg_read_with_pv_and_lv():current PV cant get data of volume group "vg00" from physical volume(s)
vgchange -- no volume groups found

[code]...

View 1 Replies View Related

General :: Why Is Used + Available Disk Space Always Less Than Total Disk Space

Feb 24, 2011

root@localhost:~ $ df /dev/sdb1
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdb1 1922858352 23247088 1801935664 2% /mnt/external/sdb1

[code]....

View 1 Replies View Related

General :: Adding SDA1 Partition To Root LVM Group?

Nov 9, 2009

I have a question about LVM. My /dev/sda disk is partitioned into Windows NTFS on sda1, Linux /boot partition on sda2, and the Fedora 10 root (/) LVM partition is on sda3. I have moved my Windows XP to VMware on the Linux system and would like to add the sda1 partition to root LVM group.

View 7 Replies View Related

General :: Modify LVM Volume Group When Don't Have All The Drives Connected?

Mar 6, 2010

Prior to upgrading some of my hardware I had 4 drives used just as storage. Now I'm trying to mount the drives as an LVM but I don't have enough slots to connect all the drives at once now b/c they use an outdated type of cable. I can connect three of the four. So, can I somehow move these to a new group, or remove the missing drive from the existing group?The error is:Couldn't read all logical volumes for volume group VolGroup.Couldn't find device with uuid 'yQtrVB-5jCk-vF10-05c2-AcDL-GNn1-ivdxxh'.

View 1 Replies View Related

General :: List All Physical Volumes Associated To A Volume Group?

Nov 9, 2010

Maybe I'm missing something obvious but I do not see it listed in vgdisplay.

View 1 Replies View Related

Ubuntu :: Volume "filesystem Root" Has Only 474.8 MB Disk Space

Apr 25, 2010

When I logged in today I got this message:

The volume "filesystem root" has only 474.8 MB disk space remaining

What does this mean??

View 5 Replies View Related

Server :: Use System Monitor Via A VNC Connection The Free Disk Space Value Is 20GB Free On The Same Volume

May 18, 2011

I've got a question on free disk space. I'm currently running CentOS 5.5 on in Xenserver virtual environment. We've had an issue with disk space. My question is as follows: - from a ssh connection i run df -h this gives the value of 90% used leaving me with 9GB. If I use system monitor via a VNC connection the free disk space value is 20GB free on the same volume. Which one is correct? I do use SNMP to monitor the same volume and should alert me when < 10% is free I know this works as I set the alert threshold to < 90% I get an alert.

View 2 Replies View Related

General :: Disk Utility And Df Show Different Disk Space ?

Nov 18, 2010

I don't understand disk sizes in Linux. I have a 500GB drive. It's ext4. I have run "tune2fs -m 0" on it to reserve the amount of space reserved for root to 0.

I'm using Ubuntu 10.04 that comes with a Disk Utility. When I run "System->Administration->Disk Utility (palimpsest)" the disk shows up as 500GB (see picture). But when I run df -h it shows up as 459GB. So, I don't understand the discrepancy.

When I run df I get the following:

Question: Why is Disk Utility showing me something different than "df"?

View 6 Replies View Related

General :: Ubuntu - Adding Space To A Root Partition

Aug 2, 2010

I have some contiguous free space available next to where my root partition resides on the hard drive. I was thinking of resizing the root partition with gparted to take up this space, but it's kind of risky. I was wondering if there is another way to include this partition into my Linux partition without resizing? Like somehow link it in so that / will have more free space?

View 1 Replies View Related

General :: Adding Unallocated Space To Extended Partition

Aug 13, 2011

My setup is as shown in the image below,i have 170G of unallocated space which id like to add to my Extended partition so that i can create logical partitions.I can only create one primary partition now of 170G which i don't need.Can i boot my machine off a live-cd and a run a gparted and add the unallocated space to the extended partition?

View 9 Replies View Related

Fedora Installation :: I2O Controller - No Volume Groups Found Volume Group "VolGroup00" Not Found Unable To Access Resume Device

Apr 8, 2009

Dual PII 400, 512Mb with a Promise SuperTrak 100 IDE Array Controller. At present I have only one drive on the controller, configured for 1 JBOD array. I install FC9 with no problem. New partition is created and formatted, Grub is installed, and then... Grub is found and booted, but then I get:

Reading all physical volumes. This may take a while... No volume groups found Volume group "VolGroup00" not found Unable to access resume device (/dev/VolGroup00/LogVol01) mount: could not find filesystem '/dev/root' I can boot in rescue mode, chroot to the installed system. I changed the kernel boot parm "root=/dev/VolGroup00/LogVol00"

View 2 Replies View Related

Ubuntu :: General Disk Quotas Without User / Group Restriction?

Jan 12, 2010

is it possible to limit the size of a specific folder independent of user or group? I want to restrict /var/log to a total size of 1GB. I don't think that the common approach to create a 1GB partition is the right way since it is possible that I want increase or decrease the limit in the near future.

View 3 Replies View Related

General :: Volume Group "volGropu00" Not Found

Aug 22, 2010

im stock in here after recompiling my kernel

Quote:

[URL]

View 1 Replies View Related

General :: Adding And Using A New Disk - Without Rebooting

May 1, 2010

I'm running RHEL5: 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:54 EDT 2009 i686 i686 i386 GNU/Linux

under VMWare Server 2.0.2. When I create a new disk for my Linux VM I want to be able to use it without rebooting.

I checked what was currently in use:

cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: VMware, Model: VMware Virtual S Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02

[Code]...

View 7 Replies View Related

Fedora :: Managed To Reduce The Logical Volume To Free Some Space But Cant Seem To Reduce The Physical Volume

Jan 1, 2010

so i have f12 installed on my hd with lvm using the whole extent of the HD , i want to reduce it so i can dual boot it with a windows system, i managed to reduce the logical volume to free some space, but i cant seem to reduce the physical volume, is this possible and how ?

View 2 Replies View Related

Fedora :: How To Reduce A Volume Group

Mar 17, 2011

I have one HD and a VG spanning it's entirety. I resized a LV and freed up 10GB within the VG, but I want the 10GB outside the boundary of the VG so I can install another OS for testing purposes. For some reason I'm not able to do this. I don't know if I understand LVMs correctly. Maybe there can be only one VG on a HD?

View 1 Replies View Related

Fedora :: Extend Volume Group Using LVM?

Mar 30, 2011

Currently, I am at 99% capacity with a 1TB hard drive (sda). I want to add an extra 2TB storage (sdc) by extending the current volume group using LVM.

[URL]

I can see that it is extended from the LVM GUI (System - Admin - LVM). However, when I download anything, the system says I am still at 99% capacity.

Code:

[root@localhost /]# fdisk -l
Disk /dev/sda: 1000.2 GB, 1000203804160 bytes
255 heads, 63 sectors/track, 121601 cylinders

[code]....

View 5 Replies View Related

Slackware :: Disk Space Lost- Root Partition Has Very Little Space Left

Jan 31, 2010

Today I was installing a lot of software since I'm just setting up my Slackware system again after a fresh install, and I realized that my root partition has very little space left.

Here is the output of df -h:


Code:

As you can see, I have a 20G (19G here for some reason) root partition, 8G /var, and 86G of /home. I thought this would be plenty since many recent recommendations for / are 10-15G. Now, though, 17G are used up for some reason! How is this possible? I thought a full slackware install only had about 4G of software! I don't have any music or movies or any crazy huge files that I know of, and those would be in my /home directory anyway. Is there any way I can see which files are taking up all this space?

If it's necessary to allocate more space to my / partition, is it still possible to boot up a GParted live Cd, shrink /home a bit, move some partitions to the right, and expand my root partition? I would REALLY prefer I don't have to reinstall since I just spent a ton of time setting up my system again, but if worst comes to worst ... :'-(

In case you're curious, here's my /etc/fstab:

Code:

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved