TurnKey Linux Virtual Appliance Library

Partitions

Kevin's picture

I have created a partition on a  second harddrive that I will be using  for non Os files like web sites, nas storage etc.

I have not added a volume group but have created a mount point with Disk and Network Filesystems.

Do I need to create volumes in Logical Volume Management, or should I leave everything as I have set it up ?

Jeremy's picture

I'm certainly no expert on these things

But personally I'd leave it as is. Ie have your separate HDD mounted as you would normally - not part of the main volume under LVM.

Kevin's picture

I thought I was correct

Thanks for that I was not to sure, The main concer is that the TURNKEY OS  is running on a 16 gig compact flash card.

Now I can happily move the databases, http folders, etc over to the storage drive and at 1 TB should be enough.

:)


Kevin's picture

Logical Volumes

I have spoken to a good freind

He has recomended creating Volumes, as this will not lock the new harddrive to the linux install.

this will help with mount and unmount and drive replacment.


Jeremy's picture

Not a bad idea

But if you go that way, I would create a new volume rather than simply add it to the existing volume. Although as I said before I'm not an expert in this area and I don't completely understand LVM and how it works (I've got a vague understanding).

Kevin's picture

LVM

From what I understand after playing around with the partitions,

when the drive is partitioned it has two partitions created.

One for boot and one primary partition, on the primary partition two Volume partitions are creates,

extended and the swap. If you add another harddrive to the system create the Lvm the system sees the two drives as one.

This is not good if you are going to have a raid array on the storage drives and not the Os.

I have been looking around the tiniernet and it is recomended not to use LVM and created the partitions manual.


Jeremy's picture

Have a read of Liraz's LVM blog post

I'm not sure about LVM in conjunction with RAID but from what I've heard there aren't any issues with it, but I don't have expertise or experience.

Regardless you may find Liraz's LVM post useful.

Kevin's picture

I Think

I think that the way the partition is created on a system really depends the type of setup being deployed.


Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)