B
B
bacalastein2017-04-07 17:27:16
linux
bacalastein, 2017-04-07 17:27:16

How to partition a primary partition in Linux?

Hello, I have a server with the following disk structure:
/dev/sda1 34 19531 19498 9.5M BIOS boot
/dev/sda2 19584 8006783 7987200 3.8G Linux swap
/dev/sda3 8006784 121630335 113623552 54.2G Linux filesystem
I need to create a separate logical partition for one softins (GlusterFS). but I can't under /dev/sda3 because it's mounted. created logical ones inside it (/dev/sda3p1), but then they are not visible anywhere else, they are not mounted (done through fdisk with the obligatory w at the end).

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
Maxim Moseychuk, 2017-04-07
@fshp

created logical ones inside it (/dev/sda3p1)

I don't think you should reboot. Most likely your system won't boot anymore.

Y
younghacker, 2017-04-08
@younghacker

Please go
to
the studio!
You do not say that the server is not combat and there is no important data on it.
Otherwise, you have a copy of the partition table before your changes.
And that there is access to it, if not physical, then at least via KVM IPMI etc.
And that you had fun booting from the CD.
And the Indian word GLUSTER :) implies the presence of a second similar server. We hope everything goes well. And there is exactly the same copy of the partition table.

K
ky0, 2017-04-07
@ky0

Create a file on the primary partition, format its internals, and mount it as a loop partition.

B
bacalastein, 2017-04-08
@bacalastein

everything turned out so fun: I left the post and went with a friend to try. rebooted in rescue mode (through the provider's terminal), created a logical volume via LVM, and the server did not boot anymore. we will redeploy it on Monday, it is still a test one and all applications are in containers, i.e. matter of a minute.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question