LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-07-2005, 01:15 PM   #1
firedance
Member
 
Registered: Dec 2003
Location: Sweden
Distribution: Arch Linux
Posts: 65

Rep: Reputation: 15
Moving Partitions.


Well I wanna move all my data to the start of the hd then i wanna make the lvm bigger and make an extended partition of the rest.

so , cfdisk didnt help
parted gives me

Error: Could not detect file system.
when trying to move sda3 and gives me
Error: Filesystem has incompatible feature enabled

when trying to move sda2.
fdisk does not seem to have any move thing and sfdisk seems to be hard to use.

(parted) print
Disk geometry for /dev/sda: 0.000-150272.068 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
2 140262.825 140364.799 primary ext3
3 140364.800 150264.228 primary lvm

(fdisk)
Command (m for help): print

Disk /dev/sda: 157.5 GB, 157571684864 bytes
255 heads, 63 sectors/track, 19156 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda2 17882 17894 104422+ 83 Linux
/dev/sda3 17895 19156 10137015 8e Linux LVM
 
Old 01-08-2005, 04:07 AM   #2
firedance
Member
 
Registered: Dec 2003
Location: Sweden
Distribution: Arch Linux
Posts: 65

Original Poster
Rep: Reputation: 15
This is wierd! ok i have tried lvm too now.
lvm> lvextend -L +30G /dev/VolGroup00/LogVol00 /dev/sda3
Extending logical volume LogVol00 to 37.66 GB
Insufficient allocatable logical extents (247) for logical volume LogVol00: 1205 required

So i thought i need to either move the free space to the end or move the lvm partition to the start (I think the freespace to the end is the better one)


this is what vgdisplay gives

lvm> vgdisplay -v VolGroup00
Using volume group(s) on command line
Finding volume group "VolGroup00"
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
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 9.66 GB
PE Size 32.00 MB
Total PE 309
Alloc PE / Size 307 / 9.59 GB
Free PE / Size 2 / 64.00 MB
VG UUID Qmvghr-bxZC-bX2a-tw0S-awXS-CWw2-jEtrMT

--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID B82uB5-xwO3-6qf3-bMUc-O48s-cWUA-WrlZGO
LV Write Access read/write
LV Status available
# open 1
LV Size 7.66 GB
Current LE 245
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:0

--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID NU9lxb-HkL6-mavx-e7xp-7t2G-cly4-A7bCAO
LV Write Access read/write
LV Status available
# open 1
LV Size 1.94 GB
Current LE 62
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:1

--- Physical volumes ---
PV Name /dev/sda3
PV UUID tEyyXD-JaDJ-5T0D-TTK0-b4Du-YUS9-gqg6BJ
PV Status allocatable
Total PE / Free PE 309 / 2
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving space between partitions GoBillsBN Mandriva 1 07-12-2005 11:41 AM
moving partitions toaster.waffle Linux - General 5 06-09-2005 12:15 AM
moving partitions around Rocker Linux - General 7 02-02-2004 11:21 AM
Moving directories to their own partitions bxb32001 Debian 7 12-08-2003 06:40 AM
Moving partitions nabil Linux - Software 5 07-17-2001 03:55 AM


All times are GMT -5. The time now is 12:30 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration