What does it happen if i remove drives after i unmount LVM
Ok.
Last night, i was thinking that i'm running out of space on my computer . So i wanted to setup LVM. I set it up using this LVM guide (which seemed the one that made most sense to me ) I learned that i need to pvcreate /dev/sdX with every device i want . Then vgcreate and put like : vgcreate name /dev/sdb1 /dev/sdb2 then lvcreate -n name1 --size Xg name So then i make a file system on it and mount it . My question is : If i remove a USB flash drive while having unmounted /dev/name/name1 will it harm my LVM setup or something ... i mean , i need space on my laptop , but i also need like 1GB on my usb to take it at school just in case i need to make a presentation or something . ( + that i need a ubuntu live usb on it just in case :) ) And also , if i want to make my already /home partition that i have larger using lvm , is it possible ? |
Hi,
first of all, if you intent to use lvm and store your precious data on it then read a 'real' guide first: http://tldp.org/HOWTO/LVM-HOWTO/ Afterwards play around with it a bit to get familiar with it. Use lvm2. Now to your main question: Quote:
Quote:
Code:
man resize2fs |
thanks for the reply . well ... at least now it's clear that it won't happen anything bad . i will read how to "properly" shutdown lvm but any hints here would help lots.
my /home partition is almost full . i can back it up with partimage (had a thread on this :) ) and will compress it to the maximum .. maybe i can get it sized down to like 4GB to fit on a dvd ... (using like 14 GB on /home right now and it's sizze is 16GB ) the last time i tried the classical approach to make space for a lvm on my usb drive for testing purposes it deleted everything on that FAT32 partition ... and on my harddisk , i have a corrupt ntfs , which is full of valuable data and is the biggest on my pc . i can't resize it because gparted doesn't let me .. and there's no command that would handle it either .. had a thread on this also .. anyways this thread is almost solved. |
Quote:
Code:
sudo umount /path/to/vol01_mountpoint Code:
sudo vgchange -a n |
thanks .
|
All times are GMT -5. The time now is 10:15 AM. |