Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #236519
| From | <tomas@tuxteam.de> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: add disk to LVM |
| Date | 2021-06-27 11:40 +0200 |
| Message-ID | <CuzqF-1q4-3@gated-at.bofh.it> (permalink) |
| References | <CuzqF-1q4-5@gated-at.bofh.it> <CuzqF-1q4-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Sun, Jun 27, 2021 at 09:59:50AM +0100, mick crane wrote: > hello, > Please bear in mind that I don't know what I'm doing. > It looks like when I installed debian on this PC I requested a LVM. > I'd forgotten about that. > > root@pumpkin:~# df -h > Filesystem Size Used Avail Use% Mounted on > udev 7.8G 0 7.8G 0% /dev > tmpfs 1.6G 1.5M 1.6G 1% /run > /dev/mapper/pumpkin--vg-root 28G 8.4G 18G 33% / > tmpfs 7.8G 36M 7.8G 1% /dev/shm > tmpfs 5.0M 4.0K 5.0M 1% /run/lock > /dev/sda1 236M 155M 69M 70% /boot > /dev/mapper/pumpkin--vg-home 176G 18G 150G 11% /home > tmpfs 1.6G 60K 1.6G 1% /run/user/1000 > /dev/sdb1 1.8T 62G 1.7T 4% > /media/mick/a8a2440a-0739-48b3-aa85-29715dbf817d OK. It seems (some of) /dev/sda (most probably one /dev/sda2) is providing the storage where your "pumpkin--vg-xxx" logical volumes live. > /dev/sdb1 is one whole disk ext4 partition that I usually unmount > and mount in a directory in /home to save files in. I should > probably have added it to fstab. OK. Not necessarily in fstab. It depends on what you want to do. > What would be the way to do that using LVM ? Now I don't understand your question. Do you want to use LVM on your removable disk? If yes, why? What do you expect from it? If not: the LVM setup you already have doesn't interfere in any way with your external drive. > I was concerned to be able to take out sdb and put it in another PC. > Would the sensible thing be to make sdb1 part of the logical group, > make a new logical volume and make a link to that from a directory > inside /home or to extend vg-home? I was thinking that if I extend > home you wouldn't know if some files were on one disk and some on > another. You could grow your space by adding the removable storage as a physical volume to the pool, so you get a bigger logical volume, but then you can't remove your (removable) storage. I wouldn't recommend that. > Or how would I move the whole of /home to /dev/sdb1 and make it as > new logical volume mounted on /home? I would keep the removable storage separate. Either don't do any LVM on it, or, if you do (why?), keep it as a logical volume onto itself. If you add it to a pool and then remove it, you end up with two broken file system halves or similar. Cheers - t
Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread
Re: add disk to LVM <tomas@tuxteam.de> - 2021-06-27 11:40 +0200
Re: add disk to LVM <tomas@tuxteam.de> - 2021-06-27 13:40 +0200
Re: add disk to LVM Andrei POPESCU <andreimpopescu@gmail.com> - 2021-06-27 13:50 +0200
csiph-web