Find the answer to your Linux question:
Results 1 to 3 of 3
Hi all, I have dual booted configuration with Fedora 12 and Windows XP running. I have reinstalled Fedora 12 yesterday as something (I don't know) gone wrong and I was ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    2

    Problem with the created Logical Volume


    Hi all,

    I have dual booted configuration with Fedora 12 and Windows XP running. I have reinstalled Fedora 12 yesterday as something (I don't know) gone wrong and I was not able to login into either Fedora or Windows. While installing Fedora 12 has taken a full free partition (with 100 GB) as logical volume for root, which I haven't noticed at that time. Later I have reduced this logical partition for root as 30GB and remaining space is left unused. I have two questions now.

    1) Is there anyway, I can free up this unused logical volume space and add it to the uninitialized entity, so I can use it windows?

    2) After installation, I had logged into Windows network, where a Found new Hardware wizard for generic volume keeps on popping up. It's really annoying to have it popped up again and again. I have raised this here as I want to know is there anything from Fedora I can do to avoid this.

    Code:
    [kbmkris ~]$ df -h
    Filesystem            Size  Used Avail Use% Mounted on 
    /dev/mapper/VolGroup-lv_root
                                    30G   12G   17G      41%  /
    tmpfs                  1006M  420K 1006M   1%  /dev/shm
    /dev/sda7            194M   22M  163M   12%  /boot
    Code:
    [root  kbmkris]# vgdisplay
      --- Volume group ---
      VG Name               VolGroup
      System ID             
      Format                lvm2
      Metadata Areas        1
      Metadata Sequence No  4
      VG Access             read/write
      VG Status             resizable
      MAX LV                0
      Cur LV                2
      Open LV               2
      Max PV                0
      Cur PV                1
      Act PV                1
      VG Size               97.47 GB
      PE Size               4.00 MB
      Total PE              24953
      Alloc PE / Size       8688 / 33.94 GB
      Free  PE / Size       16265 / 63.54 GB
      VG UUID               8cbC8G-t4OY-h1Dg-ayyP-qAW3-bsRf-bNYKV7
    Code:
    [root  kbmkris]# lvdisplay
      --- Logical volume ---
      LV Name                /dev/VolGroup/lv_root
      VG Name                VolGroup
      LV UUID                hIMw2j-ta3h-6z18-sXdP-3OlJ-OT8B-S6TRC8
      LV Write Access        read/write
      LV Status              available
      # open                 1
      LV Size                30.00 GB
      Current LE             7680
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           253:0
       
      --- Logical volume ---
      LV Name                /dev/VolGroup/lv_swap
      VG Name                VolGroup
      LV UUID                xGuFxa-B9y7-J8Gt-D06h-csW2-Naow-Up1rhy
      LV Write Access        read/write
      LV Status              available
      # open                 1
      LV Size                3.94 GB
      Current LE             1008
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           253:1
    Code:
    [root  kbmkris]# pvdisplay
      --- Physical volume ---
      PV Name               /dev/sda8
      VG Name               VolGroup
      PV Size               97.47 GB / not usable 2.01 MB
      Allocatable           yes 
      PE Size (KByte)       4096
      Total PE              24953
      Free PE               16265
      Allocated PE          8688
      PV UUID               Qgdfqw-gssB-7cWq-qEFk-MlFe-wIp1-dxl0pV
    Code:
    [root  kbmkris]# lvs
      LV      VG       Attr   LSize  Origin Snap%  Move Log Copy%  Convert
      lv_root VolGroup -wi-ao 30.00G                                      
      lv_swap VolGroup -wi-ao  3.94G
    Code:
    [root  kbmkris]# pvs
      PV         VG       Fmt  Attr PSize  PFree 
      /dev/sda8  VolGroup lvm2 a-   97.47G 63.54G
    Kindly let me know if you need any other details. I am a novice in Linux.

    Regards,
    Bal
    Attached Images Attached Images

  2. #2
    Just Joined! jr0sco's Avatar
    Join Date
    Aug 2010
    Location
    Australia
    Posts
    41
    I'm not expert with lvm, but maybe you need to resize your phyical volume to 30GB. And format the rest of the partition with fdisk.

    Code:
    man pvresize
    Whats the output of:

    Code:
    fdisk -l

  3. #3
    Just Joined!
    Join Date
    Aug 2010
    Posts
    2

    Thanks

    Code:
    [root kbmkris]# fdisk -l
    
    Disk /dev/sda: 250.1 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xb91fb91f
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1        5100    40965718+   7  HPFS/NTFS
    /dev/sda2            5101       30401   203230282+   f  W95 Ext'd (LBA)
    /dev/sda5           17851       24225    51207156    7  HPFS/NTFS
    /dev/sda6           24226       30401    49608688+   7  HPFS/NTFS
    /dev/sda7   *        5101        5126      204800   83  Linux
    /dev/sda8            5126       17850   102209542+  8e  Linux LVM
    
    Partition table entries are not in disk order
    
    Disk /dev/dm-0: 32.2 GB, 32212254720 bytes
    255 heads, 63 sectors/track, 3916 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00000000
    
    Disk /dev/dm-0 doesn't contain a valid partition table
    
    Disk /dev/dm-1: 4227 MB, 4227858432 bytes
    255 heads, 63 sectors/track, 514 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00000000
    
    Disk /dev/dm-1 doesn't contain a valid partition table

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •