Jump to content

dude67

OTW
  • Posts

    1155
  • Joined

  • Last visited

Everything posted by dude67

  1. Wow, thanks. He's final solution is way out of my league though... :unsure: But I can try some of the commands he tried along the way. I'll post back when I've had time to test it. I'm not in risk of losing any data - I only need to move the data back to the new disks if I redo the LVM disks. But perhaps I can learn something about it, if I still try to fix it. Then again, I may want to just go and do it all again as I may want to do some changes to my shares anyway. If I start from the top, my approch could be a bit different. I have 2 similar 1.5 TB hdds. Maybe I should RAID1 them and do the backups (snapshots?) in my external nas (WD MyBook WE 1TB). As you pointed out, it may be best to have the backups in a totally (physically) different hw - something that can be carried out should something go wrong with the first hw set. But if I have understood correctly, I can still set it up like that, if I manage to salvage this current setup. Is that not so? If I want to do the shares again, I would need to start the setup from the top as I have some 100 GB worth of data already transferred to the disks' shares. I have set up several main shares and created folders underneath the shares. Basically this is OK, but it looks funny as the shares are (translations from Finnish names) named like this: networkstorage.images.photos | networkstorage.images.graphics | networkstorage.files.documents | networkstorage.files.sys-files etc. My idea was to have them under the storage like this: - networkstorage |- images |- photos |- graphics |- files | -documents |- sys-files But I still have to mount them separately (also in windows, I would need to map the network drives to the letters individually). So perhaps I should just create the first tier folders in my Openfiler LVM setup and do the rest from the local PCs in my LAN. ==== But this is starting to be more about building and fixing LVM than just building network storage. Perhaps you - as an admin - can cut this thread half-way through and move it into a new thred with a more suitable topic name (like Building an LVM network storage - or something along those lines).
  2. OK, it did more than I bargained for. I did first the pvmove and then when trying to remove the /dev/sdb1 I seem to have deleted everything from the volume group I had. I used this: pvremove -vff /dev/sdb1 Now I cannot see the /dev/sdb1 anymore, but also /dev/sdc4 is empty! pvdisplay /dev/sdb1 No physical volume label read from /dev/sdb1 Failed to read physical volume "/dev/sdb1" And when I try to find the one the I should have with this: # pvdisplay /dev/sdc4 I get a long list of Couldn't find device with uuid 'wt7... and finally at the end: --- NEW Physical volume --- PV Name /dev/sdc4 VG Name PV Size 1.36 TB Allocatable NO PE Size (KByte) 0 Total PE 0 Free PE 0 PV UUID FJ9GCo.... I went into the GUI and I cannot find any volume groups anymore. When I look at the Block Devices, I can still see the partitions, but no Volume Group. I cannot add any VGs so I guess I need to start from the top. Or perhaps there's a table somewhere I could fix... But that's for tomorrow. I'll do one reboot and call it a day.
  3. OK, I started with the howto "removing an Old disk" but the first command got me... I got this # pvmove /dev/sdb1 Required device-mapper target(s) not detected in your kernel I didn't know what to do. I tried this: # pvmove /dev/sdb1 /dev/sdc4 Required device-mapper target(s) not detected in your kernel OK, no help. Then I googled a bit and found this bit of advice from a debian-user site: I did that and the magic worked! B) # pvmove /dev/sdb1 /dev/sdc4 /dev/sdb1: Moved: 0.1% /dev/sdb1: Moved: 0.2% /dev/sdb1: Moved: 0.3% ... Now it's moving the files, although a bit slow.
  4. Thanks Ian, that is a very nice howto for LVM. And the removal of an old disk looks simple enough, so I'll try it tonight. I will not make a back up as I still have the data in the hdd I copied it from originally.
  5. Ok, I just realized when going through all the webinterface options that I cannot disengage the second harddrive (sdb1) once I've added it to a VG, can I? In addition to that I've already transferred a lot of stuff there and I would not like to do that again - if I have a choice. But can I change the size of the volume group and drop one hdd from it? Is there anything I can do?
  6. That would be great! In the meanwhile, I will try to learn by doing and from their forum (which is not the busiest forums I've seen). Man, you've got to get one! I don't know what I'd do without one.
  7. OK, I've got it installed and I have made several shares on it. I would need to do a few things. I haven't been able to figure them out myself, so I turn to you again. 1) I would like to set credentials to allow access depending on the group. I have set a few groups (in addition to the username-groups dude67.dude67 etc.): family (all family members have access) and adults (me and my wife have access). I have added the same users and groups in Openfiler and Mandriva. But whenever I set the share access control mode to Controlled access and set the names' and groups' rights (as described above) I cannot mount the drives (shares) in Mandriva. I have tried editing /etc/fstab and from sabma config in MCC, but I always get this: $ sudo mount -v /home/levyasema/videot/dvd mount.cifs kernel mount options: unc=//192.168.254.1\levyasema.videot.dvd,user=dude67,ver=1,rw,credentials=/etc/samba/auth.192.168.254.1.dude67,ip=192.168.254.1,pass=******** mount error(5): Input/output error Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) As you can see, I've set up samba password file, but I have also tried to add the credentials directly into /etc/fstab. However the results are the same BTW do you know what the user and usergroup "96" is? When I have set share access control mode to public guest access, I see this user and usergroup listed in my mandriva box: drwxrwsrwx+ 2 96 96 0 2009-10-28 17:06 dvd/ It must have something to do with the public guest access control mode, but I seem to have some problems renaming or creating files as myself. I need root user rights in order to create a new folder... [dude67@localhost new]$ ls -la total 0 drwxrwsr-x+ 2 96 96 0 2009-10-31 15:22 ./ drwxrwsrwx+ 3 96 96 0 2009-10-31 15:22 ../ [dude67@localhost new]$ mkdir second mkdir: cannot create directory `second': Permission denied [dude67@localhost new]$ sudo mkdir second Password: [dude67@localhost new]$ ls -la total 0 drwxrwsr-x+ 3 96 96 0 2009-10-31 15:23 ./ drwxrwsrwx+ 3 96 96 0 2009-10-31 15:22 ../ drwxrwsr-x+ 2 96 96 0 2009-10-31 15:23 second/ [dude67@localhost uusi]$ 2) I haven't figured out yet how to back up the whole contents of this system. Perhaps to an outside network storage (WD MyBook WE I) or to the second hard drive. I've currently added both drives into this LVM, but I can now easily drop it from this current volume. :D 3) Does anyone know if I can make the openfiler drives into media server PS3 would understand? If not, I should be able to install this in openfiler: http://code.google.c...ps3mediaserver/
  8. I have it installed! I'm just trying to figure it out so wish me luck. (And, Ian, if you can, send me the article - I've sent you a private message).
  9. Thanks Ian - certainly something to consider. But if I understood correctly, the LVM enables adding more physical disks to one partition and changing the size of partitions independently from disk sizes. But if I have two equal size disks that I'm making into a RAID1 array, there is only one physical disk I need to configure. What is the benefit of LVM, when I have only one disk? Or are you suggesting this as an alternative to the option of leaving the RAID1 out and just adding them both to my total capacity (1.5 + 1.5 TB)? Adding them into an LVM of 3TB (total size) or let's say 3 partitions 1TB each And what is an LVM snapshot?
  10. My first try with the Openfiler was a bad burn. I downloaded the image again and burned it again, but didn't have the time to install it yesterday. Now I got no errors in the burn phase and am ready to try installing it tonight. I managed to install the drives OK as I could see them perfectly in my BIOS when I set the boot order. So that part should be OK. Now I'm contemplating, whether I should make the system a RAID1 mirror or just extend the capacity with the second 1.5TB drive... I'll keep you posted.
  11. Yep, I agree with that "warning" totally. It is more likely for me to sc**w up the installation myself when e.g. updating Mandriva every six months, than it is for the HD to fail. I may accicentally format /home or leave my /storage out of my setup and therefore delete the partition. If that happens, I don't have anything: I have only perfectly mirrored empty disks. I am hoping I can come up with an idea of mirroring the drives and perhaps making back-ups on external drive (my 1TB WD MBWE).
  12. Thanks Ian, I appreciate your help. I'll do the installation tonight. I'll let you know how it goes. B)
  13. OK - additional question right away. I didn't see any information on RAID for the Openfiler. Will I be able to use software RAID with it?
  14. OK, thank you both. I've now got the two 1,5 TB drives and I am thinking of leaving the current drive (200GB) as an option to boot from (change the boot order of drives in BIOS). If I wish to boot to either Mandriva or WinXP, I can do that. But this hw would act primarily as my network storage server. I'm thinking of installing the Openfiler, it seems easy enough. I'll go through the pages (installation guides) and do the installation. Let's see, if I have questions afterwards... :D
  15. I am looking to build a network storage drive that I can control 100% myself. I already have WD mybook WE 1TB drive, but there are problems with the rights of the drives and I cannot get an SSH connection to that drive. So I would like to have a NAS I can control fully. I would like to use this network storage as a storage for all home files (photos, videos, music, documents etc.). I currently don't have any need for an FTP server on the internet, but I would like to keep that possibility open. The drive must be accessible in my (w)lan from PCs running Linux as well as WinXP and Vista (or soon Win7). I have a tabletop PC (number 3 in my sig) that I could turn into a network drive. It currently has a 200GB drive with both Mandriva 2009.1 and WinXP Home (dual boot), but It's left almost unused currently. This PC is connected to a WLAN AP so the traffic will all go through WLAN (802.11g) "bottleneck". I will also need to consider if the power source is big enough and if the cooling in the case is adequate. I'm thinking of buying two 1 or 1.5 TB drives that I would RAID for redundancy reasons. I could: i) install two additional drives into that frame and leave the 200 GB drive and Mandriva on it as is. The additional drives would be seen as one (RAID1) extra network drive. I would use the current Mandriva 2009.1 as the OS for the network drive system. ii) discard the 200GB drive and set one of the new drives to boot as default from BIOS. I can leave the 200GB drive in there if I would like to boot to that for some reason Another option is naturally to buy an NAS case, but it always comes with an OS of itself and some are easier to "hack" than others. I would very much like to go with the system I know best: Mandriva Free. Any thoughts and advice?
  16. Did you install drakconf as Ken suggested? :unsure:
  17. Not solved. I tried manually some of the quirks mentioned in here: http://web.archive.o...uspend-try.html (thanks David for the link), but at least the few that I tried didn't work. I tried e.g. this one, with a little different outcome: pm-suspend --quirk-vbestate-restore --quirk-s3-bios --quirk-s3-mode The system came to (I managed to unlock the screen), but I think plasma crashed. At least the desktop items didn't work and the icons on the panel disappeared. One weird thing was that when I typed "mcc" in konsole, the system didn't recognize the command. Had to shut it down from the power button as the Ctrl+Alt+Backsp didn't work and Ctrl+Alt+Del gave me black screen with the text saying something about not beeing able to shutdown (or power down). Seems I cannot use Suspend to RAM on this hardware. If anyone has managed to make that work on ACER ASPIRE 7530 (not 7530G), let me know.
  18. My problem is recovering from suspend to RAM (sleep). I get the screensaver, but it won't close the screensaver when I key-in my password. And when I hit Ctrl+Alt+F1 I get the logon: but I cannot get in. I don't even get the part where it says "password". The only way to recover from that is to reboot from power-button. Not good. :huh: I was digging a little deeper... It seems that Mandriva 2009.1 uses pm-utils for sleep and hibernation. I don't know what is causing all these problems, but I think this may be the place to start looking: /usr/lib/pm-utils/sleep.d/ From here I can see list of utils: -rwxr-xr-x 1 root root 2490 2009-04-16 16:43 00auto-quirk* -rwxr-xr-x 1 root root 274 2009-04-16 16:43 00logging* -rwxr-xr-x 1 root root 203 2009-04-16 16:43 00powersave* -rwxr-xr-x 1 root root 737 2009-04-16 16:43 01bootloader* -rwxr-xr-x 1 root root 157 2009-04-16 16:43 06mysqld* -rwxr-xr-x 1 root root 159 2008-12-29 18:53 07anacron* -rwxr-xr-x 1 root root 391 2009-04-16 16:43 10network* -rwxr-xr-x 1 root root 2780 2009-04-16 16:43 15sound* -rwxr-xr-x 1 root root 1941 2009-04-16 16:43 30pcmcia* -rwxr-xr-x 1 root root 4624 2009-04-16 16:43 40xlock* -rwxr-xr-x 1 root root 664 2009-04-16 16:43 49bluetooth* -rwxr-xr-x 1 root root 991 2009-04-16 16:43 55NetworkManager* -rwxr-xr-x 1 root root 335 2009-04-16 16:43 75modules* -rwxr-xr-x 1 root root 391 2009-04-16 16:43 90chvt* -rwxr-xr-x 1 root root 455 2009-04-16 16:43 90clock* -rwxr-xr-x 1 root root 129 2009-04-16 16:43 91laptop-mode* -rwxr-xr-x 1 root root 984 2009-04-16 16:43 92disk* -rwxr-xr-x 1 root root 1098 2009-04-16 16:43 94cpufreq* -rwxr-xr-x 1 root root 297 2009-04-16 16:43 95led* -rwxr-xr-x 1 root root 2286 2009-04-16 16:43 98smart-kernel-video* -rwxr-xr-x 1 root root 5361 2009-04-16 16:43 99video* I'm now thinking that it's either the video (files 98 or 99) or then wlan (for which I don't seem to have a file here). Maybe it's the file 10netork that has the info: #!/bin/sh . "${PM_FUNCTIONS}" suspend_network() { stopservice netfs stopservice nfs stopservice network return $? } resume_network() { restartservice network service network-up start restartservice nfs restartservice netfs return $? } case "$1" in hibernate|suspend) suspend_network ;; thaw|resume) resume_network ;; *) ;; esac exit $? But I really have no idea what the problem is...
  19. OK, the gparted worked fine. I managed to enlarge swap while keeping it on it's place between / and /home partitions. Now I have some 4.9 gigs swap. But that didn't help with the suspend to RAM problem. Now I get the system kinda freezing in the screensaver screen with the login details. I can type my password there, but when I hit Enter, nothing happens. The images keep changing in the screensaver and I can move my mouse around, but other then that, nothing happens. So something is wrong. What's that "basic, kernel-based one" Suspend to RAM you mentioned scarecrow?
  20. Yep, thanks Ken, I will give gparted a go as I said. I will use it to resize /home - there should not be anything critically important on that new laptop, but I would hate to mess it up as I would have to do all that installation work again... So if I understand correctly, the system _should_ be OK even if I resize the /home partition (I do have a lot of free space there) from the start (with gparted). OK, but how much is 'slightly more' - I realize that I have just a bit less than 4 gigs of swap, but I never calculated it when installing the system. I never really do the partitioning precisely - I just use an estimate (with the Mandriva diskdrake slider)... B) Perhaps I should be more careful in the future :)
  21. OK, thanks scoonma. I'll give it a try.
  22. What did you think I meant with the topic title. :P I have a laptop with some 4 gigs of RAM. When installing the system, I didn't think I'd need more then 4 gigs of swap, but now I'm thinking that I may have been wise to reserve the full 8 GB worth of swap (double the size of RAM)... I'm having problem with Suspend to RAM as the system now hangs on me when coming to from Suspend to RAM. It stated something about the swap, but I didn't write it down and I cannot find any such note in the syslogs either. Here's my current disk - is it possible to double the size of swap? If I understand correctly, I cannot resize /home partition from the beginning - or is it possible? Device Boot Start End #cyls #blocks Id System /dev/sda1 0+ 1305- 1306- 10485760 27 Unknown /dev/sda2 * 1305+ 10881- 9576- 76918780 7 HPFS/NTFS /dev/sda3 10882 30400 19519 156786367+ 5 Extended /dev/sda4 0 - 0 0 0 Empty /dev/sda5 10882+ 12428 1547- 12426246 83 Linux | root /dev/sda6 12429+ 12937 509- 4088511 82 Linux swap / Solaris | swap /dev/sda7 12938+ 30400 17463- 140271516 83 Linux | /home Partitions from sda1 to sda3(4) are for Vista.
  23. Choose all the correct sources with EasyURPMI (including the plf sources) first. Then use XFdrake and re-choose the correct graphic card and the system should suggest to download a better driver for your card. Is it ATI, Nvidia, Intel or something else?
  24. If there is still a problem, it may be that your video card isn't supported by the default driver for that card. Try using the VESA driver and then try startx again. If that works, install urpmi sources (with EasyURPMI) including the plf sources and you should get the latest (and/or correct) drivers for your card.
×
×
  • Create New...