ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    XS file systems

    Scheduled Pinned Locked Moved IT Discussion
    22 Posts 6 Posters 2.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DustinB3403D
      DustinB3403
      last edited by

      Below you'll find some very useful documentation that I've compiled and found useful for XS as I've learned.

      The below command will list the free space in a readable format on the primary partion (dom0)
      1.	df –h | grep “/$” | head –n 1 
      
      The below commands will list all directories 1 folder deep, and how much file space each directory is using.
      1.	cd /
      2.	du –hc --max-depth=1
      
      The below commands will remove log files (.log) and backup log files (.gz) from the server in the respective file paths. I often remove the *.gz files first as these are the compressed & older logs.
      •	rm -rf /var/log/installer/*.log
      •	rm -rf /var/log/pm/*.log
      •	rm -rf /var/log/xen/*.log
      •	rm -rf  /var/log/*.gz
      
      1 Reply Last reply Reply Quote 0
      • stacksofplatesS
        stacksofplates
        last edited by stacksofplates

        Another thing to note is that devices under /dev/mapper are sym linked logical volumes. If you run ls -l /dev/mapper you'll see all of the lv's have an l attribute and it will show you which device the link points to.

        These same devices are also sym linked under /dev/somevolumegroup. But they lack the volume group prefix that you have under /dev/mapper.

        1 Reply Last reply Reply Quote 0
        • DashrenderD
          Dashrender
          last edited by

          man.. so many more options that Windows.. makes the head swim more than a bit.

          OK in a private chat with Scott, he mentioned that this was an LVM mapper (where my VM storage is). I'm assuming you know it's LVM because of the mapper term in the path?
          Is LVM a file system? or something higher than that? like the RAID layer before the file system?

          coliverC BRRABillB scottalanmillerS 4 Replies Last reply Reply Quote 0
          • coliverC
            coliver @Dashrender
            last edited by

            @Dashrender said:

            man.. so many more options that Windows.. makes the head swim more than a bit.

            OK in a private chat with Scott, he mentioned that this was an LVM mapper (where my VM storage is). I'm assuming you know it's LVM because of the mapper term in the path?
            Is LVM a file system? or something higher than that? like the RAID layer before the file system?

            Lower, LVM sits between the file system and the disks driver.

            1 Reply Last reply Reply Quote 0
            • BRRABillB
              BRRABill @Dashrender
              last edited by

              @Dashrender said:

              OK in a private chat with Scott, he mentioned that this was an LVM mapper (where my VM storage is). I'm assuming you know it's LVM because of the mapper term in the path?

              He and I were going through Linux stuff yesterday offline.

              I wonder how many Linux conversations he has per day, LOL.

              scottalanmillerS 1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @Dashrender
                last edited by

                @Dashrender said:

                man.. so many more options that Windows.. makes the head swim more than a bit.

                OK in a private chat with Scott, he mentioned that this was an LVM mapper (where my VM storage is). I'm assuming you know it's LVM because of the mapper term in the path?
                Is LVM a file system? or something higher than that? like the RAID layer before the file system?

                Not an LVM mapper, LVM and a mapper. You can double check that it is LVM by using...

                lvs
                
                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @Dashrender
                  last edited by

                  @Dashrender said:

                  Is LVM a file system? or something higher than that? like the RAID layer before the file system?

                  LVM = Logical Volume Manager

                  Physical Device -> RAID Layer -> LVM -> Volume -> Filesystem

                  Same as on Windows. You know the Windows LVM layer as "Dynamic Disks".

                  DashrenderD 1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @BRRABill
                    last edited by

                    @BRRABill said:

                    I wonder how many Linux conversations he has per day, LOL.

                    Rather a lot. However a lot of them are actually Linux-triggered general conversations. Like LVM isn't a Linux thing, it's a generic OS thing that Windows Admins are often encouraged to ignore or not grok.

                    1 Reply Last reply Reply Quote 0
                    • DashrenderD
                      Dashrender @scottalanmiller
                      last edited by

                      @scottalanmiller said:

                      @Dashrender said:

                      Is LVM a file system? or something higher than that? like the RAID layer before the file system?

                      LVM = Logical Volume Manager

                      Physical Device -> RAID Layer -> LVM -> Volume -> Filesystem

                      Same as on Windows. You know the Windows LVM layer as "Dynamic Disks".

                      Yeah, I rarely use Dynamic Disks. In my situations it's not a common need.

                      scottalanmillerS 1 Reply Last reply Reply Quote 0
                      • scottalanmillerS
                        scottalanmiller @Dashrender
                        last edited by

                        @Dashrender said:

                        Yeah, I rarely use Dynamic Disks. In my situations it's not a common need.

                        The big reason for any LVM is risk mitigation, not a need at the outset. You use it so that you are prepared for the unknown. Plus it is what normally provides for snapshots.

                        DashrenderD 1 Reply Last reply Reply Quote 1
                        • DashrenderD
                          Dashrender @scottalanmiller
                          last edited by Dashrender

                          @scottalanmiller said:

                          @Dashrender said:

                          Yeah, I rarely use Dynamic Disks. In my situations it's not a common need.

                          The big reason for any LVM is risk mitigation, not a need at the outset. You use it so that you are prepared for the unknown. Plus it is what normally provides for snapshots.

                          So a non VM'ed Linux machine can take a snapshot?

                          let me ask that another way.

                          A baremetal Linux box can do a snapshot if using LVM?

                          coliverC scottalanmillerS 2 Replies Last reply Reply Quote 0
                          • coliverC
                            coliver @Dashrender
                            last edited by

                            @Dashrender said:

                            @scottalanmiller said:

                            @Dashrender said:

                            Yeah, I rarely use Dynamic Disks. In my situations it's not a common need.

                            The big reason for any LVM is risk mitigation, not a need at the outset. You use it so that you are prepared for the unknown. Plus it is what normally provides for snapshots.

                            So a non VM'ed Linux machine can take a snapshot?

                            let me ask that another way.

                            A baremetal Linux box can do a snapshot if using LVM?

                            Yes, this isn't a snapshot at the hypervisor level this is a snapshot below the filesystem. The windows analogy, a bad one but still, is the "previous versions" feature.

                            scottalanmillerS 1 Reply Last reply Reply Quote 1
                            • scottalanmillerS
                              scottalanmiller @Dashrender
                              last edited by

                              @Dashrender said:

                              A baremetal Linux box can do a snapshot if using LVM?

                              Of course. Every enterprise has OS since the 1990s except Windows and Windows since only a little bit later than that. That was standard long before virtualization started using it in the AMD64 space.

                              1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @coliver
                                last edited by

                                @coliver said:

                                Yes, this isn't a snapshot at the hypervisor level this is a snapshot below the filesystem. The windows analogy, a bad one but still, is the "previous versions" feature.

                                Windows VSS is a direct "copy" (by feature, not by implementation) of the Linux LVM system which, in turn, was a copy of the one from AIX.

                                coliverC 1 Reply Last reply Reply Quote 1
                                • coliverC
                                  coliver @scottalanmiller
                                  last edited by

                                  @scottalanmiller said:

                                  @coliver said:

                                  Yes, this isn't a snapshot at the hypervisor level this is a snapshot below the filesystem. The windows analogy, a bad one but still, is the "previous versions" feature.

                                  Windows VSS is a direct "copy" (by feature, not by implementation) of the Linux LVM system which, in turn, was a copy of the one from AIX.

                                  That makes more sense.

                                  1 Reply Last reply Reply Quote 0
                                  • scottalanmillerS
                                    scottalanmiller
                                    last edited by

                                    Some systems that have had snapshots for as long as I can remember...Solaris, AIX, BSD, Linux, HP-UX and, at some point later after we had been long mocking it for lacking them, Windows. Mac is not enterprise and might have it, but I have no idea. It did at one point via ZFS but might have reverted and lost that functionality.

                                    1 Reply Last reply Reply Quote 1
                                    • 1
                                    • 2
                                    • 1 / 2
                                    • First post
                                      Last post