Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 32636 261630976 8e Linux LVM
I want to increase the /dev/sda1 with aproximativ 200 gb who remains ! My plans are: i want to make /dev/sda3 and i want to put in
vg_gazduire!
VG Name vg_gazduire
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size 249.51 GiB
PE Size 4.00 MiB
Total PE 63874
Alloc PE / Size 63874 / 249.51 GiB
Free PE / Size 0 / 0
When i type fdisk /dev/sda3 the system give me Unable to open /dev/sda3!
The device is usually /dev/sda, /dev/sdb or so. A device name refers
to the entire disk.
/dev/sda3 is not the entire disk. It is just a single partition. It doesn't have a partition table of its own, so it makes no sense to run fdisk on it.
That said,
Quote:
I want to increase the /dev/sda1 with aproximativ 200 gb who remains ! My plans are: i want to make /dev/sda3 and i want to put in
vg_gazduire!
I find this somewhat confusing. So what is it you actually want to do? Increase sda1 or create sda3? Increasing sda1 will be expensive since it is immediately followed by sda2 on the disk and I fail to see how it would help you accomplish creating sda3. Perhaps I missed/misunderstood something in your post.
I think the OP simply wants to create a new partition using the unallocated free space to use as a new pv which can then be used to extend the vg. Pretty standard. A simple google "create new partition for lvm" found several useful hits.
As mentioned fdisk on /dev/sda is the place to start to create the new partition.
I assume that /dev/sda1 was a typo and the OP actually meant /dev/sda2. To add the unallocated space to the existing volume group vg_gazduire you can either create another partition i.e physcial volume and add that space to your volume group or just enlarge your existing /dev/sda2. How do you want to add the space i.e. to an existing logical volume or create a new one?
I have a vds specifications above. I recently wanted to increase the capacity of / dev / sda1 with the 200 gb . I spent . they are seen as you can see in / dev / sda but can not create new partition . fdisk / dev / sda3 Can not open . My methods increased / dev / sda1 were 1) made another partition / dev / sda3 and allocated in the same volume with / dev / sda1 or 2) increase / dev / sda1 with resize2fs .
I did the same operation on different vds my system and I could go all the way operations . first and hardest problem is that fdisk does not let me create another partition .
It is typical of distributions that automatically use LVM to create two partitions i.e one for /boot i.e /dev/sda1 and the rest in an LVM i.e /dev/sda2 in your case. There is no reason to increase capacity of your /boot partition with the 200 GB. That is why I assumed an error.
As stated the correct syntax is fdisk /dev/sda not fdisk /dev/sda3.
Now in the lvm you have /,/home and I assume swap. Do you want to add the additional 200 GB to / or /home or create a new volume group? You can create a new partition without being part of the LVM too.
centos.6.6 type I distribution . I need some space for both large databases . every day make a backup mysql and if it has no space falls database . I was able to add 200 gb and I chose you add in all the partition . the biggest problem is that I can not create / dev / sda3 . Practical fdisk command / dev / sda3 back Unable to open / dev / sda3 . so I can not create new partition ! This is the main problem !
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.