Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #263241

Re: How to use dmsetuup?

From Tom Dial <tddial@comcast.net>
Newsgroups linux.debian.user
Subject Re: How to use dmsetuup?
Date 2023-11-08 00:50 +0100
Message-ID <HxDZv-3Tal-1@gated-at.bofh.it> (permalink)
References <Hxa1r-3z0K-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 11/6/23 08:47, Franco Martelli wrote:
> On 03/11/23 at 17:27, gene heskett wrote:
>> Greetings all;
>> As usual, the man page may as well be written in swahili. The NDE syndrome, meaning No D-----d Examples.
>>
>> I have those 2 2T SSD's with a gpt partition table on both, allocated as sdc1 and sdk1, formatted to ext4, named and labeled as lvm1 and lvm2.
>> Temp mounted as sdc1 and sdk1 to /mnt/lvm1 and /mnt/lvm2
>>
>> How do I create a single managed volume of labels lvm1 and lvm2 of these to make a single volume that I can then rsynch /home to it, then switch fstab to mount it as /home on a reboot?

You do not put a file system on the partitions you are using as LVM physical volumes. And you do not mount them.

The rough procedure is

Create LVM physical volumes on raw disk partitions using pvcreate  (or lvm pvcreate) e. g.,

pvcreate /dev/sdc1
pvcreate /dev/sdk1

This gives you two physical volumes to use to create one or two volume groups
Create an LVM volume group using vgcreate (or lvm vgcreate), e. g.,

vgcreate home-vg sdc1 sdk1

This gives you a volume group named "home-vg" with 4.4 TB raw storage in which you can create one or more logical volumes.
Create the logical volumes you want. It appears you want only one, to mounted at /home. For instance,

lvcreate --size 1024G -n home-volume home-vg

will create a 1 TB logical volume, represented under dev by /dev/home-vg/home-volume

Put a file system on the logical volume in the normal way, such  as:

mkfs -t ext4 /dev/home-vg/home-volume

mount the new volume (and put it in /etc/fstab for mounting at boot:

mount /dev/home-vg/home-volume /home

Doing this probably will not give you what you want. (For instance, if I remember right, the entire logical volume would, in this case, wind up on the first-named physical volume vgcreate command.) The man pages for lvm and its subcommands offer a lot of options for things like storage allocation between/among multiple physical volumes that make up a volume group, the size of allocation units, such things as RAID level, and a large number of other properties. You probably know what you want, and from what I've seen on this list seem quite able to fish it up out of the man pages, some of which have usefully suggestive examples.

OTOH, I would recommend ZFS for this based on experience with LVM and ZFS in both commercial (e. g., HP-UX and SolaRIS) and Linux environments. Both have learning curves that I would judge comparable, both are flexible and fairly easy to manage, and both are or can be highly resilient. On the whole, though, I prefer ZFS.

Regards,
Tom Dial

>>
> 
> How about to use debian-installer: burn the dvd image of Bookworm 12.2, put into the DVD drive then reboot the system. You have to choose "Expert Install" and it's all menu driven from RAID device creation to LVM logical device and logical volume names.
> I don't know if you can do that from debian-installer rescue disk mode.
> 
> HTH
> kinds regards
> 

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to use dmsetuup? gene heskett <gheskett@shentel.net> - 2023-11-03 17:30 +0100
  Re: How to use dmsetuup? gene heskett <gheskett@shentel.net> - 2023-11-03 17:50 +0100
  Re: How to use dmsetuup? Stefan Monnier <monnier@iro.umontreal.ca> - 2023-11-03 18:10 +0100
  Re: How to use dmsetuup? David Christensen <dpchrist@holgerdanske.com> - 2023-11-03 22:50 +0100
    Re: How to use dmsetuup? gene heskett <gheskett@shentel.net> - 2023-11-04 01:00 +0100
      Re: How to use dmsetuup? David Christensen <dpchrist@holgerdanske.com> - 2023-11-04 01:50 +0100
  Re: How to use dmsetuup? "Andrew M.A. Cater" <amacater@einval.com> - 2023-11-03 23:20 +0100
    Re: How to use dmsetuup? gene heskett <gheskett@shentel.net> - 2023-11-04 01:10 +0100
    Re: How to use dmsetuup? gene heskett <gheskett@shentel.net> - 2023-11-04 12:50 +0100
      Re: How to use dmsetuup? <tomas@tuxteam.de> - 2023-11-04 14:50 +0100
        Re: How to use dmsetuup? gene heskett <gheskett@shentel.net> - 2023-11-04 18:30 +0100
          Re: How to use dmsetuup? tomas@tuxteam.de - 2023-11-04 19:40 +0100
            Re: How to use dmsetuup? debian-user@howorth.org.uk - 2023-11-04 21:50 +0100
          Re: How to use dmsetuup? David Christensen <dpchrist@holgerdanske.com> - 2023-11-04 22:40 +0100
            Re: How to use dmsetuup? gene heskett <gheskett@shentel.net> - 2023-11-04 23:30 +0100
              Re: How to use dmsetuup? David Christensen <dpchrist@holgerdanske.com> - 2023-11-05 00:40 +0100
                Re: How to use dmsetuup? yxcv@vienna.at - 2023-11-05 01:10 +0100
                Re: How to use dmsetuup? gene heskett <gheskett@shentel.net> - 2023-11-05 02:00 +0100
                Re: How to use dmsetuup? David Christensen <dpchrist@holgerdanske.com> - 2023-11-05 04:20 +0100
                Re: How to use dmsetuup? gene heskett <gheskett@shentel.net> - 2023-11-05 05:10 +0100
                Re: How to use dmsetuup? David Christensen <dpchrist@holgerdanske.com> - 2023-11-05 07:50 +0100
                Re: How to use dmsetuup? gene heskett <gheskett@shentel.net> - 2023-11-05 10:50 +0100
                Re: How to use dmsetuup? David Christensen <dpchrist@holgerdanske.com> - 2023-11-05 11:30 +0100
                Re: How to use dmsetuup? gene heskett <gheskett@shentel.net> - 2023-11-05 16:30 +0100
                Re: How to use dmsetuup? "Thomas Schmitt" <scdbackup@gmx.net> - 2023-11-05 09:10 +0100
                Re: How to use dmsetuup? David Christensen <dpchrist@holgerdanske.com> - 2023-11-05 21:20 +0100
                Re: How to use dmsetuup? debian-user@howorth.org.uk - 2023-11-05 21:50 +0100
                Re: How to use dmsetuup? David Christensen <dpchrist@holgerdanske.com> - 2023-11-05 23:30 +0100
                Re: How to use dmsetuup? "Thomas Schmitt" <scdbackup@gmx.net> - 2023-11-05 23:20 +0100
                Re: How to use dmsetuup? David Christensen <dpchrist@holgerdanske.com> - 2023-11-05 23:50 +0100
                Re: How to use dmsetuup? "Thomas Schmitt" <scdbackup@gmx.net> - 2023-11-06 08:40 +0100
                xorriso and SIGTERM/SIGINT handler (was: Re: How to use dmsetuup?) Max Nikulin <manikulin@gmail.com> - 2023-11-06 05:30 +0100
                Re: xorriso and SIGTERM/SIGINT handler "Thomas Schmitt" <scdbackup@gmx.net> - 2023-11-06 09:00 +0100
        Re: How to use dmsetuup? gene heskett <gheskett@shentel.net> - 2023-11-04 23:10 +0100
  Re: How to use dmsetuup? Andy Smith <andy@strugglers.net> - 2023-11-04 10:40 +0100
    Re: How to use dmsetuup? gene heskett <gheskett@shentel.net> - 2023-11-04 13:30 +0100
  Re: How to use dmsetuup? Franco Martelli <martellif67@gmail.com> - 2023-11-06 16:50 +0100
    Re: How to use dmsetuup? gene heskett <gheskett@shentel.net> - 2023-11-06 17:30 +0100
    Re: How to use dmsetuup? Tom Dial <tddial@comcast.net> - 2023-11-08 00:50 +0100
      Re: How to use dmsetuup? gene heskett <gheskett@shentel.net> - 2023-11-08 01:30 +0100
        Re: How to use dmsetuup? David Christensen <dpchrist@holgerdanske.com> - 2023-11-08 06:10 +0100
        Re: How to use dmsetuup? <tomas@tuxteam.de> - 2023-11-08 06:40 +0100
          Re: How to use dmsetuup? gene heskett <gheskett@shentel.net> - 2023-11-08 11:30 +0100
            Re: How to use dmsetuup? "Andrew M.A. Cater" <amacater@einval.com> - 2023-11-08 19:10 +0100
              Re: How to use dmsetuup? jeremy ardley <jeremy.ardley@gmail.com> - 2023-11-08 23:00 +0100
            Re: How to use dmsetuup? Tom Dial <tddial@comcast.net> - 2023-11-09 02:10 +0100
            Re: How to use dmsetuup? David Christensen <dpchrist@holgerdanske.com> - 2023-11-11 01:50 +0100
              Re: How to use dmsetuup? gene heskett <gheskett@shentel.net> - 2023-11-11 04:30 +0100
                Hardware for a back up server? [WAS Re: How to use dmsetuup?] "Andrew M.A. Cater" <amacater@einval.com> - 2023-11-11 18:00 +0100
                Re: Hardware for a back up server? [WAS Re: How to use dmsetuup?] Stefan Monnier <monnier@iro.umontreal.ca> - 2023-11-11 18:10 +0100
                Re: Hardware for a back up server? [WAS Re: How to use dmsetuup?] Pocket <pocket@columbus.rr.com> - 2023-11-11 18:40 +0100
                Re: Hardware for a back up server? [WAS Re: How to use dmsetuup?] Stefan Monnier <monnier@iro.umontreal.ca> - 2023-11-11 19:50 +0100
                Re: Hardware for a back up server? [WAS Re: How to use dmsetuup?] Pocket <pocket@columbus.rr.com> - 2023-11-11 21:50 +0100
                Re: Hardware for a back up server? [WAS Re: How to use dmsetuup?] gene heskett <gheskett@shentel.net> - 2023-11-11 22:40 +0100
                Re: Hardware for a back up server? [WAS Re: How to use dmsetuup?] Jeffrey Walton <noloader@gmail.com> - 2023-11-11 22:10 +0100
                Re: Hardware for a back up server? [WAS Re: How to use dmsetuup?] Jeffrey Walton <noloader@gmail.com> - 2023-11-12 00:30 +0100
                Re: Hardware for a back up server? [WAS Re: How to use dmsetuup?] Dan Ritter <dsr@randomstring.org> - 2023-11-12 00:40 +0100
                Re: Hardware for a back up server? [WAS Re: How to use dmsetuup?] fxkl47BF@protonmail.com - 2023-11-11 18:30 +0100
                Re: Hardware for a back up server? [WAS Re: How to use dmsetuup?] David Christensen <dpchrist@holgerdanske.com> - 2023-11-12 01:10 +0100
                Re: Hardware for a back up server? [WAS Re: How to use dmsetuup?] Stefan Monnier <monnier@iro.umontreal.ca> - 2023-11-12 05:40 +0100
                Re: Hardware for a back up server? [WAS Re: How to use dmsetuup?] Anssi Saari <anssi.saari@debian-user.mail.kapsi.fi> - 2023-11-13 11:40 +0100
                Re: Hardware for a back up server? [WAS Re: How to use dmsetuup?] Stefan Monnier <monnier@iro.umontreal.ca> - 2023-11-13 14:00 +0100
                Re: Hardware for a back up server? [WAS Re: How to use dmsetuup?] Andy Smith <andy@strugglers.net> - 2023-11-12 14:20 +0100
                Re: Hardware for a back up server? [WAS Re: How to use dmsetuup?] David Christensen <dpchrist@holgerdanske.com> - 2023-11-12 19:40 +0100
                Re: Hardware for a back up server? [WAS Re: How to use dmsetuup?] "Andrew M.A. Cater" <amacater@einval.com> - 2023-11-12 18:20 +0100
                Re: Hardware for a back up server? [WAS Re: How to use dmsetuup?] David Christensen <dpchrist@holgerdanske.com> - 2023-11-12 20:30 +0100
                Re: Hardware for a back up server? [WAS Re: How to use dmsetuup?] Stefan Monnier <monnier@iro.umontreal.ca> - 2023-11-12 21:20 +0100
                Re: Hardware for a back up server? [WAS Re: How to use dmsetuup?] <tomas@tuxteam.de> - 2023-11-13 06:40 +0100
                Linux supprt (was: Hardware for a back up server? [WAS Re: How to use dmsetuup?]) Stefan Monnier <monnier@iro.umontreal.ca> - 2023-11-13 13:50 +0100
                Re: Linux supprt (was: Hardware for a back up server? [WAS Re: How to  use dmsetuup?]) Larry Martell <larry.martell@gmail.com> - 2023-11-13 16:00 +0100
                Re: Linux supprt Stefan Monnier <monnier@iro.umontreal.ca> - 2023-11-13 16:40 +0100
                Re: Linux supprt Nicholas Geovanis <nickgeovanis@gmail.com> - 2023-11-13 22:50 +0100
                Re: Linux supprt John Hasler <john@sugarbit.com> - 2023-11-13 19:00 +0100
                Re: Linux supprt <tomas@tuxteam.de> - 2023-11-13 19:40 +0100
                Re: Linux supprt Nicholas Geovanis <nickgeovanis@gmail.com> - 2023-11-14 18:40 +0100
                Re: Linux supprt <tomas@tuxteam.de> - 2023-11-14 18:50 +0100
                Re: Hardware for a back up server? [WAS Re: How to use dmsetuup?] Joe <joe@jretrading.com> - 2023-11-13 15:10 +0100
        Re: How to use dmsetuup? Tom Dial <tddial@comcast.net> - 2023-11-09 01:50 +0100
          Re: How to use dmsetuup? Andy Smith <andy@strugglers.net> - 2023-11-09 16:20 +0100
            Re: How to use dmsetuup? debian-user@howorth.org.uk - 2023-11-09 17:50 +0100

csiph-web