Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #236519 > unrolled thread
| Started by | <tomas@tuxteam.de> |
|---|---|
| First post | 2021-06-27 11:40 +0200 |
| Last post | 2021-06-27 13:50 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.debian.user
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
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
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2021-06-27 11:40 +0200 |
| Subject | Re: add disk to LVM |
| Message-ID | <CuzqF-1q4-3@gated-at.bofh.it> |
[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
[toc] | [next] | [standalone]
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2021-06-27 13:40 +0200 |
| Message-ID | <CuBiN-2Iy-1@gated-at.bofh.it> |
| In reply to | #236519 |
[Multipart message — attachments visible in raw view] — view raw
On Sun, Jun 27, 2021 at 11:10:21AM +0100, mick crane wrote: > On 2021-06-27 10:32, tomas@tuxteam.de wrote: > > > >>/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. > > > >Cheers > > - t > > Thanks, I'll leave the LVM alone. > Where would I stop the automagical mounting of the disk ... This depends on who or what is automounting your disk. AFAIK there are several possibilities (I use none, so take my knowledge with two fists of salt). Perhaps your system log tells you what is doing the automounting. > and mount it on a directory at boot ? Wait: this is orthogonal to the above. Usually, whatever you want mounted at boot is in /etc/fstab (or, perhaps, in some systemd unit files, although I'm more-than-hazy on this one). But this wouldn't make much sense with removable media, I guess. But you can choose to do none of the above (in my case, I always mount removable media explicitly. Cheers - t
[toc] | [prev] | [next] | [standalone]
| From | Andrei POPESCU <andreimpopescu@gmail.com> |
|---|---|
| Date | 2021-06-27 13:50 +0200 |
| Message-ID | <CuBsu-2M3-5@gated-at.bofh.it> |
| In reply to | #236528 |
[Multipart message — attachments visible in raw view] — view raw
On Du, 27 iun 21, 13:30:06, tomas@tuxteam.de wrote: > On Sun, Jun 27, 2021 at 11:10:21AM +0100, mick crane wrote: > > > and mount it on a directory at boot ? > > Wait: this is orthogonal to the above. Usually, whatever you want > mounted at boot is in /etc/fstab (or, perhaps, in some systemd > unit files, although I'm more-than-hazy on this one). But this > wouldn't make much sense with removable media, I guess. While systemd does have .mount units, according to systemd.mount(5) the preferred approach is to use /etc/fstab. For a removable drive make sure to add 'nofail' to the entry, otherwise the system won't boot if the drive is not present. Kind regards, Andrei -- http://wiki.debian.org/FAQsFromDebianUser
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web