Re: Resize of LVM PV

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hi,
I was afraid someone was going to say that but i was hoping for a more safer method. I think i will take another backup of all my data 1st then do the below suggestion of deleting the /dev/sda2.

Thanks
Fred

On 02/27/2010 09:31 PM, Roberto Ragusa wrote:
Frederick Abrams wrote:

  
1) Rebooted with Fedora 12 in Rescue mode
2) e2fsck /dev/mapper/vg_fa-lv_root
3) resize2fs /dev/mapper/vg_fa-lv_root 275G
4) lvresize -L 250G /dev/vg_fa-lv_root
    
Hmmm, 275G filesystem inside a 250G lv??? You should have done the reverse...
Danger.

  
5) pvresize --setphysicalvolumesize 300G /dev/sda2
    
That's ok.

  
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          26      204800   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              26       60801   488179201   8e  Linux LVM
    
Now you have to be brave.
You should remove sda2 and recreate it with a smaller size (for example 310G).
The content should not be lost, as the metadata is at the start of the partition.
(refer another mail of mine from 23/8/2008 "lvm resizing and shifting" on this issue)

If you are still alive, you then:
- enlarge the pv to 310 (try to avoid manual specification, always better autodetect).
- enlarge the lv if you want
- enlarge the filesystem if you want

  
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Find Someone Special]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

Add to Google Powered by Linux