Koozali.org: home of the SME Server

How to use SME also as NAS, provide fundamental steps

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: How to use SME also as NAS, provide fundamental steps
« Reply #30 on: November 24, 2015, 10:31:30 AM »
i choose no raid no lvm but in the end despite that choosing i get damn lvm md0 and raid1, how to prevent raid and lvm ?

On SME9, /boot is indeed always created as a RAID1, but that's all. It's just acting as a single partition. You can even set it to be in optimal state with a single disk (eg, if your monitoring system doesn't like degraded RAID)

Code: [Select]
mdadm --grow /dev/md0 --raid-devices=1 --force

If you really want to control how partitions are setup, you can choose the graphical installer, which lets you create a manual partition layout just as a vanilla CentOS
C'est la fin du monde !!! :lol:

Offline UserOfHalde

  • *
  • 14
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #31 on: November 24, 2015, 02:34:30 PM »
exactly what I did:

see attachments

output /cat/mdstat :

Personalities : [raid1]
md0 : active raid1 sda1[0]
      255936 blocks super 1.0 [2/1] [U_]
     
unused devices: <none>

----
i began/started with one connected drive
----


output fdisk -l  :

 

Disk /dev/sda: 30.8 GB, 30820155392 bytes
255 heads, 63 sectors/track, 3747 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001c0f4

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          32      256000   fd  Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sda2              32         407     3009536   82  Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3             407        3747    26830848   83  Linux

Disk /dev/md0: 262 MB, 262078464 bytes
2 heads, 4 sectors/track, 63984 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/sdb: 15.4 GB, 15376000000 bytes
64 heads, 32 sectors/track, 14663 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1da5d42f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       14663    15014896   83  Linux


---------------------
« Last Edit: November 24, 2015, 02:37:45 PM by UserOfHalde »

Offline UserOfHalde

  • *
  • 14
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #32 on: November 24, 2015, 02:38:24 PM »
and an other attachment

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #33 on: November 24, 2015, 02:40:29 PM »
ok, now it's clear..

please re-read Daniel's answer: http://forums.contribs.org/index.php/topic,52071.msg266487.html#msg266487

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #34 on: November 24, 2015, 06:32:57 PM »
i will not install sme again, i wish no raid.

Only use "no raid" if your data is worthless.

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: How to use SME also as NAS, provide fundamental steps
« Reply #35 on: November 24, 2015, 06:34:39 PM »
Only use "no raid" if your data is worthless.

There are valid reasons to install with "no raid", even if you care about your data. Especially when you install SME as a virtual host and the RAID layer is managed on the host
C'est la fin du monde !!! :lol:

guest22

Re: How to use SME also as NAS, provide fundamental steps
« Reply #36 on: November 24, 2015, 08:15:13 PM »
There are valid reasons to install with "no raid", even if you care about your data. Especially when you install SME as a virtual host and the RAID layer is managed on the host


Fully agree. All virtual players out there advise the same. It's virtual, real data integrity should be achieved on real layers.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #37 on: November 24, 2015, 08:20:23 PM »
Especially when you install SME as a virtual host and the RAID layer is managed on the host

But that is not what OP is doing.

Offline UserOfHalde

  • *
  • 14
  • +0/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #38 on: December 01, 2015, 10:25:46 PM »
On SME9, /boot is indeed always created as a RAID1, but that's all. It's just acting as a single partition. You can even set it to be in optimal state with a single disk (eg, if your monitoring system doesn't like degraded RAID)

Code: [Select]
mdadm --grow /dev/md0 --raid-devices=1 --force

If you really want to control how partitions are setup, you can choose the graphical installer, which lets you create a manual partition layout just as a vanilla CentOS

didn't work.

despite this commands i have LVM and raid. I want it to controll for my slef, if i do use raid or not. I only want to try to controll this server with all his benifits, and then i will gladly use raid. But i think on this "simple" server i can do nothing...

i think i'll try pure centos.


Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: How to use SME also as NAS, provide fundamental steps
« Reply #39 on: December 01, 2015, 11:05:34 PM »
despite this commands i have LVM and raid.

No, you're not using LVM, only software RAID and only for /boot. The command I gave you wasn't to get rid of RAID, but was simply to make the RAID array non degraded, working only with one device, and so, acting exactly as a simple partition.

I want it to controll for my slef, if i do use raid or not.

As I already told you, you should select the graphical installer (in the advanced install option, when booting the CD) if you want full control over the partitions layout, with this, you'll have the same options as on pure CentOS. Note that the default layout *will* use LVM (this is inherited by CentOS itself), so you'll have to choose manual partitioning.
C'est la fin du monde !!! :lol:

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How to use SME also as NAS, provide fundamental steps
« Reply #40 on: December 01, 2015, 11:23:12 PM »
didn't work.

well, in this case provide us the exact command you use, the error message you got..

"didn't work" doesn't help us to help you

Quote
despite this commands i have LVM and raid.

you give us no evidence of what you did, how you did it and the results.. that's the only evidence here, unfortunately