General :: LVM Situation - Adding New Drive And Removing Old One
Mar 6, 2010
Server (LVM):
500GB
320GB
I want to install a new 500GB and remove the 320GB, of course moving the data on the 320GB to the new 500GB. I have an external 1TB in enclosure that I can plug in to move the data over, but how do I move only the data on the 320GB to it?? I found this [URL]. But that is only to move the data to a new replacement disk, but my external is only temporary to move the data from the 320GB until I remove it+install 500GB, then move the data back. Not enough space on the 500GB already on server to move everything from 320GB to it, just in case that seemed the obvious thing to do.
View 1 Replies
ADVERTISEMENT
Sep 29, 2010
After a couple of years, I decided this weekend to replace my old slackware 10.2 with the latest stable version 13.1 64 bit. The change log tells me that with the new kernel 2.6, the old IDE/ATA system has been removed and the libata is used instead. That /dev/hda become /dev/sda and so on. No problem sofar, however ...
My FIRST hardware configuration was:
One SATA drives connected to the onboard SATA controller [A]
Two PATA drive connected to PCI IDE controller 1 [B & C]
Two PATA drive connected to PCI IDE controller 2 [D & E]
One PATA drive connected to the onboard IDE controller [F]
So initially the system had 6 disk drives. Booting from the Slackware install dvd, I found out that the drives are detected in the following order.
Onboard SATA controller
PCI IDE Controllers
Onboard IDE Controller
And the drives are get names in the following order:
/dev/sda : SATA disk @ Onboard SATA controller
/dev/sdb : first PATA disk @ PCI IDE controller 1
/dev/sdc : seconde PATA disk @ PCI IDE controller 1
/dev/sdd : first PATA disk @ PCI IDE controller 2
/dev/sde : seconde PATA disk @ PCI IDE controller 2
/dev/sdf : PATA disk @ Onboard IDE controller 1
sda upto sde are configured to us with LVM, so 4 disks are added to the volume group.
sdf is where Slackware is installed (sdf1 = swap; sdf5 = /boot; sdf6 /; sdf7 = /usr; sdf8 = /home; sdf9 = /var; sdf10 = /tmp)
Here is the problem:
When a 7th disk is added (another SATA drive @ Onboard SATA controller) then all names are changed like:
sda remains the same
sdb new added SATA drive
sdb -> sdc
sdc -> sdd
sdd -> sdf
sdf -> sdg
Obviously booting without LILO parameters results in a kernel panic, so I booted with: Linux boot=/dev/sdg root=/dev/sdg6. This does not give the kernel panic, but results in an option to check a drive and gives an option ctrl+d to boot normally. However it reboots and I get stuck at the same again.
How does LVM handle the naming shift of the drives? The 4 drives that are part of the volume group contain critical data!!! If needed, I can reinstall Slackware again from dvd with all 7 drives attached (to avoid naming shift), but how do I recover my volume group? What if one of the drives dies or is removed, then naming shift happens again.
View 1 Replies
View Related
Mar 13, 2011
command for adding a user and removing a user.
View 3 Replies
View Related
Sep 14, 2009
My Linux OS is mounted on a LVM spread across an 8GB SD Card and a 4GB Flash Drive. I've used about 6GB and have about 2.xGB left. I'm trying to download Sabayon and I don't quite have enough space to store DVD size ISO. I have extra 2GB Flash Drive that I am not using and can converted to a PV and that would give me the necessary space I need to store the ISO. Now the ISO would spread from 4GB Flash to my 2GB Flash. My question is complicated, so bare with me. I want to know by adding 2GB PV into LogGroup and then remove it from the same LogGroup and then added back later. Would the data still exists and accessible? What happens to the data when I remove it the first time, would be automatically deleted, or stay hidden to plug back in?
View 4 Replies
View Related
May 27, 2010
I've had a fair share of experience with Unix, but am humble and didn't see a better place to put this.
Bear with me here:
I am in a situation where I will be without owning a computer for a while. I have a 16GB SDHC which uses very little space for music/photos/game-saves and I wanted to use it along with a USB card reader to boot into a Live USB distro. I've tested with Ubuntu flavors and things work great. But after doing some reading, I found that the constant read and write is hard on any flash drive (not to my surprise).
I have decided to use a LiveCD instead, and see if I can allow persistence on my USB/SDHC setup instead. I absolutely need to virtualize a Windows XP machine within the Linux distro and be able to save some stuff.
For starters, what is the best distro for me? I'll be using it mostly for programming and the shell, so a fancy desktop isn't really needed (but man does Ubuntu look nice). I'm just making sure I can install and run programs from an SDHC in the way that I want.
View 3 Replies
View Related
Nov 29, 2009
I have a flash drive that I used on my old netbook to temporally hold a copy of ubuntu as the netbooks internal drive was dead. I have since got a new netbook and wanted to return the flash drive to simple removable storage. I've re-partitioned it back to 14gb fat32 2gb ext2 and everything is working fine. Except that if I try to boot with the key inserted grub loads then errors imminently (sort of obvious if grub is still in the MBR but there is no menu.lst file anymore...) Googling for removal of GRUB just gives me loads of hits for how to restore windows mbrs when you dont want to keep linux anymore. None of these methods seem to have any targeting. I need to remove grub from sdb while keeping it intact in sda. sdb shouldn't even be bootable, so that when boot from usb is higher in the bios than boot from hdd the usb key is ignored and the hdd is booted as normal.
View 3 Replies
View Related
Mar 7, 2011
I want to try out ubuntu with xfce, thing is, I don't know how to safely add and remove a desktop environment. Anyone know how to do this so I don't break ubuntu?
I don't want to install xubuntu, partially because I want to learn how to do this stuff myself.
What is a safe way of installing xfce and removing it if I didn't like it?
View 5 Replies
View Related
Feb 20, 2011
I'm looking for a way to quickly remove all data/partitions/boot records from my hard drives while running linux (distribution is irelevant). There are lots of ways to do this that I know of, but they all have some problems. Here's a list of what I've tried/thought of already. The most obvious is fdisk: Simply delete all the partitions. This usually works just fine and is very quick, but there are times it just doesn't....I'm realy not sure what gets left behind...I remove the MBR as well..but whatever it is, it's in the way. A couple other options are:
dd if=/dev/zero of=/dev/sdb bs=1M
shred -vfz -n 1 /dev/sdb
Both of these approaches are great if you're selling the components and want to make it very difficult for anyone to recover data. The draw-back is they take so very long to run. I've got four 1.5 TB drives that I've been writing zeros to for 2 days now. If you thought watching grass grow or paint drying was boring. A hundred years ago or so, when I was doing tech support for Windows 95 users we used this nifty dos-based debug script to wipe the hard drive. It was sort-of a last resort thing, but it worked beautifully, most of the time. If the customer had already formated, fdisked, fdisk /mbr, reinstalled Windows, but still couldn't get the thing to work, this would clean the drive so you could do a fresh install.
Just in case someone wants this, I'll post it. To use: first boot to some type of DOS environment in which you have the program "debug".
debug
-F 200 L1000 0
-A CS:100
xxxx:0100 MOV AX,301
xxxx:0103 MOV BX,200
xxxx:0106 MOV CX,1
xxxx:0109 MOV DX,80
NOTE: Type 80 for the primary hard drive - HD 0,
or type 81 for the secondary hard drive - HD 1.
In most cases, the primary hard drive is required 80.
xxxx:010C INT 13
xxxx:010E INT 20
xxxx:0110 (Leave this line blank. Press the <Enter> key to continue.)
-G
The message Program terminated normally appears. How to do something like that while running linux?
View 9 Replies
View Related
Dec 3, 2009
I am deciding to whether use OSPF or RIPv2 on my network. The key point for me is how good each of them are in dynamically adding and removing nodes. I am pretty sure that OSPF works well if a node is suddenly dropped or a new one is introduced( Please correct me if I am wrong). how good RIPv2 is at this.
View 1 Replies
View Related
Jul 13, 2010
I am going to remove root access via SSH which seems fine but I don't know how to add a new user, do I have to create a group first or are there existing groups I can add a user to, and does it matter which group I add a user to if I want this user to have root access with sudo?
View 11 Replies
View Related
Sep 16, 2010
I took some videos off a usb flash drive, then went and selected " safely remove usb" and the light continued to blink on the flashdrive, I pulled it out any way, and the root folder turned red... everything seems ok, but how do you know when it's ok to safely remove a usb devise ?
View 3 Replies
View Related
Jan 5, 2010
i use a fedora distribution, when accessing administrator->add remove software (GUI) is there a way to know the download progress/download rate of the selected packages ? as i cant see any progress or indication on what is happening there..i know i can use the terminal to get packages but i was wondering if there is a way to see the progress when using the GUI instead of the downloading icon on the button left. as for ex an ubuntu distribution shows a progress of each package status while downloading as now i select the packages and it only tells me that it is downloading but on what speed or what are the packages left/downloaded i don't know.
View 2 Replies
View Related
Apr 29, 2011
I have an old Linux server, but now the hard drives are reformatted. I want to use this as a test server before I do anything on our live server. Our live server is running CentOS 5 so I would like to install CentOS 5 on this server, however the mother board does not seem to recognize the CD ROM any more, and I have tried other CD ROMs - So, the .iso file I down loaded from CentOS's mirrors can't be installed that way.I have a windows machine and I was wondering if I could just dump the .iso file onto one of the reformatted hard drive and then reinstall it into the server?
View 2 Replies
View Related
May 10, 2010
I need to expand one logical volume which is now in 99% utilization. The volume group only have 5GB and they need 25GB more so that I can add 30GB. The disks will be coming from SAN Storage. If the SAN Admin can successfully add the disks to the server and I can see it, should I still partition it and change the type to Linux LVM?
I have tried just doing a pvcreate without partitioning and do a vgextend and it works without actually partitioning the disks. But when I do "fdisk -l", it actually shows that the disk don't have partition.
Whether I need to partition the drive to 8e (Linux LVM) before doing? Which one is better? Below are my steps and please let me know if this the correct one.
Here's my steps:
1.) dmesg | grep sd (to check the newly added disks)
2.) fdisk /dev/sdx (create primary partition and assign Linux LVM to type)
3.) pvcreate /dev/sdx
4.) vgextend VolumeName /dev/sdx
5.) lvextend -L+30G Volume01 /dev/Volume01/lv01
6.) umount /dev/Volume01/lv01
7.) resize2fs /dev/Volume01/lv01
8.) mount /dev/Volume01/lv01 /lv01
9.) df -h (check if resized successfully)
View 9 Replies
View Related
Mar 29, 2011
I have a dual boot computer with slackware_64 13.1 and windows.
I have a 120G ide hard drive that I need to add to my computer.
Adding this hard drive changes the drive device id's and slackware won't boot.
as installed, my drives look like this:
When I add the extra hard drive, it looks like this:
I know there is a way to make an initrid and to use the uuid identifications for the drives, and even use labels instead of the long uuid's, but I'm unfamiliar with this process, so I was hoping somebody that's done this before might point me in the right direction.
View 11 Replies
View Related
Feb 21, 2011
Situation is that there are two users on a Linux server- say A and B.A has been operating a shell script that in turn makes use of and exe file.The script and exe both are owned by user A.My problem is that I want user B to make use of the script and exe in exactly the same way user A does.So I have set suid bit of the script, exe and all the library files that the exe uses.But the exe is still not executing from user B.I did a man of chmod on Linux server and it gave an indication that SUID is disabled on new Linux servers.Now the question is, is there any other command that can perform the same task as SUID did on Unix.
View 4 Replies
View Related
Nov 16, 2010
I installed Ubuntu 9.10 on half of my D drive about a year ago, but realized that I don't really need all the space on the Ubuntu partition. I have Windows Visa Home Premium installed on my C drive. Is there any way to re-size the drive on which I had installed Ubuntu without removing it?
View 4 Replies
View Related
Oct 20, 2010
The search function does not like "U3" so I cannot locate the latest in removing it. Has anyone figured out how to do so using Linux? (Explosive, maybe, but was the Stupix worm hidden in flash drives using the U3 tools?)
View 9 Replies
View Related
Jan 22, 2010
I did an installation of SUSE 11.2 on a new SCSI hard drive. Keeping the old hard drive separate. I remembered there was some info on the old hard drive I wanted.
I added this to the system and mounted a partition. I then copied the data over. Then I umounted the partition rebooted the machine and removed the hard drive.
However the machine will now not boot without this hard drive even though its not mounted. Not sure what the error message im given means I think it could be trying to fchk it.
Do I need to do something more like remove /dev/sdd ?
View 4 Replies
View Related
Jul 27, 2011
My little server box running 11.04 currently has two drives configured in a LVM, a 160gb internal drive and a 1tb usb drive.I have three logical volumes root and swap on the 160gb and backup on the 1tb. I am going to be changing the internal drive for a 8gb SSD and would like to keep the data currently on the external, is it possible to do this?
View 6 Replies
View Related
Jun 29, 2010
I had serious problem with recording from tv via tvcard. My new distribution is Fedora 13 and the recording program is mencoder. The tvcard is Pinacle 110i. I recorded without problem when ripping from dvd, but when I tried to record from tv, I becam the answer: no /dev/dsp ... cannot open the demuxer. First I thinked that the problem cam from alsa settings, so I searched a while about this. And I didn't found alsaconf, like in Mandriva.So, after searching, I found the solution.
1. As root, issue the command
#modprobe saa7134 card=77 tuner=54
#modprobe saa7134-alsa
[code]....
View 2 Replies
View Related
Mar 13, 2011
I have been attempting to load the latest version of Shotwell only to find that it is not available on 10.04. Consequently I attempted to load 10.10 and found that it would not load from my DVD. Similarly 11.04 fell at the wayside. Tried downloading both OSs again and again but each time failure to load.
Having come across reference to test drive I thought that I would give it a go and followed the instructions on this. It appeared to download OK but then would not display the OS. Decided to remove but despite it appearing to be removed (from the information displayed in the terminal) it still is loitering on the menu.
Since that failure I think that it could be related I am now being continuously asked to authenticate the keyring, something that from my initial install I have never needed to use.
View 2 Replies
View Related
Jul 5, 2011
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?
View 5 Replies
View Related
Dec 3, 2009
I have a nightly scheduled script which creates a $vhostname directory under /mnt, mounts a windows box pointing to /mnt/$vhostname then rsyncs (pulls) some files/folders from the mount point. After this, I want to unmount the drive and remove the /mnt/$vhostname directory. Problem is that removing the /mnt/$vhostname directory sometimes ends up deleting all the files on the source! Example of script (stripped out lots of superfluous stuff):
Code:
vHOSTNAME='testhost'
vRSYNCFLAGS='-ahvz --inplace'
/bin/mkdir -p /mnt/${vHOSTNAME}
/usr/bin/rsync ${vRSYNCFLAGS} /mnt/${vHOSTNAME}/KAVSHARE /backups3/${vHOSTNAME}/
/bin/umount -l /mnt/${vHOSTNAME}
/bin/rm -Rf /mnt/${vHOSTNAME}
It seems that my umount line isn't disconnecting the mount, leaving the following line to literally delete all directories, recursively. Is there a way of safely just deleting the directory (ie: mount link) without linux accidentally trashing the whole source?
View 3 Replies
View Related
Nov 13, 2010
I need to install ubuntu or edubuntu (preferably) on an older computer (256 ram) whose cd rom is shot, but the USB ports work! The family has 2 kids and the parents are very computer illiterate and know NO English. The kids' future is dependent on learning English. The grandfather is illiterate in his language! They are not down and out people, but they could use some help, if you know what I mean! I do have an external DVDRW drive and 2 computers where Ubuntu Maverick and Lucid have been installed. I will be about 300 km from them to give support. I have 2 days Monday to Wednesday next week to install Ubuntu or edubuntu.
I read on the internet 3 solutions, one of them offering a USB fix, which I am not 100% clear on: [URL] I do not know how to program and am far more comfortable around a GUI, even though I sometimes venture off using the terminal (albeit, copying and pasting codes that other provides and that often I only get half the meaning of). The USB stick option seems to be one of the best solution at this time because I have tested it in the past! The computer has suddenly crashed (I had installed Windows in a multiple user/password mode), but one of the kids (older) was using games from friends' usbs (maybe full of virii)! Maybe the crash is a hardware crash as surges are common in the area. (I will be able to check for that using some kind of software if I can boot the comp.) After installing Ubuntu succesfully on two more recent computers already, I think Ubuntu or edubuntu might be the best solution for this situation. I am also 300 KM from being able to help out these people!
I have a few questions at this time. If the option of basically using one computer's image (ubuntu Maverick) that I have installed with all the packages that come with it (solution 1) is a viable one, how am I going to deal with the difference in hardware between the two computers. DOn't they need "drivers" and packages related to these specific components? Could I use the external dvd drive? If so, how can I get the old computer to recognize it. Assuming I can make it work again, would I need to download (beforehand) the windows drivers/files needed? Install them which might help if I want to use it to install the ISO image. I am not thinking about a dual boot since space is an issue and windows is a bad option anyway (virii).
View 9 Replies
View Related
Mar 30, 2011
I did a NMAP on a 10.4 desktop system. Found tcp wrapper on my system with an open port. Again I do not run a server. etc/host-deny and etc/host-allow contain no active elements. I know tcp wrapper as a great tool to secure a server. Closing the port with ufw gives no result, tcp wrapper still show up.
View 6 Replies
View Related
Oct 15, 2010
how an agent itself generate trap on some particular situation arises
View 1 Replies
View Related
Oct 23, 2010
I am having a problem booting my PC after adding a new SATA drive.
The PC has 3 drives.
SDA is a 500Gb SATA drive
SDB is a 1Tb SATA drive
SDC is a 160Gb IDE drive
The PC boots from the 160Gb IDE drive.
If I now install a 2Tb SATA drive the boot fails, it starts off OK as in the Motherboard boots from the IDE drive but sometime into the boot the / directory cannot be found.
If I boot from a live disk and check out the disks with gparted, I find that the new 2 Tb SAta drive is SDC and he 160Gb IDE drive is now SDD. I expect this is my problem but I cannot work out how to change it.
Note fstab is using UUID designations - not sure if this is relevant.
View 4 Replies
View Related
Jan 23, 2011
I'm trying to get a second drive configured. I wasnt to use this to store pictures movie s, and have the ability to share them across the network.
Main drive is SATA 80 Gig New Second drive SATA 1 Tb I can see both drives in the bios, They show up in g parted I've formatted and partitioned the drive and and every time I try to create a folder or share in SAMBA it tells me the I'm not the owner. I thought I could install the second drive and then partition the drive and I would be good to go like windows this was not the case.
View 1 Replies
View Related
Jul 3, 2011
I'm using ubuntu 10.10 and I would like to add a drive to grub. I have windows xp installed on the other drive, but in order to get to it right now I need to change drive priority in the bios. So how do I go about adding this new windows drive to grub?
View 3 Replies
View Related