Ubuntu :: Create A Single Logical Drive Out Of Two Physical Drives?
Mar 4, 2010
I'm installing Ubuntu to be used as an NFS storage server for my VMWare ESX servers. I've got a server that has two 2TB drives in it. The hardware raid controller isn't an option because it only sees up to 1TB of each drive. So, I'm trying to figure out to do this using either LVM or Parted. I don't know much about doing this, and LVM was the first thing I tried but it didn't seem to do much. It looks like it just created a smaller partition to install Ubuntu on. It didn't ask me what I wanted to do with the rest of the drive space. I've messed around with Parted and am not sure what to do, to be honest. I found a few blog posts but most started off assuming that I knew how to get to where they were starting from.
I have a 7.9 TB logical volume I've created from 8 1 TB RAID 0 devices. The volume is formatted with XFS so I can resize when ready. However, I think I want to do something that is not possible. I have 2.5 TB free on my logical volume. I'd like to shrink the volume down to be 6 TB by getting rid of 2 of the 1 TB devices in the physical volume. However pvmove seems to require free extents in order to work. Do I need to add 6 TB of storage, pvmove everything onto it, and then decommission the original 8 1 TB physical devices from the volume?
How to create multiple Logical Groups out of a single Physical Volume? Here is the Physical Volume I have created:
Code: # pvdisplay --- Physical volume --- PV Name /dev/sda9 VG Name myVG1 PV Size 54.88 MB / not usable 2.88 MB Allocatable yes PE Size (KByte) 4096 Total PE 13 Free PE 11 Allocated PE 2 PV UUID bon4Ao-vmgC-aP1h-EC9X-w3tN-YXNu-0N2dAw
This is how I am creating a Logical Group out of the above Physical Volume:
Code: # vgcreate myVG1 -s 4m /dev/sda9 Display:
Code: # vgdisplay --- Volume group --- VG Name myVG1 System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 5 VG Access read/write VG Status resizable MAX LV 0 Cur LV 2 Open LV 1 Max PV 0 Cur PV 1 Act PV 1 VG Size 52.00 MB PE Size 4.00 MB Total PE 13 Alloc PE / Size 2 / 8.00 MB Free PE / Size 11 / 44.00 MB VG UUID O6ljYC-bflz-EUTd-nf34-8gYe-Fh39-Bh3cOg
But I am unable to create one more Logical Group out of this Physical Volume. Can we accomplish it? Or do we always extend our current Logical Group to utilize the available space of a Physical Volume?
how easy it would be to read the contents of a physical disk that was part of a larger logical volume. The disk contains a "Linux LVM" partition that spans its entire size. My problem is that one of my disks died, and I have to send it back for a warranty replacement. However, the disk is dead, and I can't zero it out. I'm just trying to assess how difficult it would be (or at least how likely it would be) for a tech that's checking out the disk to get at the data.
I have a Dell XPS with Ubuntu 10.04 installed. I have a laptop dual booting Windows 7 and Ubuntu 10.04. I can see all shared folders on the Dell from my Windows partition in my laptop but can only see the shared folders in Home on the Dell from my Ubuntu partition in the laptop. My set up is as follows:
Dell:
root, home and swap are on the 1st 160g hard drive. 2nd 160g hard drive has only the one partition: /storage1 3rd hard drive, 500g has only one partition: /storage2
I cannot access any of the shares on either storage drive but I can see them from the ubuntu laptop. What I want to do is have access to those storage drives from my laptop. If I go into Nautilus, navigate to either storage drive, I cannot share them via right click, properties because I don't have root. Basically I am not sure how to go about this. There are a few folders in storage 1 and storage 2 that I want to be able to access from my Ubuntu partition in my laptop. This is one of the reasons I still have Windows on the other laptop partition but I really would like to dump it. Samba is installed and I tried giving permissions that way. It allowed me to add the drives but it had no effect.
I have been using XP pro for a long time and installed Ubuntu 9 2 days ago. Before installing Ubuntu what I did as follows:
1. Deleted all the Partitions using XP installation cd.
2. Created 4 partions like C,D,E,F without formatting any drive. All the 4 partitions have the RAW data.
3. Deleted the partition of C drive and got the unpartitioned space of my hard disk.
4. Installed Ubuntu in this unpartitioned space.
Now the ubuntu is working perfectly, but the issue is I can't access my those 3 (D,E and F)logical drives which are in RAW format. How to format those drives and get access of them. I do not want to install XP again.
I understand the software RAID partition types on two physical drives that will be paired must be set to the same size. However,
1. Do the physical drives themselves need to be the same size?
2. Do the physical drives need to use the same interface?
e.g. Can I setup mirroring with one 80G SATA, and one 320G PATA? (And is this reliable/stable?). The use is for an asterisk server which came with the 80G, I can't find anything smaller than 320G for the 2nd drive, and the free connector inside is PATA.
I was wondering if I could make logical / partitions if I have a primary /boot partition. Is this a potential way to get around having only 4 bootable operating systems on a single HD?
I recently installed Ubuntu Server 9.10 with the intent of using it as a platform for running a couple of Windows XP virtual machines along with Linux/Ubuntu.
I had no problems getting the server installed. Had no problems getting the network up and running so that I had access to both my internal network as well as external connectivity to the internet. Had no problems getting a VM installed and putting Windows XP inside of it. Had no problems setting up a bridge between the WinXP virtual machine and the physical ethernet card (eth0).
What Im having trouble with is figuring out how to bridge from multiple VMs AND Ubuntu natively through one physical ethernet card.
When I set up the bridge, it knocks out the static IP address of the ethernet card that was set up initially with Ubuntu when first installed before the VM was created and installed. Therefore, connectivity within Ubuntu natively is lost.
Similarly, am having trouble figuring out how the second VM (also going to be running WinXP) is going to get its connectivity since it doesnt seem to like me setting up 2 bridges to the same physical ethernet interface card.
I need all 3 machines to have static IP addresses and be visible/accessible from the external network for either web/mail/dns/etc servers on the Ubuntu side and for remote PC control functionality on the VM side.
I have tried setting up alias ethernet interfaces (eth0:1, eth0:2, eth0:3) with static addresses which work fine from native Ubuntu in presenting multiple IP addressees, but it seems that Im not permitted to bridge to these alias interfaces.
In windows 7, I had 5 partitions on a hard disk: C, D, E, F, G . I installed Scientific Linux 5.0 on C partition and it removed Win 7 . It's graphic mode didn't work, also I couldn't access to the other drives. I replaced it by Fedora 13. I can work graphically Fedora but when I mount the other drives, just D drive is visible! Is there any solution that I could access to the data on other drives? By the way, the following is the output of fdisk -l .
[root@Niki ~]# fdisk -l Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
[code]....
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-2: 38.3 GB, 38319161344 bytes 255 heads, 63 sectors/track, 4658 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
I installed Redhat Enterprise 3 on one of my servers. In my haste I didn't properly partition both Hard Drives and only properly partitioned one of them. Thus now I have
Where /dev/sda1 is actually a 80 GB hard drive. Is there anyway I can safely and easily repartition the unpartitioned space without causing a huge mess? I have a very important Oracle database on /dev/sdb1 and thus I want to be able to back it up on the second disk. I can create a partition on that drive?
If I have only 1 physical WLAN interface, is there some hackery that can be done so that it can be a client of an existing access point and at the same time also act as an access point for other clients? I have an existing 802.11g ADSL router, and I'm going to be building an HTPC which will have 802.11n. My laptop also has 802.11n, but at the moment it only connects at 54Mbps because thats what the AP supports. I'd like to be able to have the HTPC be a client of my ADSL router, but have my laptop be a client of the HTPC, so copying files to it will be faster.
Is it possible to automate the configuration of a servers raid drives (my system has a HP Smart Array P400 controller) or does that have to be done manually? Right now, when I get a rack of new servers, I have to go through each one and use the ORCA tool to setup the logical drives. I'm hoping there is some way to automate that. And forgive the lame question, but I am assuming you have to configure the logical drives before you can install the OS?
We have made a fresh installation on DL 580 G 5 Server. The installation Completes successfully. When we reboot the server we find an error message " Logical Drive Disable due to Possible Data Loss. and then non system disk or disk error.
Due to this we have lost all of the data. We can successfully install Windows Server 2008 or 2003 or Redhat Enterprise Linux 5 on this server with no error no issue.we can successfully install Windows Server 2008, 2003 or RedHat Enterprise on RAID 5 or RAID 6 Or RAID 1 or RAID 1+0. we dont face any issue on these windows or linux platforms.We are only facing RAID Controller Issue on CentOS 5
upgraded from karmic through update managerANDnone of of my external drives cd drive or flash drives are picked upad to go back to karmic and will remain there for a whil
so i have f12 installed on my hd with lvm using the whole extent of the HD , i want to reduce it so i can dual boot it with a windows system, i managed to reduce the logical volume to free some space, but i cant seem to reduce the physical volume, is this possible and how ?
WHat is the physical volume in LVM's? Why do we need to create a physical volume first before creating LVM's? I mean, LVM's are created from physical disks, so why do we need to specify it? Didnt get it. Anybody want to help me with this?
Basically I am looking for a simple way to create a universal nickname/alias for a interface.We ship servers that have upto 6 NICs on them. The user can have those NIC configured as either ethN, bondN or vlanN interfaces. As we need to provide NIC status information we would like to be able to run commands such as
Code: ifconfig INTERFACE1 that would map to whatever the user had already configured.
just about to install Fedora 10 on my MSI WIND laptop and read abit about file system on Linux and come across alot of recommendations on how many logical mounts or partition to create..so far i have created /boot of 100MB.i'm unsure of what sizes i will give to my [root] / and /home and /swap
i am thinking of assigning 1GB to /swap which leaves me with 40GB left for / and /home.i'm going to install alot of softwares and probably try out wine as well.i want a separate /home directory incase i change distro then i'll keep it... where does the programs go to under?
I installed a 30 gig hard drive for extra storage space. It is currently using the ext2 file system. When looking at it in gparted, there is a key icon next to the drive. I would like to use this drive for storage with programs running in WINE, but can't even see the drive from there. From the normal OS, I can see and mount the drive, but can't use it for anything.
I am going to go out on a limb and guess that the key icon means it is locked somehow. How do I unlock/use this drive? Is there a command to use in the terminal, or within the Disk Utility that will do it?
I have roughly 5Tb of movies spread out on 6 drives in my system. I'd like to create a folder that will display the contents of certain folders without actually moving the data. For example, I have 3 drives with /HDMovies and 3 with /SDMovies. How do I create two new folders /HDMovies and /SDMovies and have the data from the drives be collected?
Is there a limit to the number of partitions/logical volumes you can create using the partman-auto recipes? If not, any thoughts on why my preseed using the values included below results in only a /boot partition and logical volumes root, swap, and user? Is there another way to achieve putting /, /tmp, /var, /usr, /usr_local /opt, etc on their own logical volumes with preseeding?
My Ubuntu system drive is starting to throw up S.M.A.R.T. errors. I have two partitions on the drive (/home and /) and grub in the mbr. Is there a way to exactly clone this drive to another one so I don't need to reinstall or re-setup anything?
I am using MSI X620. I just intalled ubuntu 10.04 in it. Everything is fine except my DVD drive. The dvd drive doesn't work at all! When i press eject button ..nothing happens and there is no light blinking in the drive....when i load windows it works fine though! do i need to install drivers or something?
i've been an intermediate-level linux user for some years, and now i'm supposed to set up and manage a small network for our research group. we have 5 linux boxes with ubuntu 10.04 (actually i'm installing everything we need in one box and will attempt to clone the others with clonezilla). i've 2 questions:
1) i'd like to manage all user accounts from one pc (server? so to say), so that every user can log in any of the 5 machines with the same passwd etc. what is the best/easiest/most stable application/protocol to manage this?
2) is it possible to create a network logical volume, based on the individual HDs and visible to all boxes? something like a RAID0 over ethernet?
I have two old windows 95 computers. The problem is I have files and programs that have specific settings that I need. The computers are old and I want to just make a copy of the hard drive and insert it into virtual box. How can I do this?
I am currently using windows xp, but I have acquired another hard drive and wish to install ubuntu to it, unfortunately i do not have a working cd drive. I have loaded the newest iso in daemon tools and it asks me if i want to install it in windows, or restart my computer to do a full install. i wish to do neither. i want to install a full copy to my other drive with the virtual cd drive. I have found alot of help dealing with installing it on the same drive as windows or something that would require a floppy drive. this task seems like it would be alot simpler than installing on the same drive, buy maybe not. Did i miss a tutorial somewhere?